class Window(Gtk.Window): (source)
Known subclasses: zim.gui.mainwindow.MainWindow
, zim.gui.mainwindow.PageWindow
Sub-class of Gtk.Window that will take care of hooking the window into the application framework and adds entry points so plugins can add side panes etc. It will divide the window horizontally in 3 panes, and the center pane again vertically in 3. The result is something like this:
+-----------------------------+ |menu | +-----+----------------+------+ | | top pane | | | | | | | s +----------------+ s | | i | Main widget | i | | d | | d | | e | | e | | b +----------------+ b | | a |tabs| | a | | r | bottom pane | r | | | | | +----------------------+------+
Any pane that is not used will not been shown. The important thing is to create placeholders where plugins *might* want to add some widget.
All windows in zim must inherit from this class.
Unknown Field: signal | |
pane-state-changed (pane, visible, active): emitted when visibility or active tab changed for a specific pane |
Method | __init__ |
Undocumented |
Method | add |
Add the main widget. @param widget: gtk widget to add in the window |
Method | add_bar |
No summary |
Method | add_center_bar |
Add a widget in the central part of the window above the page. @param widget: the gtk widget to show in the tab |
Method | add_tab |
No summary |
Method | do_set_focus |
Undocumented |
Method | focus_last_focussed_sidepane |
Undocumented |
Method | focus_sidepane |
Undocumented |
Method | get_pane_state |
No summary |
Method | get_used_panes |
Returns a list of panes that are in use (i.e. not empty) |
Method | get_visible_panes |
Returns a list of panes that are visible |
Method | init_uistate |
Undocumented |
Method | move_bottom_minimized_tabs_to_statusbar |
Undocumented |
Method | pack_start |
Undocumented |
Method | present |
Undocumented |
Method | remove |
Remove widget from any pane @param widget: the widget to remove |
Method | save_uistate |
Undocumented |
Method | set_pane_state |
No summary |
Method | show |
Undocumented |
Method | show_all |
Undocumented |
Method | show_all_panes |
Undocumented |
Method | toggle_panes |
No summary |
Class Variable | __gsignals__ |
Undocumented |
Method | _get_pane_ordering |
Undocumented |
Method | _panes |
Undocumented |
Method | _set_pane_ordering |
Undocumented |
Instance Variable | _last_sidepane_focus |
Undocumented |
Instance Variable | _uistate_initialized |
Undocumented |
Instance Variable | _zim_window_bottom_minimized |
Undocumented |
Instance Variable | _zim_window_bottom_pane |
Undocumented |
Instance Variable | _zim_window_bottom_paned |
Undocumented |
Instance Variable | _zim_window_central_hbox |
Undocumented |
Instance Variable | _zim_window_central_vbox |
Undocumented |
Instance Variable | _zim_window_left_minimized |
Undocumented |
Instance Variable | _zim_window_left_pane |
Undocumented |
Instance Variable | _zim_window_left_paned |
Undocumented |
Instance Variable | _zim_window_main |
Undocumented |
Instance Variable | _zim_window_overlay |
Undocumented |
Instance Variable | _zim_window_right_minimized |
Undocumented |
Instance Variable | _zim_window_right_pane |
Undocumented |
Instance Variable | _zim_window_right_paned |
Undocumented |
Instance Variable | _zim_window_sidepanes |
Undocumented |
Instance Variable | _zim_window_top_minimized |
Undocumented |
Instance Variable | _zim_window_top_pane |
Undocumented |
Instance Variable | _zim_window_top_paned |
Undocumented |
Parameters | |
widget | gtk widget for the bar |
position | position of the bar in the window TOP, BOTTOM, LEFT or RIGHT |
Parameters | |
widget | the gtk widget to show in the tab |
Parameters | |
key | string that is used to identify this tab in the window state |
widget | the gtk widget to show in the tab |
pane | can be one of: LEFT_PANE, RIGHT_PANE, TOP_PANE or BOTTOM_PANE. |
Parameters | |
pane | can be one of: LEFT_PANE, RIGHT_PANE, TOP_PANE or BOTTOM_PANE. |
Returns | |
a 3-tuple of visibility (boolean), pane size (integer), and active tab (string). |
Parameters | |
pane | can be one of: LEFT_PANE, RIGHT_PANE, TOP_PANE or BOTTOM_PANE. |
visible | True to show the pane, False to hide |
size | size of the side pane |
activetab | key of the active tab in the notebook or None (fails silently if tab is not found) |
grab_focus | if True active tab will grab focus |
Parameters | |
show | if True show panes, if False hide them, if None toggle current state |
zim.gui.mainwindow.MainWindow
, zim.gui.mainwindow.PageWindow
Undocumented