]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/windows2.i
newly generated files from SWIG
[wxWidgets.git] / utils / wxPython / src / windows2.i
index 19d0f013e9c092476eeb6cde886a41a242b852fa..dd73256f4b691cc91633b90362788f72f5441288 100644 (file)
@@ -1,5 +1,3 @@
-%module windows2
-%{
 /////////////////////////////////////////////////////////////////////////////
 // Name:        windows2.i
 // Purpose:     SWIG definitions of MORE window classes
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
+%module windows2
 
+%{
 #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);
@@ -209,19 +216,74 @@ public:
                  const wxString& strText,
                  bool bSelect = FALSE,
                  int imageId = -1);
+#ifdef __WXMSW__
     bool InsertPage(int nPage,
                     /*wxNotebookPage*/ wxWindow *pPage,
                     const wxString& strText,
                     bool bSelect = FALSE,
                     int imageId = -1);
+#endif
     wxNotebookPage *GetPage(int nPage);
 
 };
 
+//---------------------------------------------------------------------------
+
+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.
+//
+// It builds now but there are serious runtime problems...
+//
+// 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
+// the .cpp files.  It caused CVS conflicts because of the RCS ID being
+// different each time.
+//
+// - A few minor fixes.
+//
 // Revision 1.1  1998/08/09 08:25:52  RD
 // Initial version
 //