]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/windows2.i
Replaced /'s with \'s as BCC requires \'s for path names
[wxWidgets.git] / wxPython / src / windows2.i
index 6428bb16660a7d44366416778c789c957e6e687e..cfddb6a4d3f5a30243dfb8de9a117f24c8024bd7 100644 (file)
@@ -19,6 +19,7 @@
 #endif
 #include <wx/notebook.h>
 #include <wx/splitter.h>
+#include <wx/imaglist.h>
 #ifdef __WXMSW__
 #include <wx/msw/taskbar.h>
 #endif
@@ -58,9 +59,9 @@ public:
     void      SetTextValue(const wxString& str);
     wxFont&   GetFont();
     void      SetFont(wxFont& f);
-    wxColour& GetTextColour();
+    wxColour GetTextColour();
     void      SetTextColour(const wxColour& colour);
-    wxColour& GetBackgroundColour();
+    wxColour GetBackgroundColour();
     void      SetBackgroundColour(const wxColour& colour);
     wxBrush&  GetBackgroundBrush();
     int       GetAlignment();
@@ -75,8 +76,8 @@ public:
 class wxGrid : public wxPanel {
 public:
     wxGrid(wxWindow* parent, wxWindowID id,
-           const wxPoint& pos=wxPyDefaultPosition,
-           const wxSize& size=wxPyDefaultSize,
+           const wxPoint& pos=wxDefaultPosition,
+           const wxSize& size=wxDefaultSize,
            long style=0,
            char* name="grid");
 
@@ -121,7 +122,7 @@ public:
     wxGridCell* GetCell(int row, int col);
     int GetCellAlignment(int row, int col);
     %name(GetDefCellAlignment)int GetCellAlignment();
-    wxColour& GetCellBackgroundColour(int row, int col);
+    wxColour GetCellBackgroundColour(int row, int col);
     %name(GetDefCellBackgroundColour) wxColour& GetCellBackgroundColour();
 
     //wxGridCell *** GetCells();
@@ -147,7 +148,7 @@ public:
             return rows;
         }
     }
-    wxColour& GetCellTextColour(int row, int col);
+    wxColour GetCellTextColour(int row, int col);
     %name(GetDefCellTextColour)wxColour& GetCellTextColour();
     wxFont& GetCellTextFont(int row, int col);
     %name(GetDefCellTextFont)wxFont& GetCellTextFont();
@@ -160,9 +161,9 @@ public:
     bool GetEditable();
     wxScrollBar * GetHorizScrollBar();
     int GetLabelAlignment(int orientation);
-    wxColour& GetLabelBackgroundColour();
+    wxColour GetLabelBackgroundColour();
     int GetLabelSize(int orientation);
-    wxColour& GetLabelTextColour();
+    wxColour GetLabelTextColour();
     wxFont& GetLabelTextFont();
     wxString& GetLabelValue(int orientation, int pos);
     int GetRowHeight(int row);
@@ -242,6 +243,13 @@ enum {
 
 //---------------------------------------------------------------------------
 
+enum {
+     /* notebook control event types */
+    wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
+    wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
+};
+
+
 class wxNotebookEvent : public wxNotifyEvent {
 public:
     int GetSelection();
@@ -256,8 +264,8 @@ class wxNotebook : public wxControl {
 public:
     wxNotebook(wxWindow *parent,
                wxWindowID id,
-               const wxPoint& pos = wxPyDefaultPosition,
-               const wxSize& size = wxPyDefaultSize,
+               const wxPoint& pos = wxDefaultPosition,
+               const wxSize& size = wxDefaultSize,
                long style = 0,
                char* name = "notebook");
 
@@ -304,6 +312,15 @@ public:
 //---------------------------------------------------------------------------
 
 
+enum {
+    /* splitter window events */
+    wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
+    wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
+    wxEVT_COMMAND_SPLITTER_UNSPLIT,
+    wxEVT_COMMAND_SPLITTER_DOUBLECLICKED,
+};
+
+
 enum
 {
     wxSPLIT_HORIZONTAL,
@@ -311,7 +328,6 @@ enum
     wxSPLIT_DRAG_NONE,
     wxSPLIT_DRAG_DRAGGING,
     wxSPLIT_DRAG_LEFT_DOWN
-
 };
 
 
@@ -330,8 +346,8 @@ public:
 class wxSplitterWindow : public wxWindow {
 public:
     wxSplitterWindow(wxWindow* parent, wxWindowID id,
-                     const wxPoint& point = wxPyDefaultPosition,
-                     const wxSize& size = wxPyDefaultSize,
+                     const wxPoint& point = wxDefaultPosition,
+                     const wxSize& size = wxDefaultSize,
                      long style=wxSP_3D|wxCLIP_CHILDREN,
                      char* name = "splitterWindow");