]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/aui.py
reSWIGged
[wxWidgets.git] / wxPython / src / mac / aui.py
index 5a6a228870c05801eabd03463562d830a5b25283..6bf815bac651ac52504ce66aac14d8c96ab73668 100644 (file)
@@ -167,6 +167,8 @@ AUI_MGR_ALLOW_ACTIVE_PANE = _aui.AUI_MGR_ALLOW_ACTIVE_PANE
 AUI_MGR_TRANSPARENT_DRAG = _aui.AUI_MGR_TRANSPARENT_DRAG
 AUI_MGR_TRANSPARENT_HINT = _aui.AUI_MGR_TRANSPARENT_HINT
 AUI_MGR_TRANSPARENT_HINT_FADE = _aui.AUI_MGR_TRANSPARENT_HINT_FADE
+AUI_MGR_DISABLE_VENETIAN_BLINDS = _aui.AUI_MGR_DISABLE_VENETIAN_BLINDS
+AUI_MGR_DISABLE_VENETIAN_BLINDS_FADE = _aui.AUI_MGR_DISABLE_VENETIAN_BLINDS_FADE
 AUI_MGR_DEFAULT = _aui.AUI_MGR_DEFAULT
 AUI_ART_SASH_SIZE = _aui.AUI_ART_SASH_SIZE
 AUI_ART_CAPTION_SIZE = _aui.AUI_ART_CAPTION_SIZE
@@ -221,6 +223,10 @@ class PaneInfo(object):
         _aui.PaneInfo_swiginit(self,_aui.new_PaneInfo(*args, **kwargs))
     __swig_destroy__ = _aui.delete_PaneInfo
     __del__ = lambda self : None;
+    def SafeSet(*args, **kwargs):
+        """SafeSet(self, PaneInfo source)"""
+        return _aui.PaneInfo_SafeSet(*args, **kwargs)
+
     def IsOk(*args, **kwargs):
         """
         IsOk(self) -> bool
@@ -1046,6 +1052,14 @@ class FrameManager(_core.EvtHandler):
         """
         return _aui.FrameManager_DetachPane(*args, **kwargs)
 
