class documentation

class WindowBaseMixin(object): (source)

Known subclasses: zim.gui.mainwindow.MainWindow, zim.gui.mainwindow.PageWindow

View In Hierarchy

Common logic between MainWindow and PageWindow
Method do_pane_state_changed Undocumented
Method do_set_focus Undocumented
Method set_title Undocumented
Method setup_toggle_editable_state Setup sensitivity of the "toggle_editable" action @param editable_uistate: default state if control is sensitive
Method toggle_editable Menu action to toggle the read-only state of the application @emits: readonly-changed
Method toggle_fullscreen Menu action to toggle the fullscreen state of the window
Method toggle_panes Menu action to toggle the visibility of the all panes @param show: when True or False force the visibility, when None toggle based on current state
Method toggle_sidepane_focus No summary
Method _init_fullscreen_headerbar Undocumented
Method _on_fullscreen_eventbox_enter Undocumented
Method _on_fullscreen_eventbox_leave Undocumented
Method _populate_headerbars Undocumented
Method _set_tooltip_hack Undocumented
Method _style_toggle_editable_button Undocumented
Method _update_fullscreen_revealer Undocumented
Instance Variable _block_toggle_panes Undocumented
Instance Variable _fullscreen_eventbox Undocumented
Instance Variable _fullscreen_headerbar Undocumented
Instance Variable _fullscreen_revealer Undocumented
Instance Variable _in_fullscreen_eventbox Undocumented
Instance Variable _sidepane_autoclose Undocumented
def do_pane_state_changed(self, pane, *a): (source)

Undocumented

def do_set_focus(self, widget): (source)

Undocumented

def set_title(self, text): (source)

Undocumented

def setup_toggle_editable_state(self, editable_uistate): (source)
Setup sensitivity of the "toggle_editable" action
Parameters
editable_uistatedefault state if control is sensitive
@toggle_action(_('Toggle _Editable'), icon='document-edit-symbolic', init=True, tooltip=_('Toggle editable'))
def toggle_editable(self, editable): (source)
Menu action to toggle the read-only state of the application
Unknown Field: emits
readonly-changed
@toggle_action(_('_Fullscreen'), 'F11', icon='view-fullscreen-symbolic', init=False)
def toggle_fullscreen(self, show): (source)
Menu action to toggle the fullscreen state of the window
@toggle_action(_('_Side Panes'), 'F9', icon='gtk-index', init=True)
def toggle_panes(self, show): (source)
Menu action to toggle the visibility of the all panes
Parameters
showwhen True or False force the visibility, when None toggle based on current state
def toggle_sidepane_focus(self, *a): (source)
Switch focus between the textview and the page index. Automatically opens the sidepane if it is closed (but sets a property to automatically close it again). This method is used for the (optional) <Primary><Space> keybinding.
def _init_fullscreen_headerbar(self): (source)

Undocumented

def _on_fullscreen_eventbox_enter(self, *a): (source)

Undocumented

def _on_fullscreen_eventbox_leave(self, *a): (source)

Undocumented

def _populate_headerbars(self): (source)

Undocumented

def _set_tooltip_hack(self, text): (source)

Undocumented

def _style_toggle_editable_button(self, button): (source)

Undocumented

def _update_fullscreen_revealer(self, *a): (source)

Undocumented

_block_toggle_panes: bool = (source)
_fullscreen_eventbox = (source)

Undocumented

_fullscreen_headerbar = (source)

Undocumented

_fullscreen_revealer = (source)

Undocumented

_in_fullscreen_eventbox: bool = (source)

Undocumented

_sidepane_autoclose: bool = (source)