X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5eb8189c35a0106b0741f28417bef238bbc9390f..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/src/mac/aui.py diff --git a/wxPython/src/mac/aui.py b/wxPython/src/mac/aui.py index 192eea0b69..f7268401a7 100644 --- a/wxPython/src/mac/aui.py +++ b/wxPython/src/mac/aui.py @@ -201,6 +201,7 @@ AUI_BUTTON_MAXIMIZE_RESTORE = _aui.AUI_BUTTON_MAXIMIZE_RESTORE AUI_BUTTON_MINIMIZE = _aui.AUI_BUTTON_MINIMIZE AUI_BUTTON_PIN = _aui.AUI_BUTTON_PIN AUI_BUTTON_OPTIONS = _aui.AUI_BUTTON_OPTIONS +AUI_BUTTON_WINDOWLIST = _aui.AUI_BUTTON_WINDOWLIST AUI_BUTTON_LEFT = _aui.AUI_BUTTON_LEFT AUI_BUTTON_RIGHT = _aui.AUI_BUTTON_RIGHT AUI_BUTTON_UP = _aui.AUI_BUTTON_UP @@ -611,12 +612,13 @@ class AuiManager(_core.EvtHandler): """GetAllPanes(self) -> wxAuiPaneInfoArray""" return _aui.AuiManager_GetAllPanes(*args, **kwargs) - def AddPane(*args): - """ - AddPane(self, Window window, AuiPaneInfo pane_info) -> bool - AddPane(self, Window window, AuiPaneInfo pane_info, Point drop_pos) -> bool - """ - return _aui.AuiManager_AddPane(*args) + def _AddPane1(*args, **kwargs): + """_AddPane1(self, Window window, AuiPaneInfo pane_info) -> bool""" + return _aui.AuiManager__AddPane1(*args, **kwargs) + + def AddPane(*args, **kwargs): + """AddPane(self, Window window, AuiPaneInfo pane_info, Point drop_pos) -> bool""" + return _aui.AuiManager_AddPane(*args, **kwargs) def _AddPane2(*args, **kwargs): """_AddPane2(self, Window window, int direction=LEFT, String caption=wxEmptyString) -> bool""" @@ -670,6 +672,10 @@ class AuiManager(_core.EvtHandler): """CreateFloatingFrame(self, Window parent, AuiPaneInfo p) -> AuiFloatingFrame""" return _aui.AuiManager_CreateFloatingFrame(*args, **kwargs) + def CalculateHintRect(*args, **kwargs): + """CalculateHintRect(self, Window pane_window, Point pt, Point offset) -> Rect""" + return _aui.AuiManager_CalculateHintRect(*args, **kwargs) + def DrawHintRect(*args, **kwargs): """DrawHintRect(self, Window pane_window, Point pt, Point offset)""" return _aui.AuiManager_DrawHintRect(*args, **kwargs) @@ -726,7 +732,7 @@ class AuiManager(_core.EvtHandler): pane info, and defaults to ``wx.LEFT``. The pane caption may also be specified as an extra parameter in this form. """ - if type(info) == PaneInfo: + if type(info) == AuiPaneInfo: return self._AddPane1(window, info) else: @@ -884,8 +890,8 @@ wxEVT_AUI_PANERESTORE = _aui.wxEVT_AUI_PANERESTORE wxEVT_AUI_RENDER = _aui.wxEVT_AUI_RENDER EVT_AUI_PANEBUTTON = wx.PyEventBinder( wxEVT_AUI_PANEBUTTON ) EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANECLOSE ) -EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE ) -EVT_AUI_PANECLOSE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE ) +EVT_AUI_PANEMAXIMIZE = wx.PyEventBinder( wxEVT_AUI_PANEMAXIMIZE ) +EVT_AUI_PANERESTORE = wx.PyEventBinder( wxEVT_AUI_PANERESTORE ) EVT_AUI_RENDER = wx.PyEventBinder( wxEVT_AUI_RENDER ) class AuiDockArt(object): @@ -989,12 +995,82 @@ AUI_NB_RIGHT = _aui.AUI_NB_RIGHT AUI_NB_BOTTOM = _aui.AUI_NB_BOTTOM AUI_NB_TAB_SPLIT = _aui.AUI_NB_TAB_SPLIT AUI_NB_TAB_MOVE = _aui.AUI_NB_TAB_MOVE +AUI_NB_TAB_EXTERNAL_MOVE = _aui.AUI_NB_TAB_EXTERNAL_MOVE +AUI_NB_TAB_FIXED_WIDTH = _aui.AUI_NB_TAB_FIXED_WIDTH AUI_NB_SCROLL_BUTTONS = _aui.AUI_NB_SCROLL_BUTTONS +AUI_NB_WINDOWLIST_BUTTON = _aui.AUI_NB_WINDOWLIST_BUTTON AUI_NB_CLOSE_BUTTON = _aui.AUI_NB_CLOSE_BUTTON -AUI_NB_PAGELIST_BUTTON = _aui.AUI_NB_PAGELIST_BUTTON AUI_NB_CLOSE_ON_ACTIVE_TAB = _aui.AUI_NB_CLOSE_ON_ACTIVE_TAB AUI_NB_CLOSE_ON_ALL_TABS = _aui.AUI_NB_CLOSE_ON_ALL_TABS AUI_NB_DEFAULT_STYLE = _aui.AUI_NB_DEFAULT_STYLE +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 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 SetOldSelection(*args, **kwargs): + """SetOldSelection(self, int s)""" + return _aui.AuiNotebookEvent_SetOldSelection(*args, **kwargs) + + def GetOldSelection(*args, **kwargs): + """GetOldSelection(self) -> int""" + return _aui.AuiNotebookEvent_GetOldSelection(*args, **kwargs) + + def SetDragSource(*args, **kwargs): + """SetDragSource(self, AuiNotebook s)""" + return _aui.AuiNotebookEvent_SetDragSource(*args, **kwargs) + + def GetDragSource(*args, **kwargs): + """GetDragSource(self) -> AuiNotebook""" + return _aui.AuiNotebookEvent_GetDragSource(*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) + drag_source = property(_aui.AuiNotebookEvent_drag_source_get, _aui.AuiNotebookEvent_drag_source_set) + OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") +_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) + 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) + class AuiTabArt(object): """Proxy of C++ AuiTabArt class""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') @@ -1002,6 +1078,18 @@ class AuiTabArt(object): __repr__ = _swig_repr __swig_destroy__ = _aui.delete_AuiTabArt __del__ = lambda self : None; + def Clone(*args, **kwargs): + """Clone(self) -> AuiTabArt""" + return _aui.AuiTabArt_Clone(*args, **kwargs) + + def SetFlags(*args, **kwargs): + """SetFlags(self, int flags)""" + return _aui.AuiTabArt_SetFlags(*args, **kwargs) + + def SetSizingInfo(*args, **kwargs): + """SetSizingInfo(self, Size tab_ctrl_size, size_t tab_count)""" + return _aui.AuiTabArt_SetSizingInfo(*args, **kwargs) + def SetNormalFont(*args, **kwargs): """SetNormalFont(self, Font font)""" return _aui.AuiTabArt_SetNormalFont(*args, **kwargs) @@ -1015,32 +1103,43 @@ class AuiTabArt(object): return _aui.AuiTabArt_SetMeasuringFont(*args, **kwargs) def DrawBackground(*args, **kwargs): - """DrawBackground(self, DC dc, Rect rect)""" + """DrawBackground(self, DC dc, Window wnd, Rect rect)""" return _aui.AuiTabArt_DrawBackground(*args, **kwargs) def DrawTab(*args, **kwargs): """ - DrawTab(self, DC dc, Rect in_rect, String caption, bool active, bool with_close_button, - Rect out_rect, int x_extent) + 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) """ return _aui.AuiTabArt_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) + DrawButton(self, DC dc, Window wnd, Rect in_rect, int bitmap_id, int button_state, + int orientation, Bitmap bitmap_override, + 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, String caption, bool active, bool with_close_button, - int x_extent) -> Size + GetTabSize(self, DC dc, Window wnd, String caption, Bitmap bitmap, bool active, + int close_button_state, int x_extent) -> Size """ 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 GetBestTabCtrlSize(*args, **kwargs): - """GetBestTabCtrlSize(self, Window wnd) -> int""" + """GetBestTabCtrlSize(self, Window wnd, wxAuiNotebookPageArray pages, Size required_bmp_size) -> int""" return _aui.AuiTabArt_GetBestTabCtrlSize(*args, **kwargs) _aui.AuiTabArt_swigregister(AuiTabArt) @@ -1056,64 +1155,16 @@ class AuiDefaultTabArt(AuiTabArt): __del__ = lambda self : None; _aui.AuiDefaultTabArt_swigregister(AuiDefaultTabArt) -class AuiNotebookEvent(_core.NotifyEvent): - """Proxy of C++ AuiNotebookEvent class""" +class AuiSimpleTabArt(AuiTabArt): + """Proxy of C++ AuiSimpleTabArt 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) - OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") - Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") -_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) - 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) + """__init__(self) -> AuiSimpleTabArt""" + _aui.AuiSimpleTabArt_swiginit(self,_aui.new_AuiSimpleTabArt(*args, **kwargs)) + __swig_destroy__ = _aui.delete_AuiSimpleTabArt + __del__ = lambda self : None; +_aui.AuiSimpleTabArt_swigregister(AuiSimpleTabArt) class AuiTabContainer(object): """Proxy of C++ AuiTabContainer class""" @@ -1219,6 +1270,10 @@ class AuiTabContainer(object): """SetRect(self, Rect rect)""" return _aui.AuiTabContainer_SetRect(*args, **kwargs) + def RemoveButton(*args, **kwargs): + """RemoveButton(self, int id)""" + return _aui.AuiTabContainer_RemoveButton(*args, **kwargs) + def AddButton(*args, **kwargs): """ AddButton(self, int id, int location, Bitmap normal_bitmap=wxNullBitmap, @@ -1301,6 +1356,10 @@ class AuiNotebook(_core.Control): """SetPageText(self, size_t page, String text) -> bool""" return _aui.AuiNotebook_SetPageText(*args, **kwargs) + def SetPageBitmap(*args, **kwargs): + """SetPageBitmap(self, size_t page, Bitmap bitmap) -> bool""" + return _aui.AuiNotebook_SetPageBitmap(*args, **kwargs) + def SetSelection(*args, **kwargs): """SetSelection(self, size_t new_page) -> size_t""" return _aui.AuiNotebook_SetSelection(*args, **kwargs) @@ -1317,6 +1376,10 @@ class AuiNotebook(_core.Control): """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) @@ -1325,6 +1388,14 @@ class AuiNotebook(_core.Control): """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) + PageCount = property(GetPageCount,doc="See `GetPageCount`") Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") _aui.AuiNotebook_swigregister(AuiNotebook) @@ -1335,18 +1406,22 @@ def PreAuiNotebook(*args, **kwargs): self._setOORInfo(self) return val +wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE = _aui.wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE 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 +wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND = _aui.wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND +EVT_AUINOTEBOOK_PAGE_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, 1 ) 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 ) +EVT_AUINOTEBOOK_ALLOW_DND = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, 1 ) class PyAuiDockArt(AuiDefaultDockArt): """