wxWidgets/utils/wxPython/src/frames.i
Robin Dunn 9d8bd15f99 Fixed a deadlock problem when using threads
Incremented version number

Added some missing methods and such

Minor updates to a couple demos


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-23 02:33:44 +00:00

97 lines
2.8 KiB
OpenEdge ABL

/////////////////////////////////////////////////////////////////////////////
// Name: frames.i
// Purpose: SWIG definitions of various window classes
//
// Author: Robin Dunn
//
// Created: 8/27/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module frames
%{
#include "helpers.h"
#include <wx/minifram.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%import stattool.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
class wxFrame : public wxWindow {
public:
wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
char* name = "frame");
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
void Centre(int direction = wxBOTH);
#ifdef __WXMSW__
void Command(int id);
#endif
wxStatusBar* CreateStatusBar(int number = 1,
long style = wxST_SIZEGRIP,
wxWindowID id = -1,
char* name = "statusBar");
wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
wxWindowID id = -1,
char* name = "toolBar");
wxMenuBar* GetMenuBar();
wxStatusBar* GetStatusBar();
wxString GetTitle();
wxToolBar* GetToolBar();
void Iconize(bool iconize);
bool IsIconized();
void Maximize(bool maximize);
void SetAcceleratorTable(const wxAcceleratorTable& accel);
void SetIcon(const wxIcon& icon);
void SetMenuBar(wxMenuBar* menuBar);
void SetStatusBar(wxStatusBar *statusBar);
void SetStatusText(const wxString& text, int number = 0);
void SetStatusWidths(int LCOUNT, int* LIST); // uses typemap
void SetTitle(const wxString& title);
void SetToolBar(wxToolBar* toolbar);
};
//---------------------------------------------------------------------------
class wxMiniFrame : public wxFrame {
public:
wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
char* name = "frame");
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
};
//---------------------------------------------------------------------------