]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/windows2.i
Version 0.4 of wxPython for MSW.
[wxWidgets.git] / utils / wxPython / src / windows2.i
index fa978be58a45ac29acc4cc3808a5df7796c97fb0..dd73256f4b691cc91633b90362788f72f5441288 100644 (file)
@@ -16,6 +16,7 @@
 #include "helpers.h"
 #include <wx/grid.h>
 #include <wx/notebook.h>
+#include <wx/splitter.h>
 %}
 
 //----------------------------------------------------------------------
@@ -31,6 +32,8 @@
 %import controls.i
 %import events.i
 
+%pragma(python) code = "import wxp"
+
 //---------------------------------------------------------------------------
 
 enum {
@@ -70,6 +73,8 @@ public:
            long style=0,
            char* name="grid");
 
+    %pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)"
+
     void AdjustScrollbars();
     bool AppendCols(int n=1, bool updateLabels=TRUE);
     bool AppendRows(int n=1, bool updateLabels=TRUE);
@@ -189,6 +194,8 @@ public:
                long style = 0,
                char* name = "notebook");
 
+    %pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)"
+
     int GetPageCount();
     int SetSelection(int nPage);
     void AdvanceSelection(bool bForward = TRUE);
@@ -220,10 +227,51 @@ public:
 
 };
 
+//---------------------------------------------------------------------------
+
+class wxSplitterWindow : public wxWindow {
+public:
+    wxSplitterWindow(wxWindow* parent, wxWindowID id,
+                     const wxPoint& point = wxPyDefaultPosition,
+                     const wxSize& size = wxPyDefaultSize,
+                     long style=wxSP_3D,
+                     char* name = "splitterWindow");
+
+    %pragma(python) addtomethod = "__init__:wxp._StdWindowCallbacks(self)"
+
+    int GetMinimumPaneSize();
+    int GetSashPosition();
+    int GetSplitMode();
+    wxWindow* GetWindow1();
+    wxWindow* GetWindow2();
+    void Initialize(wxWindow* window);
+    bool IsSplit();
+
+    // TODO:  How to handle callbacks that don't come from
+    //        event system???
+    //
+    //void OnDoubleClickSash(int x, int y);
+    //void OnUnsplit(wxWindow* removed);
+
+    void SetSashPosition(int position, int redraw = TRUE);
+    void SetMinimumPaneSize(int paneSize);
+    void SetSplitMode(int mode);
+    bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int sashPosition = -1);
+    bool SplitVertically(wxWindow* window1, wxWindow* window2, int sashPosition = -1);
+    bool Unsplit(wxWindow* toRemove = NULL);
+};
+
+//---------------------------------------------------------------------------
+
+
+
 //---------------------------------------------------------------------------
 /////////////////////////////////////////////////////////////////////////////
 //
 // $Log$
+// Revision 1.4  1998/10/02 06:40:43  RD
+// Version 0.4 of wxPython for MSW.
+//
 // Revision 1.3  1998/08/18 19:48:20  RD
 // more wxGTK compatibility things.
 //