]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/aui.py
Add docstrings and a dummy class to be used in builds that don't have wxSearchCtrl.
[wxWidgets.git] / wxPython / src / gtk / aui.py
index 7e7b397159c1e479d3a4873aa1c50e11e83e2333..ba6ec0b2610da177d54f0ec22bf8be0b58f192f7 100644 (file)
@@ -482,14 +482,6 @@ class AuiPaneInfo(object):
         """Movable(self, bool b=True) -> AuiPaneInfo"""
         return _aui.AuiPaneInfo_Movable(*args, **kwargs)
 
-    def SaveHidden(*args, **kwargs):
-        """SaveHidden(self) -> AuiPaneInfo"""
-        return _aui.AuiPaneInfo_SaveHidden(*args, **kwargs)
-
-    def RestoreHidden(*args, **kwargs):
-        """RestoreHidden(self) -> AuiPaneInfo"""
-        return _aui.AuiPaneInfo_RestoreHidden(*args, **kwargs)
-
     def Dockable(*args, **kwargs):
         """Dockable(self, bool b=True) -> AuiPaneInfo"""
         return _aui.AuiPaneInfo_Dockable(*args, **kwargs)
@@ -535,7 +527,6 @@ class AuiPaneInfo(object):
     optionActive = _aui.AuiPaneInfo_optionActive
     optionGripperTop = _aui.AuiPaneInfo_optionGripperTop
     optionMaximized = _aui.AuiPaneInfo_optionMaximized
-    optionSavedHidden = _aui.AuiPaneInfo_optionSavedHidden
     buttonClose = _aui.AuiPaneInfo_buttonClose
     buttonMaximize = _aui.AuiPaneInfo_buttonMaximize
     buttonMinimize = _aui.AuiPaneInfo_buttonMinimize
@@ -543,6 +534,7 @@ class AuiPaneInfo(object):
     buttonCustom1 = _aui.AuiPaneInfo_buttonCustom1
     buttonCustom2 = _aui.AuiPaneInfo_buttonCustom2
     buttonCustom3 = _aui.AuiPaneInfo_buttonCustom3
+    savedHiddenState = _aui.AuiPaneInfo_savedHiddenState
     actionPane = _aui.AuiPaneInfo_actionPane
     name = property(_aui.AuiPaneInfo_name_get, _aui.AuiPaneInfo_name_set)
     caption = property(_aui.AuiPaneInfo_caption_get, _aui.AuiPaneInfo_caption_set)
@@ -638,21 +630,9 @@ class AuiManager(_core.EvtHandler):
         """DetachPane(self, Window window) -> bool"""
         return _aui.AuiManager_DetachPane(*args, **kwargs)
 
-    def ClosePane(*args, **kwargs):
-        """ClosePane(self, AuiPaneInfo pane_info)"""
-        return _aui.AuiManager_ClosePane(*args, **kwargs)
-
-    def MaximizePane(*args, **kwargs):
-        """MaximizePane(self, AuiPaneInfo pane_info)"""
-        return _aui.AuiManager_MaximizePane(*args, **kwargs)
-
-    def RestorePane(*args, **kwargs):
-        """RestorePane(self, AuiPaneInfo pane_info)"""
-        return _aui.AuiManager_RestorePane(*args, **kwargs)
-
-    def RestoreMaximizedPane(*args, **kwargs):
-        """RestoreMaximizedPane(self)"""
-        return _aui.AuiManager_RestoreMaximizedPane(*args, **kwargs)
+    def Update(*args, **kwargs):
+        """Update(self)"""
+        return _aui.AuiManager_Update(*args, **kwargs)
 
     def SavePaneInfo(*args, **kwargs):
         """SavePaneInfo(self, AuiPaneInfo pane) -> String"""
@@ -670,9 +650,29 @@ class AuiManager(_core.EvtHandler):
         """LoadPerspective(self, String perspective, bool update=True) -> bool"""
         return _aui.AuiManager_LoadPerspective(*args, **kwargs)
 