+    def SavePaneInfo(*args, **kwargs):
+        """SavePaneInfo(self, PaneInfo pane) -> String"""
+        return _aui.FrameManager_SavePaneInfo(*args, **kwargs)
+
+    def LoadPaneInfo(*args, **kwargs):
+        """LoadPaneInfo(self, String pane_part, PaneInfo pane)"""
+        return _aui.FrameManager_LoadPaneInfo(*args, **kwargs)
+
     def SavePerspective(*args, **kwargs):
         """
         SavePerspective(self) -> String
@@ -1332,27 +1346,30 @@ class DockArt(object):
         return _aui.DockArt_SetColor(*args, **kwargs)
 
     def DrawSash(*args, **kwargs):
-        """DrawSash(self, DC dc, int orientation, Rect rect)"""
+        """DrawSash(self, DC dc, Window window, int orientation, Rect rect)"""
         return _aui.DockArt_DrawSash(*args, **kwargs)
 
     def DrawBackground(*args, **kwargs):
-        """DrawBackground(self, DC dc, int orientation, Rect rect)"""
+        """DrawBackground(self, DC dc, Window window, int orientation, Rect rect)"""
         return _aui.DockArt_DrawBackground(*args, **kwargs)
 
     def DrawCaption(*args, **kwargs):
-        """DrawCaption(self, DC dc, String text, Rect rect, PaneInfo pane)"""
+        """DrawCaption(self, DC dc, Window window, String text, Rect rect, PaneInfo pane)"""
         return _aui.DockArt_DrawCaption(*args, **kwargs)
 
     def DrawGripper(*args, **kwargs):
-        """DrawGripper(self, DC dc, Rect rect, PaneInfo pane)"""
+        """DrawGripper(self, DC dc, Window window, Rect rect, PaneInfo pane)"""
         return _aui.DockArt_DrawGripper(*args, **kwargs)
 
     def DrawBorder(*args, **kwargs):
-        """DrawBorder(self, DC dc, Rect rect, PaneInfo pane)"""
+        """DrawBorder(self, DC dc, Window window, Rect rect, PaneInfo pane)"""
         return _aui.DockArt_DrawBorder(*args, **kwargs)
 
     def DrawPaneButton(*args, **kwargs):
-        """DrawPaneButton(self, DC dc, int button, int button_state, Rect rect, PaneInfo pane)"""
+        """
+        DrawPaneButton(self, DC dc, Window window, int button, int button_state, 
+            Rect rect, PaneInfo pane)
+        """
         return _aui.DockArt_DrawPaneButton(*args, **kwargs)
 
 _aui.DockArt_swigregister(DockArt)
@@ -1392,6 +1409,246 @@ class FloatingPane(_windows.MiniFrame):
 
 _aui.FloatingPane_swigregister(FloatingPane)
 
+class AuiNotebookEvent(_core.NotifyEvent):
+    """Proxy of C++ AuiNotebookEvent class"""
+    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+    __repr__ = _swig_repr
+    def __init__(self, *args, **kwargs): 
+        """__init__(self, EventType command_type=wxEVT_NULL, int win_id=0) -> AuiNotebookEvent"""
+        _aui.AuiNotebookEvent_swiginit(self,_aui.new_AuiNotebookEvent(*args, **kwargs))
+    def SetSelection(*args, **kwargs):
+        """SetSelection(self, int s)"""
+        return _aui.AuiNotebookEvent_SetSelection(*args, **kwargs)
+
+    def SetOldSelection(*args, **kwargs):
+        """SetOldSelection(self, int s)"""
+        return _aui.AuiNotebookEvent_SetOldSelection(*args, **kwargs)
+
+    def GetSelection(*args, **kwargs):
+        """
+        GetSelection(self) -> int
+
+        Returns item index for a listbox or choice selection event (not valid
+        for a deselection).
+        """
+        return _aui.AuiNotebookEvent_GetSelection(*args, **kwargs)
+
+    def GetOldSelection(*args, **kwargs):
+        """GetOldSelection(self) -> int"""
+        return _aui.AuiNotebookEvent_GetOldSelection(*args, **kwargs)
+
+    old_selection = property(_aui.AuiNotebookEvent_old_selection_get, _aui.AuiNotebookEvent_old_selection_set)
+    selection = property(_aui.AuiNotebookEvent_selection_get, _aui.AuiNotebookEvent_selection_set)
+_aui.AuiNotebookEvent_swigregister(AuiNotebookEvent)
+
+class AuiNotebookPage(object):
+    """Proxy of C++ AuiNotebookPage class"""
+    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+    def __init__(self): raise AttributeError, "No constructor defined"
+    __repr__ = _swig_repr
+    window = property(_aui.AuiNotebookPage_window_get, _aui.AuiNotebookPage_window_set)
+    caption = property(_aui.AuiNotebookPage_caption_get, _aui.AuiNotebookPage_caption_set)
+    bitmap = property(_aui.AuiNotebookPage_bitmap_get, _aui.AuiNotebookPage_bitmap_set)
+    rect = property(_aui.AuiNotebookPage_rect_get, _aui.AuiNotebookPage_rect_set)
+    active = property(_aui.AuiNotebookPage_active_get, _aui.AuiNotebookPage_active_set)
+_aui.AuiNotebookPage_swigregister(AuiNotebookPage)
+
+class AuiTabContainerButton(object):
+    """Proxy of C++ AuiTabContainerButton class"""
+    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+    def __init__(self): raise AttributeError, "No constructor defined"
+    __repr__ = _swig_repr
+    id = property(_aui.AuiTabContainerButton_id_get, _aui.AuiTabContainerButton_id_set)
+    cur_state = property(_aui.AuiTabContainerButton_cur_state_get, _aui.AuiTabContainerButton_cur_state_set)
+    bitmap = property(_aui.AuiTabContainerButton_bitmap_get, _aui.AuiTabContainerButton_bitmap_set)
+    rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set)
+_aui.AuiTabContainerButton_swigregister(AuiTabContainerButton)
+
+class AuiTabContainer(object):
+    """Proxy of C++ AuiTabContainer class"""
+    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+    __repr__ = _swig_repr
+    def __init__(self, *args, **kwargs): 
+        """__init__(self) -> AuiTabContainer"""
+        _aui.AuiTabContainer_swiginit(self,_aui.new_AuiTabContainer(*args, **kwargs))
+    __swig_destroy__ = _aui.delete_AuiTabContainer
+    __del__ = lambda self : None;
+    def AddPage(*args, **kwargs):
+        """AddPage(self, Window page, AuiNotebookPage info) -> bool"""
+        return _aui.AuiTabContainer_AddPage(*args, **kwargs)
+
+    def InsertPage(*args, **kwargs):
+        """InsertPage(self, Window page, AuiNotebookPage info, size_t idx) -> bool"""
+        return _aui.AuiTabContainer_InsertPage(*args, **kwargs)
+
+    def RemovePage(*args, **kwargs):
+        """RemovePage(self, Window page) -> bool"""
+        return _aui.AuiTabContainer_RemovePage(*args, **kwargs)
+
+    def SetActivePage(*args):
+        """
+        SetActivePage(self, Window page) -> bool
+        SetActivePage(self, size_t page) -> bool
+        """
+        return _aui.AuiTabContainer_SetActivePage(*args)
+
+    def SetNoneActive(*args, **kwargs):
+        """SetNoneActive(self)"""
+        return _aui.AuiTabContainer_SetNoneActive(*args, **kwargs)
+
+    def GetActivePage(*args, **kwargs):
+        """GetActivePage(self) -> int"""
+        return _aui.AuiTabContainer_GetActivePage(*args, **kwargs)
+
+    def TabHitTest(*args, **kwargs):
+        """TabHitTest(self, int x, int y, Window hit) -> bool"""
+        return _aui.AuiTabContainer_TabHitTest(*args, **kwargs)
+
+    def ButtonHitTest(*args, **kwargs):
+        """ButtonHitTest(self, int x, int y, AuiTabContainerButton hit) -> bool"""
+        return _aui.AuiTabContainer_ButtonHitTest(*args, **kwargs)
+
+    def GetWindowFromIdx(*args, **kwargs):
+        """GetWindowFromIdx(self, size_t idx) -> Window"""
+        return _aui.AuiTabContainer_GetWindowFromIdx(*args, **kwargs)
+
+    def GetIdxFromWindow(*args, **kwargs):
+        """GetIdxFromWindow(self, Window page) -> int"""
+        return _aui.AuiTabContainer_GetIdxFromWindow(*args, **kwargs)
+
+    def GetPageCount(*args, **kwargs):
+        """GetPageCount(self) -> size_t"""
+        return _aui.AuiTabContainer_GetPageCount(*args, **kwargs)
+
+    def GetPage(*args, **kwargs):
+        """GetPage(self, size_t idx) -> AuiNotebookPage"""
+        return _aui.AuiTabContainer_GetPage(*args, **kwargs)
+
+    def GetPages(*args, **kwargs):
+        """GetPages(self) -> wxAuiNotebookPageArray"""
+        return _aui.AuiTabContainer_GetPages(*args, **kwargs)
+
+    def SetNormalFont(*args, **kwargs):
+        """SetNormalFont(self, Font normal_font)"""
+        return _aui.AuiTabContainer_SetNormalFont(*args, **kwargs)
+
+    def SetSelectedFont(*args, **kwargs):
+        """SetSelectedFont(self, Font selected_font)"""
+        return _aui.AuiTabContainer_SetSelectedFont(*args, **kwargs)
+
+    def SetMeasuringFont(*args, **kwargs):
+        """SetMeasuringFont(self, Font measuring_font)"""
+        return _aui.AuiTabContainer_SetMeasuringFont(*args, **kwargs)
+
+    def DoShowHide(*args, **kwargs):
+        """DoShowHide(self)"""
+        return _aui.AuiTabContainer_DoShowHide(*args, **kwargs)
+
+    def SetRect(*args, **kwargs):
+        """SetRect(self, Rect rect)"""
+        return _aui.AuiTabContainer_SetRect(*args, **kwargs)
+
+    def AddButton(*args, **kwargs):
+        """AddButton(self, int id, Bitmap bmp)"""
+        return _aui.AuiTabContainer_AddButton(*args, **kwargs)
+
+_aui.AuiTabContainer_swigregister(AuiTabContainer)
+
+class AuiTabCtrl(_core.Control,AuiTabContainer):
+    """Proxy of C++ AuiTabCtrl class"""
+    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+    __repr__ = _swig_repr
+    def __init__(self, *args, **kwargs): 
+        """
+        __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, 
+            Size size=DefaultSize, long style=0) -> AuiTabCtrl
+        """
+        _aui.AuiTabCtrl_swiginit(self,_aui.new_AuiTabCtrl(*args, **kwargs))
+        self._setOORInfo(self)
+
+_aui.AuiTabCtrl_swigregister(AuiTabCtrl)
+
+class AuiMultiNotebook(_core.Control):
+    """Proxy of C++ AuiMultiNotebook class"""
+    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+    __repr__ = _swig_repr
+    def __init__(self, *args, **kwargs): 
+        """
+        __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, 
+            Size size=DefaultSize, long style=0) -> AuiMultiNotebook
+        """
+        _aui.AuiMultiNotebook_swiginit(self,_aui.new_AuiMultiNotebook(*args, **kwargs))
+        self._setOORInfo(self)
+
+    def Create(*args, **kwargs):
+        """
+        Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, 
+            Size size=DefaultSize, long style=0) -> bool
+
+        Do the 2nd phase and create the GUI control.
+        """
+        return _aui.AuiMultiNotebook_Create(*args, **kwargs)
+
+    def AddPage(*args, **kwargs):
+        """AddPage(self, Window page, String caption, bool select=False, Bitmap bitmap=wxNullBitmap) -> bool"""
+        return _aui.AuiMultiNotebook_AddPage(*args, **kwargs)
+
+    def InsertPage(*args, **kwargs):
+        """
+        InsertPage(self, size_t page_idx, Window page, String caption, bool select=False, 
+            Bitmap bitmap=wxNullBitmap) -> bool
+        """
+        return _aui.AuiMultiNotebook_InsertPage(*args, **kwargs)
+
+    def DeletePage(*args, **kwargs):
+        """DeletePage(self, size_t page) -> bool"""
+        return _aui.AuiMultiNotebook_DeletePage(*args, **kwargs)
+
+    def RemovePage(*args, **kwargs):
+        """RemovePage(self, size_t page) -> bool"""
+        return _aui.AuiMultiNotebook_RemovePage(*args, **kwargs)
+
+    def SetPageText(*args, **kwargs):
+        """SetPageText(self, size_t page, String text) -> bool"""
+        return _aui.AuiMultiNotebook_SetPageText(*args, **kwargs)
+
+    def SetSelection(*args, **kwargs):
+        """SetSelection(self, size_t new_page) -> size_t"""
+        return _aui.AuiMultiNotebook_SetSelection(*args, **kwargs)
+
+    def GetSelection(*args, **kwargs):
+        """GetSelection(self) -> int"""
+        return _aui.AuiMultiNotebook_GetSelection(*args, **kwargs)
+
+    def GetPageCount(*args, **kwargs):
+        """GetPageCount(self) -> size_t"""
+        return _aui.AuiMultiNotebook_GetPageCount(*args, **kwargs)
+
+    def GetPage(*args, **kwargs):
+        """GetPage(self, size_t page_idx) -> Window"""
+        return _aui.AuiMultiNotebook_GetPage(*args, **kwargs)
+
+_aui.AuiMultiNotebook_swigregister(AuiMultiNotebook)
+
+def PreAuiMultiNotebook(*args, **kwargs):
+    """PreAuiMultiNotebook() -> AuiMultiNotebook"""
+    val = _aui.new_PreAuiMultiNotebook(*args, **kwargs)
+    self._setOORInfo(self)
+    return val
+
+wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED
+wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING
+wxEVT_COMMAND_AUINOTEBOOK_BUTTON = _aui.wxEVT_COMMAND_AUINOTEBOOK_BUTTON
+wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG
+wxEVT_COMMAND_AUINOTEBOOK_END_DRAG = _aui.wxEVT_COMMAND_AUINOTEBOOK_END_DRAG
+wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION = _aui.wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION
+EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 1 )
+EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 1 )
+EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 1 )
+EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 1 )
+EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 1 )
+EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 1 )
+
 class PyDockArt(DefaultDockArt):
     """
     This version of the `DockArt` class has been instrumented to be