more wxGTK compatibility things.
It builds now but there are serious runtime problems... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
eaf3cf57ed
commit
fb5e0af035
@ -6,6 +6,7 @@
|
|||||||
CCC=c++
|
CCC=c++
|
||||||
WXWIN=../../..
|
WXWIN=../../..
|
||||||
|
|
||||||
|
|
||||||
## Pick one of these, or set your own
|
## Pick one of these, or set your own
|
||||||
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
||||||
TARGETDIR=..
|
TARGETDIR=..
|
||||||
@ -13,6 +14,8 @@ TARGETDIR=..
|
|||||||
wxpc wxp.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
|
wxpc wxp.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
|
||||||
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
||||||
-I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
|
-I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
|
||||||
-DSWIG_GLOBAL -D__WXGTK__ -L$(WXWIN)/lib/Linux -lwx_gtk
|
# -D__WXDEBUG__ -ldmalloc \
|
||||||
|
-DSWIG_GLOBAL -D__WXGTK__ -L$(WXWIN)/lib/Linux -lwx_gtk \
|
||||||
|
-L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11
|
||||||
|
|
||||||
|
|
||||||
|
@ -113,7 +113,9 @@ enum {
|
|||||||
wxMINOR_VERSION,
|
wxMINOR_VERSION,
|
||||||
wxRELEASE_NUMBER,
|
wxRELEASE_NUMBER,
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
UNKNOWN,
|
UNKNOWN,
|
||||||
|
#endif
|
||||||
NOT_FOUND,
|
NOT_FOUND,
|
||||||
|
|
||||||
wxVSCROLL,
|
wxVSCROLL,
|
||||||
@ -695,6 +697,11 @@ enum wxEventType {
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.4 1998/08/18 19:48:11 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.3 1998/08/14 23:36:33 RD
|
// Revision 1.3 1998/08/14 23:36:33 RD
|
||||||
// Beginings of wxGTK compatibility
|
// Beginings of wxGTK compatibility
|
||||||
//
|
//
|
||||||
|
@ -370,7 +370,8 @@ class wxFrame(wxFramePtr):
|
|||||||
_StdFrameCallbacks(self)
|
_StdFrameCallbacks(self)
|
||||||
|
|
||||||
|
|
||||||
class wxMiniFrame(wxMiniFramePtr):
|
if wxPlatform == '__WXMSW__':
|
||||||
|
class wxMiniFrame(wxMiniFramePtr):
|
||||||
def __init__(self,arg0,arg1,arg2,*args) :
|
def __init__(self,arg0,arg1,arg2,*args) :
|
||||||
argl = map(None,args)
|
argl = map(None,args)
|
||||||
try: argl[0] = argl[0].this
|
try: argl[0] = argl[0].this
|
||||||
@ -603,7 +604,8 @@ class wxScrollBar(wxScrollBarPtr):
|
|||||||
self.thisown = 1
|
self.thisown = 1
|
||||||
_StdWindowCallbacks(self)
|
_StdWindowCallbacks(self)
|
||||||
|
|
||||||
class wxSpinButton(wxSpinButtonPtr):
|
if wxPlatform == '__WXMSW__':
|
||||||
|
class wxSpinButton(wxSpinButtonPtr):
|
||||||
def __init__(self,arg0,*args) :
|
def __init__(self,arg0,*args) :
|
||||||
argl = map(None,args)
|
argl = map(None,args)
|
||||||
try: argl[1] = argl[1].this
|
try: argl[1] = argl[1].this
|
||||||
@ -716,7 +718,7 @@ wxPyDefaultSize.Set(-1,-1)
|
|||||||
## self.isShown = false
|
## self.isShown = false
|
||||||
|
|
||||||
|
|
||||||
_defRedirect = (wxPlatform == '__WIN32__')
|
_defRedirect = (wxPlatform == '__WXMSW__')
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# The main application class. Derive from this and implement an OnInit
|
# The main application class. Derive from this and implement an OnInit
|
||||||
@ -760,6 +762,11 @@ class wxApp(wxPyApp):
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.2 1998/08/18 19:48:12 RD
|
||||||
|
# more wxGTK compatibility things.
|
||||||
|
#
|
||||||
|
# It builds now but there are serious runtime problems...
|
||||||
|
#
|
||||||
# Revision 1.1 1998/08/09 08:25:49 RD
|
# Revision 1.1 1998/08/09 08:25:49 RD
|
||||||
# Initial version
|
# Initial version
|
||||||
#
|
#
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
bool GetChooseFull();
|
bool GetChooseFull();
|
||||||
wxColour& GetColour();
|
wxColour& GetColour();
|
||||||
wxColour& GetCustomColour(int i);
|
wxColour GetCustomColour(int i);
|
||||||
void SetChooseFull(int flag);
|
void SetChooseFull(int flag);
|
||||||
void SetColour(const wxColour& colour);
|
void SetColour(const wxColour& colour);
|
||||||
void SetCustomColour(int i, const wxColour& colour);
|
void SetCustomColour(int i, const wxColour& colour);
|
||||||
@ -52,13 +52,18 @@ class wxColourDialog : public wxDialog {
|
|||||||
public:
|
public:
|
||||||
wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
|
wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxColourData& GetColourData();
|
wxColourData& GetColourData();
|
||||||
|
#else
|
||||||
|
wxColourData GetColourData();
|
||||||
|
#endif
|
||||||
int ShowModal();
|
int ShowModal();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxDirDialog : public wxDialog {
|
class wxDirDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
wxDirDialog(wxWindow* parent,
|
wxDirDialog(wxWindow* parent,
|
||||||
@ -74,6 +79,7 @@ public:
|
|||||||
void SetPath(const wxString& path);
|
void SetPath(const wxString& path);
|
||||||
int ShowModal();
|
int ShowModal();
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@ -185,6 +191,7 @@ public:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxPageSetupData {
|
class wxPageSetupData {
|
||||||
public:
|
public:
|
||||||
wxPageSetupData();
|
wxPageSetupData();
|
||||||
@ -226,9 +233,11 @@ public:
|
|||||||
wxPageSetupData& GetPageSetupData();
|
wxPageSetupData& GetPageSetupData();
|
||||||
int ShowModal();
|
int ShowModal();
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxPrintData {
|
class wxPrintData {
|
||||||
public:
|
public:
|
||||||
wxPrintData();
|
wxPrintData();
|
||||||
@ -266,6 +275,7 @@ public:
|
|||||||
wxDC* GetPrintDC();
|
wxDC* GetPrintDC();
|
||||||
int ShowModal();
|
int ShowModal();
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@ -286,6 +296,11 @@ public:
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.3 1998/08/18 19:48:13 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.2 1998/08/15 07:36:25 RD
|
// Revision 1.2 1998/08/15 07:36:25 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
@ -15,7 +15,10 @@
|
|||||||
%{
|
%{
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include <wx/slider.h>
|
#include <wx/slider.h>
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
#include <wx/spinbutt.h>
|
#include <wx/spinbutt.h>
|
||||||
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@ -41,7 +44,7 @@ wxValidator wxPyDefaultValidator; // Non-const default because of SWIG
|
|||||||
class wxControl : public wxWindow {
|
class wxControl : public wxWindow {
|
||||||
public:
|
public:
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event);
|
||||||
wxString& GetLabel();
|
wxString GetLabel();
|
||||||
void SetLabel(const wxString& label);
|
void SetLabel(const wxString& label);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -69,14 +72,16 @@ public:
|
|||||||
const wxValidator& validator = wxPyDefaultValidator,
|
const wxValidator& validator = wxPyDefaultValidator,
|
||||||
char* name = "button");
|
char* name = "button");
|
||||||
|
|
||||||
|
wxBitmap& GetBitmapLabel();
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxBitmap& GetBitmapDisabled();
|
wxBitmap& GetBitmapDisabled();
|
||||||
wxBitmap& GetBitmapFocus();
|
wxBitmap& GetBitmapFocus();
|
||||||
wxBitmap& GetBitmapLabel();
|
|
||||||
wxBitmap& GetBitmapSelected();
|
wxBitmap& GetBitmapSelected();
|
||||||
void SetBitmapDisabled(const wxBitmap& bitmap);
|
void SetBitmapDisabled(const wxBitmap& bitmap);
|
||||||
void SetBitmapFocus(const wxBitmap& bitmap);
|
void SetBitmapFocus(const wxBitmap& bitmap);
|
||||||
void SetBitmapLabel(const wxBitmap& bitmap);
|
|
||||||
void SetBitmapSelected(const wxBitmap& bitmap);
|
void SetBitmapSelected(const wxBitmap& bitmap);
|
||||||
|
#endif
|
||||||
|
void SetBitmapLabel(const wxBitmap& bitmap);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -258,14 +263,18 @@ public:
|
|||||||
void DiscardEdits();
|
void DiscardEdits();
|
||||||
long GetInsertionPoint();
|
long GetInsertionPoint();
|
||||||
long GetLastPosition();
|
long GetLastPosition();
|
||||||
|
#ifdef __WXMSW__
|
||||||
int GetLineLength(long lineNo);
|
int GetLineLength(long lineNo);
|
||||||
wxString GetLineText(long lineNo);
|
wxString GetLineText(long lineNo);
|
||||||
int GetNumberOfLines();
|
int GetNumberOfLines();
|
||||||
|
#endif
|
||||||
wxString GetValue();
|
wxString GetValue();
|
||||||
bool IsModified();
|
bool IsModified();
|
||||||
bool LoadFile(const wxString& filename);
|
bool LoadFile(const wxString& filename);
|
||||||
void Paste();
|
void Paste();
|
||||||
|
#ifdef __WXMSW__
|
||||||
void PositionToXY(long pos, long *OUTPUT, long *OUTPUT);
|
void PositionToXY(long pos, long *OUTPUT, long *OUTPUT);
|
||||||
|
#endif
|
||||||
void Remove(long from, long to);
|
void Remove(long from, long to);
|
||||||
void Replace(long from, long to, const wxString& value);
|
void Replace(long from, long to, const wxString& value);
|
||||||
bool SaveFile(const wxString& filename);
|
bool SaveFile(const wxString& filename);
|
||||||
@ -276,7 +285,9 @@ public:
|
|||||||
void SetValue(const wxString& value);
|
void SetValue(const wxString& value);
|
||||||
void ShowPosition(long pos);
|
void ShowPosition(long pos);
|
||||||
void WriteText(const wxString& text);
|
void WriteText(const wxString& text);
|
||||||
|
#ifdef __WXMSW__
|
||||||
long XYToPosition(long x, long y);
|
long XYToPosition(long x, long y);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@ -302,6 +313,7 @@ public:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxSpinButton : public wxControl {
|
class wxSpinButton : public wxControl {
|
||||||
public:
|
public:
|
||||||
wxSpinButton(wxWindow* parent, wxWindowID id = -1,
|
wxSpinButton(wxWindow* parent, wxWindowID id = -1,
|
||||||
@ -316,6 +328,7 @@ public:
|
|||||||
void SetRange(int min, int max);
|
void SetRange(int min, int max);
|
||||||
void SetValue(int value);
|
void SetValue(int value);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@ -419,6 +432,11 @@ public:
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.3 1998/08/18 19:48:14 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.2 1998/08/15 07:36:28 RD
|
// Revision 1.2 1998/08/15 07:36:28 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
@ -76,21 +76,31 @@ public:
|
|||||||
|
|
||||||
class wxListCtrl : public wxControl {
|
class wxListCtrl : public wxControl {
|
||||||
public:
|
public:
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxListCtrl(wxWindow* parent, wxWindowID id,
|
wxListCtrl(wxWindow* parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxPyDefaultPosition,
|
const wxPoint& pos = wxPyDefaultPosition,
|
||||||
const wxSize& size = wxPyDefaultSize,
|
const wxSize& size = wxPyDefaultSize,
|
||||||
long style = wxLC_ICON,
|
long style = wxLC_ICON,
|
||||||
const wxValidator& validator = wxPyDefaultValidator,
|
const wxValidator& validator = wxPyDefaultValidator,
|
||||||
char* name = "listCtrl");
|
char* name = "listCtrl");
|
||||||
|
#else
|
||||||
|
wxListCtrl(wxWindow* parent, wxWindowID id,
|
||||||
|
const wxPoint& pos = wxPyDefaultPosition,
|
||||||
|
const wxSize& size = wxPyDefaultSize,
|
||||||
|
long style = wxLC_ICON,
|
||||||
|
char* name = "listctrl");
|
||||||
|
#endif
|
||||||
|
|
||||||
bool Arrange(int flag = wxLIST_ALIGN_DEFAULT);
|
bool Arrange(int flag = wxLIST_ALIGN_DEFAULT);
|
||||||
bool DeleteItem(long item);
|
bool DeleteItem(long item);
|
||||||
bool DeleteAllItems();
|
bool DeleteAllItems();
|
||||||
bool DeleteColumn(int col);
|
bool DeleteColumn(int col);
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool DeleteAllColumns(void);
|
bool DeleteAllColumns(void);
|
||||||
void ClearAll(void);
|
void ClearAll(void);
|
||||||
wxTextCtrl* EditLabel(long item);
|
wxTextCtrl* EditLabel(long item);
|
||||||
bool EndEditLabel(bool cancel);
|
bool EndEditLabel(bool cancel);
|
||||||
|
#endif
|
||||||
bool EnsureVisible(long item);
|
bool EnsureVisible(long item);
|
||||||
long FindItem(long start, const wxString& str, bool partial = FALSE);
|
long FindItem(long start, const wxString& str, bool partial = FALSE);
|
||||||
%name(FindItemData)long FindItem(long start, long data);
|
%name(FindItemData)long FindItem(long start, long data);
|
||||||
@ -99,7 +109,9 @@ public:
|
|||||||
bool GetColumn(int col, wxListItem& item);
|
bool GetColumn(int col, wxListItem& item);
|
||||||
int GetColumnWidth(int col);
|
int GetColumnWidth(int col);
|
||||||
int GetCountPerPage();
|
int GetCountPerPage();
|
||||||
|
#ifdef __WXMSW
|
||||||
wxTextCtrl* GetEditControl();
|
wxTextCtrl* GetEditControl();
|
||||||
|
#endif
|
||||||
wxImageList* GetImageList(int which);
|
wxImageList* GetImageList(int which);
|
||||||
long GetItemData(long item);
|
long GetItemData(long item);
|
||||||
|
|
||||||
@ -129,7 +141,9 @@ public:
|
|||||||
int geometry = wxLIST_NEXT_ALL,
|
int geometry = wxLIST_NEXT_ALL,
|
||||||
int state = wxLIST_STATE_DONTCARE);
|
int state = wxLIST_STATE_DONTCARE);
|
||||||
int GetSelectedItemCount();
|
int GetSelectedItemCount();
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxColour GetTextColour();
|
wxColour GetTextColour();
|
||||||
|
#endif
|
||||||
long GetTopItem();
|
long GetTopItem();
|
||||||
long HitTest(const wxPoint& point, int& OUTPUT);
|
long HitTest(const wxPoint& point, int& OUTPUT);
|
||||||
%name(InsertColumnWithInfo)long InsertColumn(long col, wxListItem& info);
|
%name(InsertColumnWithInfo)long InsertColumn(long col, wxListItem& info);
|
||||||
@ -157,7 +171,9 @@ public:
|
|||||||
bool SetItemState(long item, long state, long stateMask);
|
bool SetItemState(long item, long state, long stateMask);
|
||||||
void SetItemText(long item, const wxString& text);
|
void SetItemText(long item, const wxString& text);
|
||||||
void SetSingleStyle(long style, bool add = TRUE);
|
void SetSingleStyle(long style, bool add = TRUE);
|
||||||
|
#ifdef __WXMSW__
|
||||||
void SetTextColour(const wxColour& col);
|
void SetTextColour(const wxColour& col);
|
||||||
|
#endif
|
||||||
void SetWindowStyleFlag(long style);
|
void SetWindowStyleFlag(long style);
|
||||||
// TODO: bool SortItems(wxListCtrlCompare fn, long data);
|
// TODO: bool SortItems(wxListCtrlCompare fn, long data);
|
||||||
};
|
};
|
||||||
@ -262,22 +278,38 @@ public:
|
|||||||
|
|
||||||
class wxTreeCtrl : public wxControl {
|
class wxTreeCtrl : public wxControl {
|
||||||
public:
|
public:
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxTreeCtrl(wxWindow *parent, wxWindowID id = -1,
|
wxTreeCtrl(wxWindow *parent, wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxPyDefaultPosition,
|
const wxPoint& pos = wxPyDefaultPosition,
|
||||||
const wxSize& size = wxPyDefaultSize,
|
const wxSize& size = wxPyDefaultSize,
|
||||||
long style = wxTR_HAS_BUTTONS,
|
long style = wxTR_HAS_BUTTONS,
|
||||||
const wxValidator& validator = wxPyDefaultValidator,
|
const wxValidator& validator = wxPyDefaultValidator,
|
||||||
char* name = "wxTreeCtrl");
|
char* name = "wxTreeCtrl");
|
||||||
|
#else
|
||||||
|
wxTreeCtrl(wxWindow *parent, wxWindowID id = -1,
|
||||||
|
const wxPoint& pos = wxPyDefaultPosition,
|
||||||
|
const wxSize& size = wxPyDefaultSize,
|
||||||
|
long style = wxTR_HAS_BUTTONS,
|
||||||
|
char* name = "wxTreeCtrl");
|
||||||
|
#endif
|
||||||
|
|
||||||
bool DeleteAllItems();
|
bool DeleteAllItems();
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool DeleteItem(long item);
|
bool DeleteItem(long item);
|
||||||
|
#else
|
||||||
|
void DeleteItem(long item);
|
||||||
|
#endif
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxTextCtrl* EditLabel(long item);
|
wxTextCtrl* EditLabel(long item);
|
||||||
bool EnsureVisible(long item);
|
bool EnsureVisible(long item);
|
||||||
bool ExpandItem(long item, int action);
|
bool ExpandItem(long item, int action);
|
||||||
long GetChild(long item);
|
long GetChild(long item);
|
||||||
|
#endif
|
||||||
int GetCount();
|
int GetCount();
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxTextCtrl* GetEditControl();
|
wxTextCtrl* GetEditControl();
|
||||||
long GetFirstVisibleItem();
|
long GetFirstVisibleItem();
|
||||||
|
#endif
|
||||||
wxImageList* GetImageList(int which = wxIMAGE_LIST_NORMAL);
|
wxImageList* GetImageList(int which = wxIMAGE_LIST_NORMAL);
|
||||||
int GetIndent();
|
int GetIndent();
|
||||||
long GetItemData(long item);
|
long GetItemData(long item);
|
||||||
@ -288,17 +320,23 @@ public:
|
|||||||
self->GetItem(*info);
|
self->GetItem(*info);
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
#ifdef __WXMSW__
|
||||||
%new wxRect* GetItemRect(long item, int textOnly = FALSE) {
|
%new wxRect* GetItemRect(long item, int textOnly = FALSE) {
|
||||||
wxRect* rect = new wxRect;
|
wxRect* rect = new wxRect;
|
||||||
self->GetItemRect(item, *rect, textOnly);
|
self->GetItemRect(item, *rect, textOnly);
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
int GetItemState(long item, long stateMask);
|
int GetItemState(long item, long stateMask);
|
||||||
|
#endif
|
||||||
wxString GetItemText(long item);
|
wxString GetItemText(long item);
|
||||||
|
#ifdef __WXMSW__
|
||||||
long GetNextItem(long item, int code);
|
long GetNextItem(long item, int code);
|
||||||
long GetNextVisibleItem(long item);
|
long GetNextVisibleItem(long item);
|
||||||
|
#endif
|
||||||
long GetParent(long item);
|
long GetParent(long item);
|
||||||
long GetRootItem();
|
long GetRootItem();
|
||||||
long GetSelection();
|
long GetSelection();
|
||||||
@ -310,20 +348,31 @@ public:
|
|||||||
int image = -1, int selImage = -1,
|
int image = -1, int selImage = -1,
|
||||||
long insertAfter = wxTREE_INSERT_LAST);
|
long insertAfter = wxTREE_INSERT_LAST);
|
||||||
bool ItemHasChildren(long item);
|
bool ItemHasChildren(long item);
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool ScrollTo(long item);
|
bool ScrollTo(long item);
|
||||||
|
#endif
|
||||||
bool SelectItem(long item);
|
bool SelectItem(long item);
|
||||||
void SetIndent(int indent);
|
void SetIndent(int indent);
|
||||||
void SetImageList(wxImageList* imageList, int which = wxIMAGE_LIST_NORMAL);
|
void SetImageList(wxImageList* imageList, int which = wxIMAGE_LIST_NORMAL);
|
||||||
bool SetItem(wxTreeItem& info);
|
bool SetItem(wxTreeItem& info);
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool SetItemImage(long item, int image, int selImage);
|
bool SetItemImage(long item, int image, int selImage);
|
||||||
|
#else
|
||||||
|
void SetItemImage(long item, int image, int selImage);
|
||||||
|
#endif
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool SetItemState(long item, long state, long stateMask);
|
bool SetItemState(long item, long state, long stateMask);
|
||||||
|
#endif
|
||||||
void SetItemText(long item, const wxString& text);
|
void SetItemText(long item, const wxString& text);
|
||||||
bool SetItemData(long item, long data);
|
bool SetItemData(long item, long data);
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool SortChildren(long item);
|
bool SortChildren(long item);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxTabEvent : public wxCommandEvent {
|
class wxTabEvent : public wxCommandEvent {
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
@ -369,12 +418,19 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.3 1998/08/18 19:48:15 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.2 1998/08/15 07:36:30 RD
|
// Revision 1.2 1998/08/15 07:36:30 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
%{
|
%{
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
#include <wx/metafile.h>
|
#include <wx/metafile.h>
|
||||||
%}
|
%}
|
||||||
|
|
||||||
@ -35,7 +34,9 @@ public:
|
|||||||
wxBitmap(const wxString& name, long type);
|
wxBitmap(const wxString& name, long type);
|
||||||
~wxBitmap();
|
~wxBitmap();
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
void Create(int width, int height, int depth = -1);
|
void Create(int width, int height, int depth = -1);
|
||||||
|
#endif
|
||||||
int GetDepth();
|
int GetDepth();
|
||||||
int GetHeight();
|
int GetHeight();
|
||||||
wxPalette* GetPalette();
|
wxPalette* GetPalette();
|
||||||
@ -47,8 +48,9 @@ public:
|
|||||||
void SetDepth(int depth);
|
void SetDepth(int depth);
|
||||||
void SetHeight(int height);
|
void SetHeight(int height);
|
||||||
void SetMask(wxMask* mask);
|
void SetMask(wxMask* mask);
|
||||||
void SetOk(int isOk);
|
#ifdef __WXMSW__
|
||||||
void SetPalette(wxPalette* palette);
|
void SetPalette(wxPalette* palette);
|
||||||
|
#endif
|
||||||
void SetWidth(int width);
|
void SetWidth(int width);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -88,7 +90,10 @@ public:
|
|||||||
|
|
||||||
class wxIcon : public wxBitmap {
|
class wxIcon : public wxBitmap {
|
||||||
public:
|
public:
|
||||||
wxIcon(char *name, long flags);
|
#ifdef __WXMSW__
|
||||||
|
wxIcon(const wxString& name, long flags,
|
||||||
|
int desiredWidth = -1, int desiredHeight = -1);
|
||||||
|
#endif
|
||||||
~wxIcon();
|
~wxIcon();
|
||||||
|
|
||||||
int GetDepth();
|
int GetDepth();
|
||||||
@ -98,7 +103,6 @@ public:
|
|||||||
bool Ok();
|
bool Ok();
|
||||||
void SetDepth(int depth);
|
void SetDepth(int depth);
|
||||||
void SetHeight(int height);
|
void SetHeight(int height);
|
||||||
void SetOk(int isOk);
|
|
||||||
void SetWidth(int width);
|
void SetWidth(int width);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -106,7 +110,9 @@ public:
|
|||||||
|
|
||||||
class wxCursor : public wxBitmap {
|
class wxCursor : public wxBitmap {
|
||||||
public:
|
public:
|
||||||
|
#ifdef __WXMSW__
|
||||||
wxCursor(const wxString& cursorName, long flags, int hotSpotX=0, int hotSpotY=0);
|
wxCursor(const wxString& cursorName, long flags, int hotSpotX=0, int hotSpotY=0);
|
||||||
|
#endif
|
||||||
~wxCursor();
|
~wxCursor();
|
||||||
bool Ok();
|
bool Ok();
|
||||||
};
|
};
|
||||||
@ -142,12 +148,14 @@ public:
|
|||||||
int GetStyle();
|
int GetStyle();
|
||||||
bool GetUnderlined();
|
bool GetUnderlined();
|
||||||
int GetWeight();
|
int GetWeight();
|
||||||
|
#ifdef __WXMSW__
|
||||||
void SetFaceName(const wxString& faceName);
|
void SetFaceName(const wxString& faceName);
|
||||||
void SetFamily(int family);
|
void SetFamily(int family);
|
||||||
void SetPointSize(int pointSize);
|
void SetPointSize(int pointSize);
|
||||||
void SetStyle(int style);
|
void SetStyle(int style);
|
||||||
void SetUnderlined(bool underlined);
|
void SetUnderlined(bool underlined);
|
||||||
void SetWeight(int weight);
|
void SetWeight(int weight);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@ -198,18 +206,22 @@ public:
|
|||||||
int GetCap();
|
int GetCap();
|
||||||
wxColour& GetColour();
|
wxColour& GetColour();
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
// **** This one needs to return a list of ints (wxDash)
|
// **** This one needs to return a list of ints (wxDash)
|
||||||
int GetDashes(wxDash **dashes);
|
int GetDashes(wxDash **dashes);
|
||||||
int GetJoin();
|
|
||||||
wxBitmap* GetStipple();
|
wxBitmap* GetStipple();
|
||||||
|
#endif
|
||||||
|
int GetJoin();
|
||||||
int GetStyle();
|
int GetStyle();
|
||||||
int GetWidth();
|
int GetWidth();
|
||||||
bool Ok();
|
bool Ok();
|
||||||
void SetCap(int cap_style);
|
void SetCap(int cap_style);
|
||||||
void SetColour(wxColour& colour);
|
void SetColour(wxColour& colour);
|
||||||
|
#ifdef __WXMSW__
|
||||||
void SetDashes(int LCOUNT, wxDash* LIST);
|
void SetDashes(int LCOUNT, wxDash* LIST);
|
||||||
void SetJoin(int join_style);
|
|
||||||
void SetStipple(wxBitmap * stipple);
|
void SetStipple(wxBitmap * stipple);
|
||||||
|
#endif
|
||||||
|
void SetJoin(int join_style);
|
||||||
void SetStyle(int style);
|
void SetStyle(int style);
|
||||||
void SetWidth(int width);
|
void SetWidth(int width);
|
||||||
};
|
};
|
||||||
@ -231,9 +243,11 @@ public:
|
|||||||
wxBitmap * GetStipple();
|
wxBitmap * GetStipple();
|
||||||
int GetStyle();
|
int GetStyle();
|
||||||
bool Ok();
|
bool Ok();
|
||||||
|
#ifdef __WXMSW__
|
||||||
void SetColour(wxColour &colour);
|
void SetColour(wxColour &colour);
|
||||||
void SetStipple(wxBitmap *bitmap);
|
void SetStipple(wxBitmap *bitmap);
|
||||||
void SetStyle(int style);
|
void SetStyle(int style);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
@ -242,7 +256,7 @@ public:
|
|||||||
|
|
||||||
class wxDC {
|
class wxDC {
|
||||||
public:
|
public:
|
||||||
wxDC();
|
// wxDC(); **** abstract base class, can't instantiate.
|
||||||
~wxDC();
|
~wxDC();
|
||||||
|
|
||||||
void BeginDrawing();
|
void BeginDrawing();
|
||||||
@ -271,7 +285,12 @@ public:
|
|||||||
void EndDoc();
|
void EndDoc();
|
||||||
void EndDrawing();
|
void EndDrawing();
|
||||||
void EndPage();
|
void EndPage();
|
||||||
|
#ifdef __WXWIN__
|
||||||
void FloodFill(long x, long y, const wxColour& colour, int style=wxFLOOD_SURFACE);
|
void FloodFill(long x, long y, const wxColour& colour, int style=wxFLOOD_SURFACE);
|
||||||
|
#endif
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
void FloodFill(long x, long y, wxColour* colour, int style=wxFLOOD_SURFACE);
|
||||||
|
#endif
|
||||||
wxBrush * GetBackground();
|
wxBrush * GetBackground();
|
||||||
wxBrush * GetBrush();
|
wxBrush * GetBrush();
|
||||||
long GetCharHeight();
|
long GetCharHeight();
|
||||||
@ -283,7 +302,13 @@ public:
|
|||||||
int GetMapMode();
|
int GetMapMode();
|
||||||
bool GetOptimization();
|
bool GetOptimization();
|
||||||
wxPen * GetPen();
|
wxPen * GetPen();
|
||||||
//bool GetPixel(int x, int y, wxColour *T_OUTPUT); **** See below.
|
%addmethods {
|
||||||
|
%new wxColour* GetPixel(long x, long y) {
|
||||||
|
wxColour* wc = new wxColour();
|
||||||
|
self->GetPixel(x, y, wc);
|
||||||
|
return wc;
|
||||||
|
}
|
||||||
|
}
|
||||||
void GetSize(int* OUTPUT, int* OUTPUT); //void GetSize(long* OUTPUT, long* OUTPUT);
|
void GetSize(int* OUTPUT, int* OUTPUT); //void GetSize(long* OUTPUT, long* OUTPUT);
|
||||||
wxColour& GetTextBackground();
|
wxColour& GetTextBackground();
|
||||||
void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT,
|
void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT,
|
||||||
@ -317,12 +342,6 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
%addmethods {
|
%addmethods {
|
||||||
%new wxColour* GetPixel(long x, long y) {
|
|
||||||
wxColor* wc = new wxColor();
|
|
||||||
self->GetPixel(x, y, wc);
|
|
||||||
return wc;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This one is my own creation...
|
// This one is my own creation...
|
||||||
void DrawBitmap(wxBitmap* bitmap, long x, long y, bool swapPalette=TRUE) {
|
void DrawBitmap(wxBitmap* bitmap, long x, long y, bool swapPalette=TRUE) {
|
||||||
wxMemoryDC* memDC = new wxMemoryDC;
|
wxMemoryDC* memDC = new wxMemoryDC;
|
||||||
@ -389,19 +408,23 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxPrinterDC : public wxDC {
|
class wxPrinterDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output,
|
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output,
|
||||||
bool interactive = TRUE, int orientation = wxPORTRAIT);
|
bool interactive = TRUE, int orientation = wxPORTRAIT);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
class wxMetaFileDC : public wxDC {
|
class wxMetaFileDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxMetaFileDC(const wxString& filename = wxPyEmptyStr);
|
wxMetaFileDC(const wxString& filename = wxPyEmptyStr);
|
||||||
wxMetaFile* Close();
|
wxMetaFile* Close();
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@ -461,6 +484,11 @@ extern wxColour wxNullColour;
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.3 1998/08/18 19:48:16 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.2 1998/08/15 07:36:35 RD
|
// Revision 1.2 1998/08/15 07:36:35 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
@ -76,7 +76,7 @@ void wxPyApp::AfterMainLoop(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// a few native methods to add to the module
|
// a few native methods to add to the module
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
@ -100,8 +100,18 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args)
|
|||||||
wxPythonApp->OnInitGui();
|
wxPythonApp->OnInitGui();
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
wxTheApp->argc = 0;
|
wxClassInfo::InitializeClasses();
|
||||||
wxTheApp->argv = NULL;
|
PyObject* sysargv = PySys_GetObject("argv");
|
||||||
|
int argc = PyList_Size(sysargv);
|
||||||
|
char** argv = new char*[argc+1];
|
||||||
|
int x;
|
||||||
|
for(x=0; x<argc; x++)
|
||||||
|
argv[x] = PyString_AsString(PyList_GetItem(sysargv, x));
|
||||||
|
argv[argc] = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
wxTheApp->argc = argc;
|
||||||
|
wxTheApp->argv = argv;
|
||||||
|
|
||||||
gtk_init( &wxTheApp->argc, &wxTheApp->argv );
|
gtk_init( &wxTheApp->argc, &wxTheApp->argv );
|
||||||
|
|
||||||
@ -148,6 +158,8 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxTheApp->m_initialized = (wxTopLevelWindows.Number() > 0);
|
||||||
|
|
||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
@ -274,7 +286,7 @@ PyObject* __wxSetDictionary(PyObject* /* self */, PyObject* args)
|
|||||||
#define wxPlatform "__GTK__"
|
#define wxPlatform "__GTK__"
|
||||||
#endif
|
#endif
|
||||||
#if defined(__WIN32__) || defined(__WXMSW__)
|
#if defined(__WIN32__) || defined(__WXMSW__)
|
||||||
#define wxPlatform "__WIN32__"
|
#define wxPlatform "__WXMSW__"
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#define wxPlatform "__MAC__"
|
#define wxPlatform "__MAC__"
|
||||||
@ -1059,6 +1071,11 @@ wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source) {
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.5 1998/08/18 19:48:17 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.4 1998/08/16 04:31:06 RD
|
// Revision 1.4 1998/08/16 04:31:06 RD
|
||||||
// More wxGTK work.
|
// More wxGTK work.
|
||||||
//
|
//
|
||||||
|
@ -51,7 +51,9 @@ public:
|
|||||||
// TODO: This isn't handled by the standard event-table system...
|
// TODO: This isn't handled by the standard event-table system...
|
||||||
//wxMDIClientWindow* OnCreateClient();
|
//wxMDIClientWindow* OnCreateClient();
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
void SetToolBar(wxToolBar* toolbar);
|
void SetToolBar(wxToolBar* toolbar);
|
||||||
|
#endif
|
||||||
void Tile();
|
void Tile();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -70,6 +72,11 @@ public:
|
|||||||
void Activate();
|
void Activate();
|
||||||
void Maximize();
|
void Maximize();
|
||||||
void Restore();
|
void Restore();
|
||||||
|
|
||||||
|
void SetMenuBar(wxMenuBar *menu_bar);
|
||||||
|
void SetClientSize(int width, int height);
|
||||||
|
void GetPosition(int* OUTPUT, int* OUTPUT) const ;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +91,11 @@ public:
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.3 1998/08/18 19:48:18 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.2 1998/08/15 07:36:39 RD
|
// Revision 1.2 1998/08/15 07:36:39 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
@ -182,18 +182,19 @@ wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL);
|
|||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
wxWindow * wxGetActiveWindow();
|
wxWindow * wxGetActiveWindow();
|
||||||
long wxGetElapsedTime(bool resetTimer = TRUE);
|
long wxGetElapsedTime(bool resetTimer = TRUE);
|
||||||
#endif
|
|
||||||
long wxGetFreeMemory();
|
long wxGetFreeMemory();
|
||||||
|
#endif
|
||||||
void wxGetMousePosition(int* OUTPUT, int* OUTPUT);
|
void wxGetMousePosition(int* OUTPUT, int* OUTPUT);
|
||||||
bool wxIsBusy();
|
bool wxIsBusy();
|
||||||
wxString wxNow();
|
wxString wxNow();
|
||||||
bool wxShell(const wxString& command = wxPyEmptyStr);
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
bool wxShell(const wxString& command = wxPyEmptyStr);
|
||||||
void wxStartTimer();
|
void wxStartTimer();
|
||||||
|
int wxGetOsVersion(int *OUTPUT, int *OUTPUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool wxYield();
|
bool wxYield();
|
||||||
|
|
||||||
int wxGetOsVersion(int *OUTPUT, int *OUTPUT);
|
|
||||||
%inline %{
|
%inline %{
|
||||||
char* wxGetResource(char *section, char *entry, char *file = NULL) {
|
char* wxGetResource(char *section, char *entry, char *file = NULL) {
|
||||||
char * retval;
|
char * retval;
|
||||||
@ -306,6 +307,11 @@ public:
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.4 1998/08/18 19:48:19 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.3 1998/08/16 04:31:10 RD
|
// Revision 1.3 1998/08/16 04:31:10 RD
|
||||||
// More wxGTK work.
|
// More wxGTK work.
|
||||||
//
|
//
|
||||||
|
@ -209,11 +209,13 @@ public:
|
|||||||
const wxString& strText,
|
const wxString& strText,
|
||||||
bool bSelect = FALSE,
|
bool bSelect = FALSE,
|
||||||
int imageId = -1);
|
int imageId = -1);
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool InsertPage(int nPage,
|
bool InsertPage(int nPage,
|
||||||
/*wxNotebookPage*/ wxWindow *pPage,
|
/*wxNotebookPage*/ wxWindow *pPage,
|
||||||
const wxString& strText,
|
const wxString& strText,
|
||||||
bool bSelect = FALSE,
|
bool bSelect = FALSE,
|
||||||
int imageId = -1);
|
int imageId = -1);
|
||||||
|
#endif
|
||||||
wxNotebookPage *GetPage(int nPage);
|
wxNotebookPage *GetPage(int nPage);
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -222,6 +224,11 @@ public:
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.3 1998/08/18 19:48:20 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.2 1998/08/15 07:36:50 RD
|
// Revision 1.2 1998/08/15 07:36:50 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
@ -149,9 +149,6 @@ extern "C" SWIGEXPORT(void,initcmndlgsc)();
|
|||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
wxApp::Initialize((WXHINSTANCE)wxhInstance);
|
wxApp::Initialize((WXHINSTANCE)wxhInstance);
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXGTK__
|
|
||||||
wxApp::CommonInit();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
|
// wxPyWindows = new wxHashTable(wxKEY_INTEGER, 100);
|
||||||
@ -180,6 +177,11 @@ extern "C" SWIGEXPORT(void,initcmndlgsc)();
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.4 1998/08/18 19:48:20 RD
|
||||||
|
// more wxGTK compatibility things.
|
||||||
|
//
|
||||||
|
// It builds now but there are serious runtime problems...
|
||||||
|
//
|
||||||
// Revision 1.3 1998/08/15 07:36:53 RD
|
// Revision 1.3 1998/08/15 07:36:53 RD
|
||||||
// - Moved the header in the .i files out of the code that gets put into
|
// - Moved the header in the .i files out of the code that gets put into
|
||||||
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
// the .cpp files. It caused CVS conflicts because of the RCS ID being
|
||||||
|
Loading…
Reference in New Issue
Block a user