-    def Update(*args, **kwargs):
-        """Update(self)"""
-        return _aui.AuiManager_Update(*args, **kwargs)
+    def SetDockSizeConstraint(*args, **kwargs):
+        """SetDockSizeConstraint(self, double width_pct, double height_pct)"""
+        return _aui.AuiManager_SetDockSizeConstraint(*args, **kwargs)
+
+    def GetDockSizeConstraint(*args, **kwargs):
+        """GetDockSizeConstraint(self, double width_pct, double height_pct)"""
+        return _aui.AuiManager_GetDockSizeConstraint(*args, **kwargs)
+
+    def ClosePane(*args, **kwargs):
+        """ClosePane(self, AuiPaneInfo pane_info)"""
+        return _aui.AuiManager_ClosePane(*args, **kwargs)
+
+    def MaximizePane(*args, **kwargs):
+        """MaximizePane(self, AuiPaneInfo pane_info)"""
+        return _aui.AuiManager_MaximizePane(*args, **kwargs)
+
+    def RestorePane(*args, **kwargs):
+        """RestorePane(self, AuiPaneInfo pane_info)"""
+        return _aui.AuiManager_RestorePane(*args, **kwargs)
+
+    def RestoreMaximizedPane(*args, **kwargs):
+        """RestoreMaximizedPane(self)"""
+        return _aui.AuiManager_RestoreMaximizedPane(*args, **kwargs)
 
     def CreateFloatingFrame(*args, **kwargs):
         """CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame"""
@@ -866,6 +866,7 @@ class AuiDockInfo(object):
     resizable = property(_aui.AuiDockInfo_resizable_get, _aui.AuiDockInfo_resizable_set)
     toolbar = property(_aui.AuiDockInfo_toolbar_get, _aui.AuiDockInfo_toolbar_set)
     fixed = property(_aui.AuiDockInfo_fixed_get, _aui.AuiDockInfo_fixed_set)
+    reserved1 = property(_aui.AuiDockInfo_reserved1_get, _aui.AuiDockInfo_reserved1_set)
     __swig_destroy__ = _aui.delete_AuiDockInfo
     __del__ = lambda self : None;
 _aui.AuiDockInfo_swigregister(AuiDockInfo)
@@ -906,18 +907,18 @@ class AuiPaneButton(object):
     __del__ = lambda self : None;
 _aui.AuiPaneButton_swigregister(AuiPaneButton)
 
-wxEVT_AUI_PANEBUTTON = _aui.wxEVT_AUI_PANEBUTTON
-wxEVT_AUI_PANECLOSE = _aui.wxEVT_AUI_PANECLOSE
-wxEVT_AUI_PANEMAXIMIZE = _aui.wxEVT_AUI_PANEMAXIMIZE
-wxEVT_AUI_PANERESTORE = _aui.wxEVT_AUI_PANERESTORE
+wxEVT_AUI_PANE_BUTTON = _aui.wxEVT_AUI_PANE_BUTTON
+wxEVT_AUI_PANE_CLOSE = _aui.wxEVT_AUI_PANE_CLOSE
+wxEVT_AUI_PANE_MAXIMIZE = _aui.wxEVT_AUI_PANE_MAXIMIZE
+wxEVT_AUI_PANE_RESTORE = _aui.wxEVT_AUI_PANE_RESTORE
 wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER
-wxEVT_AUI_FINDMANAGER = _aui.wxEVT_AUI_FINDMANAGER
-EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON )
-EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE )
-EVT_AUI_PANEMAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE )
-EVT_AUI_PANERESTORE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE )
+wxEVT_AUI_FIND_MANAGER = _aui.wxEVT_AUI_FIND_MANAGER
+EVT_AUI_PANE_BUTTON = wx.PyEventBinder( wxEVT_AUI_PANE_BUTTON )
+EVT_AUI_PANE_CLOSE = wx.PyEventBinder( wxEVT_AUI_PANE_CLOSE )
+EVT_AUI_PANE_MAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANE_MAXIMIZE )
+EVT_AUI_PANE_RESTORE = wx.PyEventBinder( wxEVT_AUI_PANE_RESTORE )
 EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER )
-EVT_AUI_FINDMANAGER = wx.PyEventBinder( wxEVT_AUI_FINDMANAGER )
+EVT_AUI_FIND_MANAGER = wx.PyEventBinder( wxEVT_AUI_FIND_MANAGER )
 
 class AuiDockArt(object):
     """Proxy of C++ AuiDockArt class"""
@@ -1137,25 +1138,19 @@ class AuiTabArt(object):
 
     def DrawTab(*args, **kwargs):
         """
-        DrawTab(self, DC dc, Window wnd, Rect in_rect, String caption, Bitmap bitmap, 
-            bool active, int close_button_state, 
-            Rect out_tab_rect, Rect out_button_rect, 
-            int x_extent)
+        DrawTab(self, DC dc, Window wnd, AuiNotebookPage pane, Rect in_rect, 
+            int close_button_state, Rect out_tab_rect, 
+            Rect out_button_rect, int x_extent)
         """
         return _aui.AuiTabArt_DrawTab(*args, **kwargs)
 
     def DrawButton(*args, **kwargs):
         """
         DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state, 
-            int orientation, Bitmap bitmap_override, 
-            Rect out_rect)
+            int orientation, Rect out_rect)
         """
         return _aui.AuiTabArt_DrawButton(*args, **kwargs)
 
-    def GetIndentSize(*args, **kwargs):
-        """GetIndentSize(self) -> int"""
-        return _aui.AuiTabArt_GetIndentSize(*args, **kwargs)
-
     def GetTabSize(*args, **kwargs):
         """
         GetTabSize(self, DC dc, Window wnd, String caption, Bitmap bitmap, bool active, 
@@ -1163,9 +1158,13 @@ class AuiTabArt(object):
         """
         return _aui.AuiTabArt_GetTabSize(*args, **kwargs)
 
-    def ShowWindowList(*args, **kwargs):
-        """ShowWindowList(self, Window wnd, wxArrayString items, int active_idx) -> int"""
-        return _aui.AuiTabArt_ShowWindowList(*args, **kwargs)
+    def ShowDropDown(*args, **kwargs):
+        """ShowDropDown(self, Window wnd, wxAuiNotebookPageArray items, int active_idx) -> int"""
+        return _aui.AuiTabArt_ShowDropDown(*args, **kwargs)
+
+    def GetIndentSize(*args, **kwargs):
+        """GetIndentSize(self) -> int"""
+        return _aui.AuiTabArt_GetIndentSize(*args, **kwargs)
 
     def GetBestTabCtrlSize(*args, **kwargs):
         """GetBestTabCtrlSize(self, Window wnd, wxAuiNotebookPageArray pages, Size required_bmp_size) -> int"""
