Changes needed for scanning the aui header files with SWIG for
wxPython. Also fix some DLL exports. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,8 +42,8 @@ public:
|
|||||||
virtual wxFont GetFont(int id) = 0;
|
virtual wxFont GetFont(int id) = 0;
|
||||||
virtual wxColour GetColour(int id) = 0;
|
virtual wxColour GetColour(int id) = 0;
|
||||||
virtual void SetColour(int id, const wxColor& colour) = 0;
|
virtual void SetColour(int id, const wxColor& colour) = 0;
|
||||||
wxColor GetColor(int id) { return GetColour(id); }
|
wxColour GetColor(int id) { return GetColour(id); }
|
||||||
void SetColor(int id, const wxColor& color) { SetColour(id, color); }
|
void SetColor(int id, const wxColour& color) { SetColour(id, color); }
|
||||||
|
|
||||||
virtual void DrawSash(wxDC& dc,
|
virtual void DrawSash(wxDC& dc,
|
||||||
int orientation,
|
int orientation,
|
||||||
|
@@ -58,9 +58,10 @@ private:
|
|||||||
wxFrameManager* m_owner_mgr;
|
wxFrameManager* m_owner_mgr;
|
||||||
wxFrameManager m_mgr;
|
wxFrameManager m_mgr;
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
|
||||||
DECLARE_CLASS(wxFloatingPaneBaseClass)
|
DECLARE_CLASS(wxFloatingPaneBaseClass)
|
||||||
|
#endif // SWIG
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_AUI
|
#endif // wxUSE_AUI
|
||||||
|
@@ -102,16 +102,17 @@ class wxDockInfo;
|
|||||||
class wxDockArt;
|
class wxDockArt;
|
||||||
class wxFrameManagerEvent;
|
class wxFrameManagerEvent;
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxDockInfo, wxDockInfoArray, WXDLLIMPEXP_AUI);
|
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxDockInfo, wxDockInfoArray, WXDLLIMPEXP_AUI);
|
||||||
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxDockUIPart, wxDockUIPartArray, WXDLLIMPEXP_AUI);
|
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxDockUIPart, wxDockUIPartArray, WXDLLIMPEXP_AUI);
|
||||||
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxPaneButton, wxPaneButtonArray, WXDLLIMPEXP_AUI);
|
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxPaneButton, wxPaneButtonArray, WXDLLIMPEXP_AUI);
|
||||||
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxPaneInfo, wxPaneInfoArray, WXDLLIMPEXP_AUI);
|
WX_DECLARE_USER_EXPORTED_OBJARRAY(wxPaneInfo, wxPaneInfoArray, WXDLLIMPEXP_AUI);
|
||||||
WX_DEFINE_ARRAY_PTR(wxPaneInfo*, wxPaneInfoPtrArray);
|
WX_DEFINE_ARRAY_PTR(wxPaneInfo*, wxPaneInfoPtrArray);
|
||||||
WX_DEFINE_ARRAY_PTR(wxDockInfo*, wxDockInfoPtrArray);
|
WX_DEFINE_ARRAY_PTR(wxDockInfo*, wxDockInfoPtrArray);
|
||||||
|
#endif // SWIG
|
||||||
|
|
||||||
extern wxDockInfo wxNullDockInfo;
|
extern WXDLLIMPEXP_AUI wxDockInfo wxNullDockInfo;
|
||||||
extern wxPaneInfo wxNullPaneInfo;
|
extern WXDLLIMPEXP_AUI wxPaneInfo wxNullPaneInfo;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -138,6 +139,9 @@ public:
|
|||||||
DefaultPane();
|
DefaultPane();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~wxPaneInfo() {}
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
wxPaneInfo(const wxPaneInfo& c)
|
wxPaneInfo(const wxPaneInfo& c)
|
||||||
{
|
{
|
||||||
name = c.name;
|
name = c.name;
|
||||||
@@ -180,7 +184,8 @@ public:
|
|||||||
rect = c.rect;
|
rect = c.rect;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
#endif // SWIG
|
||||||
|
|
||||||
bool IsOk() const { return (window != NULL) ? true : false; }
|
bool IsOk() const { return (window != NULL) ? true : false; }
|
||||||
bool IsFixed() const { return !HasFlag(optionResizable); }
|
bool IsFixed() const { return !HasFlag(optionResizable); }
|
||||||
bool IsResizable() const { return HasFlag(optionResizable); }
|
bool IsResizable() const { return HasFlag(optionResizable); }
|
||||||
@@ -203,6 +208,9 @@ public:
|
|||||||
bool HasPinButton() const { return HasFlag(buttonPin); }
|
bool HasPinButton() const { return HasFlag(buttonPin); }
|
||||||
bool HasGripperTop() const { return HasFlag(optionGripperTop); }
|
bool HasGripperTop() const { return HasFlag(optionGripperTop); }
|
||||||
|
|
||||||
|
#ifdef SWIG
|
||||||
|
%typemap(out) wxPaneInfo& { $result = $self; Py_INCREF($result); }
|
||||||
|
#endif
|
||||||
wxPaneInfo& Window(wxWindow* w) { window = w; return *this; }
|
wxPaneInfo& Window(wxWindow* w) { window = w; return *this; }
|
||||||
wxPaneInfo& Name(const wxString& n) { name = n; return *this; }
|
wxPaneInfo& Name(const wxString& n) { name = n; return *this; }
|
||||||
wxPaneInfo& Caption(const wxString& c) { caption = c; return *this; }
|
wxPaneInfo& Caption(const wxString& c) { caption = c; return *this; }
|
||||||
@@ -292,6 +300,10 @@ public:
|
|||||||
return (state & flag) ? true:false;
|
return (state & flag) ? true:false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SWIG
|
||||||
|
%typemap(out) wxPaneInfo& ;
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum wxPaneState
|
enum wxPaneState
|
||||||
@@ -500,7 +512,9 @@ protected:
|
|||||||
wxTimer m_hint_fadetimer; // transparent fade timer (for now, only msw)
|
wxTimer m_hint_fadetimer; // transparent fade timer (for now, only msw)
|
||||||
int m_hint_fadeamt; // transparent fade amount (for now, only msw)
|
int m_hint_fadeamt; // transparent fade amount (for now, only msw)
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
#endif // SWIG
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -517,7 +531,7 @@ public:
|
|||||||
veto_flag = false;
|
veto_flag = false;
|
||||||
canveto_flag = true;
|
canveto_flag = true;
|
||||||
}
|
}
|
||||||
|
#ifndef SWIG
|
||||||
wxFrameManagerEvent(const wxFrameManagerEvent& c) : wxEvent(c)
|
wxFrameManagerEvent(const wxFrameManagerEvent& c) : wxEvent(c)
|
||||||
{
|
{
|
||||||
pane = c.pane;
|
pane = c.pane;
|
||||||
@@ -525,7 +539,7 @@ public:
|
|||||||
veto_flag = c.veto_flag;
|
veto_flag = c.veto_flag;
|
||||||
canveto_flag = c.canveto_flag;
|
canveto_flag = c.canveto_flag;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
wxEvent *Clone() const { return new wxFrameManagerEvent(*this); }
|
wxEvent *Clone() const { return new wxFrameManagerEvent(*this); }
|
||||||
|
|
||||||
void SetPane(wxPaneInfo* p) { pane = p; }
|
void SetPane(wxPaneInfo* p) { pane = p; }
|
||||||
@@ -561,6 +575,7 @@ public:
|
|||||||
toolbar = false;
|
toolbar = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
wxDockInfo(const wxDockInfo& c)
|
wxDockInfo(const wxDockInfo& c)
|
||||||
{
|
{
|
||||||
dock_direction = c.dock_direction;
|
dock_direction = c.dock_direction;
|
||||||
@@ -589,6 +604,7 @@ public:
|
|||||||
rect = c.rect;
|
rect = c.rect;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
#endif // SWIG
|
||||||
|
|
||||||
bool IsOk() const { return (dock_direction != 0) ? true : false; }
|
bool IsOk() const { return (dock_direction != 0) ? true : false; }
|
||||||
bool IsHorizontal() const { return (dock_direction == wxAUI_DOCK_TOP ||
|
bool IsHorizontal() const { return (dock_direction == wxAUI_DOCK_TOP ||
|
||||||
@@ -646,12 +662,12 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
// wx event machinery
|
// wx event machinery
|
||||||
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
BEGIN_DECLARE_EVENT_TYPES()
|
||||||
DECLARE_EVENT_TYPE(wxEVT_AUI_PANEBUTTON, 0)
|
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI, wxEVT_AUI_PANEBUTTON, 0)
|
||||||
DECLARE_EVENT_TYPE(wxEVT_AUI_PANECLOSE, 0)
|
DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI, wxEVT_AUI_PANECLOSE, 0)
|
||||||
END_DECLARE_EVENT_TYPES()
|
END_DECLARE_EVENT_TYPES()
|
||||||
|
|
||||||
typedef void (wxEvtHandler::*wxFrameManagerEventFunction)(wxFrameManagerEvent&);
|
typedef void (wxEvtHandler::*wxFrameManagerEventFunction)(wxFrameManagerEvent&);
|
||||||
@@ -664,6 +680,16 @@ typedef void (wxEvtHandler::*wxFrameManagerEventFunction)(wxFrameManagerEvent&);
|
|||||||
#define EVT_AUI_PANECLOSE(func) \
|
#define EVT_AUI_PANECLOSE(func) \
|
||||||
wx__DECLARE_EVT0(wxEVT_AUI_PANECLOSE, wxFrameManagerEventHandler(func))
|
wx__DECLARE_EVT0(wxEVT_AUI_PANECLOSE, wxFrameManagerEventHandler(func))
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
%constant wxEventType wxEVT_AUI_PANEBUTTON;
|
||||||
|
%constant wxEventType wxEVT_AUI_PANECLOSE;
|
||||||
|
|
||||||
|
%pythoncode {
|
||||||
|
EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON )
|
||||||
|
EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
|
||||||
|
}
|
||||||
|
#endif // SWIG
|
||||||
|
|
||||||
#endif // wxUSE_AUI
|
#endif // wxUSE_AUI
|
||||||
#endif //_WX_FRAMEMANAGER_H_
|
#endif //_WX_FRAMEMANAGER_H_
|
||||||
|
Reference in New Issue
Block a user