X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/846c181ba2724c0333ddf15708f640a919078de2..39dddf280dbc9fdf48f857d00ed5328440130378:/wxPython/src/gtk/aui.py diff --git a/wxPython/src/gtk/aui.py b/wxPython/src/gtk/aui.py index 9e20983b55..93990622cc 100644 --- a/wxPython/src/gtk/aui.py +++ b/wxPython/src/gtk/aui.py @@ -166,9 +166,10 @@ AUI_MGR_ALLOW_FLOATING = _aui.AUI_MGR_ALLOW_FLOATING 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_VENETIAN_BLINDS_HINT = _aui.AUI_MGR_VENETIAN_BLINDS_HINT +AUI_MGR_RECTANGLE_HINT = _aui.AUI_MGR_RECTANGLE_HINT +AUI_MGR_HINT_FADE = _aui.AUI_MGR_HINT_FADE +AUI_MGR_NO_VENETIAN_BLINDS_FADE = _aui.AUI_MGR_NO_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 @@ -193,6 +194,20 @@ AUI_GRADIENT_HORIZONTAL = _aui.AUI_GRADIENT_HORIZONTAL AUI_BUTTON_STATE_NORMAL = _aui.AUI_BUTTON_STATE_NORMAL AUI_BUTTON_STATE_HOVER = _aui.AUI_BUTTON_STATE_HOVER AUI_BUTTON_STATE_PRESSED = _aui.AUI_BUTTON_STATE_PRESSED +AUI_BUTTON_STATE_DISABLED = _aui.AUI_BUTTON_STATE_DISABLED +AUI_BUTTON_STATE_HIDDEN = _aui.AUI_BUTTON_STATE_HIDDEN +AUI_BUTTON_CLOSE = _aui.AUI_BUTTON_CLOSE +AUI_BUTTON_MAXIMIZE = _aui.AUI_BUTTON_MAXIMIZE +AUI_BUTTON_MINIMIZE = _aui.AUI_BUTTON_MINIMIZE +AUI_BUTTON_PIN = _aui.AUI_BUTTON_PIN +AUI_BUTTON_OPTIONS = _aui.AUI_BUTTON_OPTIONS +AUI_BUTTON_LEFT = _aui.AUI_BUTTON_LEFT +AUI_BUTTON_RIGHT = _aui.AUI_BUTTON_RIGHT +AUI_BUTTON_UP = _aui.AUI_BUTTON_UP +AUI_BUTTON_DOWN = _aui.AUI_BUTTON_DOWN +AUI_BUTTON_CUSTOM1 = _aui.AUI_BUTTON_CUSTOM1 +AUI_BUTTON_CUSTOM2 = _aui.AUI_BUTTON_CUSTOM2 +AUI_BUTTON_CUSTOM3 = _aui.AUI_BUTTON_CUSTOM3 AUI_INSERT_PANE = _aui.AUI_INSERT_PANE AUI_INSERT_ROW = _aui.AUI_INSERT_ROW AUI_INSERT_DOCK = _aui.AUI_INSERT_DOCK @@ -350,6 +365,10 @@ class PaneInfo(object): """ return _aui.PaneInfo_IsMovable(*args, **kwargs) + def IsDestroyOnClose(*args, **kwargs): + """IsDestroyOnClose(self) -> bool""" + return _aui.PaneInfo_IsDestroyOnClose(*args, **kwargs) + def HasCaption(*args, **kwargs): """ HasCaption(self) -> bool @@ -1052,6 +1071,10 @@ class FrameManager(_core.EvtHandler): """ return _aui.FrameManager_DetachPane(*args, **kwargs) + def ClosePane(*args, **kwargs): + """ClosePane(self, PaneInfo pane_info)""" + return _aui.FrameManager_ClosePane(*args, **kwargs) + def SavePaneInfo(*args, **kwargs): """SavePaneInfo(self, PaneInfo pane) -> String""" return _aui.FrameManager_SavePaneInfo(*args, **kwargs) @@ -1099,6 +1122,10 @@ class FrameManager(_core.EvtHandler): """ return _aui.FrameManager_Update(*args, **kwargs) + def CreateFloatingFrame(*args, **kwargs): + """CreateFloatingFrame(self, Window parent, PaneInfo p) -> FloatingPane""" + return _aui.FrameManager_CreateFloatingFrame(*args, **kwargs) + def DrawHintRect(*args, **kwargs): """DrawHintRect(self, Window pane_window, Point pt, Point offset)""" return _aui.FrameManager_DrawHintRect(*args, **kwargs) @@ -1411,7 +1438,7 @@ class FloatingPane(_windows.MiniFrame): def __init__(self, *args, **kwargs): """ __init__(self, Window parent, FrameManager owner_mgr, PaneInfo pane, - int id=ID_ANY) -> FloatingPane + int id=ID_ANY, long style=wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN) -> FloatingPane """ _aui.FloatingPane_swiginit(self,_aui.new_FloatingPane(*args, **kwargs)) __swig_destroy__ = _aui.delete_FloatingPane @@ -1422,6 +1449,64 @@ class FloatingPane(_windows.MiniFrame): _aui.FloatingPane_swigregister(FloatingPane) +class TabArt(object): + """Proxy of C++ TabArt 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 + __swig_destroy__ = _aui.delete_TabArt + __del__ = lambda self : None; + def SetNormalFont(*args, **kwargs): + """SetNormalFont(self, Font font)""" + return _aui.TabArt_SetNormalFont(*args, **kwargs) + + def SetSelectedFont(*args, **kwargs): + """SetSelectedFont(self, Font font)""" + return _aui.TabArt_SetSelectedFont(*args, **kwargs) + + def SetMeasuringFont(*args, **kwargs): + """SetMeasuringFont(self, Font font)""" + return _aui.TabArt_SetMeasuringFont(*args, **kwargs) + + def DrawBackground(*args, **kwargs): + """DrawBackground(self, DC dc, Rect rect)""" + return _aui.TabArt_DrawBackground(*args, **kwargs) + + def DrawTab(*args, **kwargs): + """ + DrawTab(self, DC dc, Rect in_rect, String caption, bool active, Rect out_rect, + int x_extent) + """ + return _aui.TabArt_DrawTab(*args, **kwargs) + + def DrawButton(*args, **kwargs): + """ + DrawButton(self, DC dc, Rect in_rect, int bitmap_id, int button_state, + int orientation, Bitmap bitmap_override, Rect out_rect) + """ + return _aui.TabArt_DrawButton(*args, **kwargs) + + def GetTabSize(*args, **kwargs): + """GetTabSize(self, DC dc, String caption, bool active, int x_extent) -> Size""" + return _aui.TabArt_GetTabSize(*args, **kwargs) + + def GetBestTabCtrlSize(*args, **kwargs): + """GetBestTabCtrlSize(self, Window wnd) -> int""" + return _aui.TabArt_GetBestTabCtrlSize(*args, **kwargs) + +_aui.TabArt_swigregister(TabArt) + +class DefaultTabArt(TabArt): + """Proxy of C++ DefaultTabArt 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) -> DefaultTabArt""" + _aui.DefaultTabArt_swiginit(self,_aui.new_DefaultTabArt(*args, **kwargs)) + __swig_destroy__ = _aui.delete_DefaultTabArt + __del__ = lambda self : None; +_aui.DefaultTabArt_swigregister(DefaultTabArt) + 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') @@ -1475,7 +1560,9 @@ class AuiTabContainerButton(object): __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) + location = property(_aui.AuiTabContainerButton_location_get, _aui.AuiTabContainerButton_location_set) bitmap = property(_aui.AuiTabContainerButton_bitmap_get, _aui.AuiTabContainerButton_bitmap_set) + dis_bitmap = property(_aui.AuiTabContainerButton_dis_bitmap_get, _aui.AuiTabContainerButton_dis_bitmap_set) rect = property(_aui.AuiTabContainerButton_rect_get, _aui.AuiTabContainerButton_rect_set) _aui.AuiTabContainerButton_swigregister(AuiTabContainerButton) @@ -1488,6 +1575,14 @@ class AuiTabContainer(object): _aui.AuiTabContainer_swiginit(self,_aui.new_AuiTabContainer(*args, **kwargs)) __swig_destroy__ = _aui.delete_AuiTabContainer __del__ = lambda self : None; + def SetArtProvider(*args, **kwargs): + """SetArtProvider(self, TabArt art)""" + return _aui.AuiTabContainer_SetArtProvider(*args, **kwargs) + + def GetArtProvider(*args, **kwargs): + """GetArtProvider(self) -> TabArt""" + return _aui.AuiTabContainer_GetArtProvider(*args, **kwargs) + def AddPage(*args, **kwargs): """AddPage(self, Window page, AuiNotebookPage info) -> bool""" return _aui.AuiTabContainer_AddPage(*args, **kwargs) @@ -1496,6 +1591,10 @@ class AuiTabContainer(object): """InsertPage(self, Window page, AuiNotebookPage info, size_t idx) -> bool""" return _aui.AuiTabContainer_InsertPage(*args, **kwargs) + def MovePage(*args, **kwargs): + """MovePage(self, Window page, size_t new_idx) -> bool""" + return _aui.AuiTabContainer_MovePage(*args, **kwargs) + def RemovePage(*args, **kwargs): """RemovePage(self, Window page) -> bool""" return _aui.AuiTabContainer_RemovePage(*args, **kwargs) @@ -1564,9 +1663,20 @@ class AuiTabContainer(object): return _aui.AuiTabContainer_SetRect(*args, **kwargs) def AddButton(*args, **kwargs): - """AddButton(self, int id, Bitmap bmp)""" + """ + AddButton(self, int id, int location, Bitmap normal_bitmap=wxNullBitmap, + Bitmap disabled_bitmap=wxNullBitmap) + """ return _aui.AuiTabContainer_AddButton(*args, **kwargs) + def GetTabOffset(*args, **kwargs): + """GetTabOffset(self) -> size_t""" + return _aui.AuiTabContainer_GetTabOffset(*args, **kwargs) + + def SetTabOffset(*args, **kwargs): + """SetTabOffset(self, size_t offset)""" + return _aui.AuiTabContainer_SetTabOffset(*args, **kwargs) + ActivePage = property(GetActivePage,SetActivePage,doc="See `GetActivePage` and `SetActivePage`") PageCount = property(GetPageCount,doc="See `GetPageCount`") Pages = property(GetPages,doc="See `GetPages`") @@ -1584,6 +1694,8 @@ class AuiTabCtrl(_core.Control,AuiTabContainer): _aui.AuiTabCtrl_swiginit(self,_aui.new_AuiTabCtrl(*args, **kwargs)) self._setOORInfo(self) + __swig_destroy__ = _aui.delete_AuiTabCtrl + __del__ = lambda self : None; _aui.AuiTabCtrl_swigregister(AuiTabCtrl) class AuiMultiNotebook(_core.Control): @@ -1646,6 +1758,14 @@ class AuiMultiNotebook(_core.Control): """GetPage(self, size_t page_idx) -> Window""" return _aui.AuiMultiNotebook_GetPage(*args, **kwargs) + def SetArtProvider(*args, **kwargs): + """SetArtProvider(self, TabArt art)""" + return _aui.AuiMultiNotebook_SetArtProvider(*args, **kwargs) + + def GetArtProvider(*args, **kwargs): + """GetArtProvider(self) -> TabArt""" + return _aui.AuiMultiNotebook_GetArtProvider(*args, **kwargs) + PageCount = property(GetPageCount,doc="See `GetPageCount`") Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiMultiNotebook_swigregister(AuiMultiNotebook) @@ -1680,5 +1800,16 @@ class PyDockArt(DefaultDockArt): __repr__ = _swig_repr _aui.PyDockArt_swigregister(PyDockArt) +class PyTabArt(DefaultTabArt): + """ + This version of the `TabArt` class has been instrumented to be + subclassable in Python and to reflect all calls to the C++ base class + methods to the Python methods implemented in the derived 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 +_aui.PyTabArt_swigregister(PyTabArt) +