@@ -1362,6 +1361,22 @@ class AuiNotebook(_core.Control):
         """
         return _aui.AuiNotebook_Create(*args, **kwargs)
 
+    def SetArtProvider(*args, **kwargs):
+        """SetArtProvider(self, AuiTabArt art)"""
+        return _aui.AuiNotebook_SetArtProvider(*args, **kwargs)
+
+    def GetArtProvider(*args, **kwargs):
+        """GetArtProvider(self) -> AuiTabArt"""
+        return _aui.AuiNotebook_GetArtProvider(*args, **kwargs)
+
+    def SetUniformBitmapSize(*args, **kwargs):
+        """SetUniformBitmapSize(self, Size size)"""
+        return _aui.AuiNotebook_SetUniformBitmapSize(*args, **kwargs)
+
+    def SetTabCtrlHeight(*args, **kwargs):
+        """SetTabCtrlHeight(self, int height)"""
+        return _aui.AuiNotebook_SetTabCtrlHeight(*args, **kwargs)
+
     def AddPage(*args, **kwargs):
         """AddPage(self, Window page, String caption, bool select=False, Bitmap bitmap=wxNullBitmap) -> bool"""
         return _aui.AuiNotebook_AddPage(*args, **kwargs)
@@ -1381,14 +1396,34 @@ class AuiNotebook(_core.Control):
         """RemovePage(self, size_t page) -> bool"""
         return _aui.AuiNotebook_RemovePage(*args, **kwargs)
 
+    def GetPageCount(*args, **kwargs):
+        """GetPageCount(self) -> size_t"""
+        return _aui.AuiNotebook_GetPageCount(*args, **kwargs)
+
+    def GetPage(*args, **kwargs):
+        """GetPage(self, size_t page_idx) -> Window"""
+        return _aui.AuiNotebook_GetPage(*args, **kwargs)
+
+    def GetPageIndex(*args, **kwargs):
+        """GetPageIndex(self, Window page_wnd) -> int"""
+        return _aui.AuiNotebook_GetPageIndex(*args, **kwargs)
+
     def SetPageText(*args, **kwargs):
         """SetPageText(self, size_t page, String text) -> bool"""
         return _aui.AuiNotebook_SetPageText(*args, **kwargs)
 
+    def GetPageText(*args, **kwargs):
+        """GetPageText(self, size_t page_idx) -> String"""
+        return _aui.AuiNotebook_GetPageText(*args, **kwargs)
+
     def SetPageBitmap(*args, **kwargs):
         """SetPageBitmap(self, size_t page, Bitmap bitmap) -> bool"""
         return _aui.AuiNotebook_SetPageBitmap(*args, **kwargs)
 
+    def GetPageBitmap(*args, **kwargs):
+        """GetPageBitmap(self, size_t page_idx) -> Bitmap"""
+        return _aui.AuiNotebook_GetPageBitmap(*args, **kwargs)
+
     def SetSelection(*args, **kwargs):
         """SetSelection(self, size_t new_page) -> size_t"""
         return _aui.AuiNotebook_SetSelection(*args, **kwargs)
@@ -1397,33 +1432,9 @@ class AuiNotebook(_core.Control):
         """GetSelection(self) -> int"""
         return _aui.AuiNotebook_GetSelection(*args, **kwargs)
 
-    def GetPageCount(*args, **kwargs):
-        """GetPageCount(self) -> size_t"""
-        return _aui.AuiNotebook_GetPageCount(*args, **kwargs)
-
-    def GetPage(*args, **kwargs):
-        """GetPage(self, size_t page_idx) -> Window"""
-        return _aui.AuiNotebook_GetPage(*args, **kwargs)
-
-    def GetPageIndex(*args, **kwargs):
-        """GetPageIndex(self, Window page_wnd) -> int"""
-        return _aui.AuiNotebook_GetPageIndex(*args, **kwargs)
-
-    def SetArtProvider(*args, **kwargs):
-        """SetArtProvider(self, AuiTabArt art)"""
-        return _aui.AuiNotebook_SetArtProvider(*args, **kwargs)
-
-    def GetArtProvider(*args, **kwargs):
-        """GetArtProvider(self) -> AuiTabArt"""
-        return _aui.AuiNotebook_GetArtProvider(*args, **kwargs)
-
-    def SetUniformBitmapSize(*args, **kwargs):
-        """SetUniformBitmapSize(self, Size size)"""
-        return _aui.AuiNotebook_SetUniformBitmapSize(*args, **kwargs)
-
-    def SetTabCtrlHeight(*args, **kwargs):
-        """SetTabCtrlHeight(self, int height)"""
-        return _aui.AuiNotebook_SetTabCtrlHeight(*args, **kwargs)
+    def Split(*args, **kwargs):
+        """Split(self, size_t page, int direction)"""
+        return _aui.AuiNotebook_Split(*args, **kwargs)
 
     PageCount = property(GetPageCount,doc="See `GetPageCount`") 
     Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`")