Share and Money Management  0.16
Public Member Functions | Static Public Attributes | List of all members
gui.controls.GeneralPanelConfig Class Reference

Generic functions to save and restore the state of a panel. More...

Inheritance diagram for gui.controls.GeneralPanelConfig:

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...
 

Detailed Description

Generic functions to save and restore the state of a panel.

Member Function Documentation

◆ OnClose()

def gui.controls.GeneralPanelConfig.OnClose (   self,
  event 
)

Save the current configuration before the panel is closed.

The parent class should bind this event handler

See also
restoreConfig() and saveConfig()

References gui.controls.GeneralPanelConfig.saveConfig().

Here is the call graph for this function:

◆ restoreConfig()

def gui.controls.GeneralPanelConfig.restoreConfig (   self)

Restore saved settings.

The settings are not restored if config_section is not setted.

See also
config_section, saveConfig()

References gui.controls.GeneralPanelConfig.config_items, gui.controls.GeneralPanelConfig.config_section, and gui.controls.GeneralPanelConfig.restoreListCtrl().

Referenced by gui.controls.SortedListPanel.__init__().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restoreListCtrl()

def gui.controls.GeneralPanelConfig.restoreListCtrl (   self,
  ctrl,
  section,
  prefix 
)

Restore saved settings.

All exceptions raised during setting the colum widths will droped

See also
saveListCtrl()

Referenced by gui.controls.GeneralPanelConfig.restoreConfig().

Here is the caller graph for this function:

◆ saveConfig()

def gui.controls.GeneralPanelConfig.saveConfig (   self)

Save current settings.

The settings are not restored if config_section is not setted.

See also
config_section, restoreConfig()

References gui.controls.GeneralPanelConfig.config_items, gui.controls.GeneralPanelConfig.config_section, and gui.controls.GeneralPanelConfig.saveListCtrl().

Referenced by gui.controls.GeneralPanelConfig.OnClose(), and gui.dialogs.DlgPositionReport.ShowModal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveListCtrl()

def gui.controls.GeneralPanelConfig.saveListCtrl (   self,
  ctrl,
  section,
  prefix 
)

Save current settings.

See also
restoreListCtrl()

Referenced by gui.controls.GeneralPanelConfig.saveConfig().

Here is the caller graph for this function:

Member Data Documentation

◆ config_items

dictionary gui.controls.GeneralPanelConfig.config_items
static
Initial value:
= {
# attr type
'list': 'ListCtrl',
}

Dictionary with all elements to save/restore.

Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().

◆ config_section

gui.controls.GeneralPanelConfig.config_section = None
static

Section in the configuration that contains the current look.

Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().


The documentation for this class was generated from the following file: