Share and Money Management 0.18devel
|
Generic functions to save and restore the state of a panel. More...
Public Member Functions | |
def | OnClose (self, event) |
Save the current configuration before the panel is closed. More... | |
def | restoreConfig (self) |
Restore saved settings. More... | |
def | saveConfig (self) |
Save current settings. More... | |
def | restoreListCtrl (self, ctrl, section, prefix) |
Restore saved settings. More... | |
def | saveListCtrl (self, ctrl, section, prefix) |
Save current settings. More... | |
Static Public Attributes | |
config_section = None | |
Section in the configuration that contains the current look. More... | |
dictionary | config_items |
Dictionary with all elements to save/restore. More... | |
Generic functions to save and restore the state of a panel.
def gui.controls.GeneralPanelConfig.OnClose | ( | self, | |
event | |||
) |
Save the current configuration before the panel is closed.
The parent class should bind this event handler
References gui.controls.GeneralPanelConfig.saveConfig().
def gui.controls.GeneralPanelConfig.restoreConfig | ( | self | ) |
Restore saved settings.
The settings are not restored if config_section is not set.
References gui.controls.GeneralPanelConfig.config_items, gui.dialogs.DlgPositionReport.config_items, gui.panel.PanelOpenPositionList.config_items, gui.panel.PanelOpenPositionDetails.config_items, gui.panel.PanelWatchList.config_items, gui.controls.GeneralPanelConfig.config_section, gui.controls.SortedListPanel.config_section, gui.dialogs.DlgPositionReport.config_section, gui.panel.PanelCurrency.config_section, gui.panel.PanelExchange.config_section, gui.panel.PanelShare.config_section, gui.panel.PanelTransaction.config_section, gui.panel.PanelIndex.config_section, gui.panel.PanelOpenPositionList.config_section, gui.panel.PanelOpenPositionDetails.config_section, gui.panel.PanelWatchList.config_section, and gui.controls.GeneralPanelConfig.restoreListCtrl().
Referenced by gui.controls.SortedListPanel.__init__().
def gui.controls.GeneralPanelConfig.restoreListCtrl | ( | self, | |
ctrl, | |||
section, | |||
prefix | |||
) |
Restore saved settings.
All exceptions raised during setting the column widths will be dropped
Referenced by gui.controls.GeneralPanelConfig.restoreConfig().
def gui.controls.GeneralPanelConfig.saveConfig | ( | self | ) |
Save current settings.
The settings are not restored if config_section is not set.
References gui.controls.GeneralPanelConfig.config_items, gui.dialogs.DlgPositionReport.config_items, gui.panel.PanelOpenPositionList.config_items, gui.panel.PanelOpenPositionDetails.config_items, gui.panel.PanelWatchList.config_items, gui.controls.GeneralPanelConfig.config_section, gui.controls.SortedListPanel.config_section, gui.dialogs.DlgPositionReport.config_section, gui.panel.PanelCurrency.config_section, gui.panel.PanelExchange.config_section, gui.panel.PanelShare.config_section, gui.panel.PanelTransaction.config_section, gui.panel.PanelIndex.config_section, gui.panel.PanelOpenPositionList.config_section, gui.panel.PanelOpenPositionDetails.config_section, gui.panel.PanelWatchList.config_section, and gui.controls.GeneralPanelConfig.saveListCtrl().
Referenced by gui.controls.GeneralPanelConfig.OnClose(), and gui.dialogs.DlgPositionReport.ShowModal().
def gui.controls.GeneralPanelConfig.saveListCtrl | ( | self, | |
ctrl, | |||
section, | |||
prefix | |||
) |
Save current settings.
Referenced by gui.controls.GeneralPanelConfig.saveConfig().
|
static |
Dictionary with all elements to save/restore.
Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().
|
static |
Section in the configuration that contains the current look.
Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().