Share and Money Management 0.18devel
Public Member Functions | Static Public Attributes | List of all members
gui.controls.SortedListPanel Class Reference

Base class of a panel with a sortable list inside. More...

Inheritance diagram for gui.controls.SortedListPanel:

Public Member Functions

def __init__ (self, *args, **kwargs)
 Initialise widget. More...
 
def createListHeader (self)
 Create the header of a list. More...
 
def createList (self)
 Create list, add header and enable sorting. More...
 
def populateList (self)
 Fill an already created list. More...
 
def removeEntry (self, element_id)
 Remove a listed entry. More...
 
- Public Member Functions inherited from gui.controls.GeneralPanelConfig
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...
 
 listStyle = wx.LC_REPORT | wx.SUNKEN_BORDER
 Style of the ListCtrl. More...
 
 list = None
 Reference to the used SortedListCtrl. More...
 
- Static Public Attributes inherited from gui.controls.GeneralPanelConfig
 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

Base class of a panel with a sortable list inside.

Constructor & Destructor Documentation

◆ __init__()

def gui.controls.SortedListPanel.__init__ (   self,
args,
**  kwargs 
)

Member Function Documentation

◆ createList()

def gui.controls.SortedListPanel.createList (   self)

Create list, add header and enable sorting.

See also
populateList(), createListHeader() and SortedListCtrl.enableColumnSorter()

References gui.controls.SortedListPanel.createListHeader(), gui.panel.PanelCurrency.createListHeader(), gui.panel.PanelExchange.createListHeader(), gui.panel.PanelShare.createListHeader(), gui.panel.PanelTransaction.createListHeader(), gui.panel.PanelIndex.createListHeader(), gui.controls.SortedListPanel.list, and gui.controls.SortedListPanel.listStyle.

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

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

◆ createListHeader()

def gui.controls.SortedListPanel.createListHeader (   self)

Create the header of a list.

Reimplemented in gui.panel.PanelCurrency, gui.panel.PanelExchange, gui.panel.PanelShare, gui.panel.PanelTransaction, and gui.panel.PanelIndex.

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

Here is the caller graph for this function:

◆ populateList()

def gui.controls.SortedListPanel.populateList (   self)

Fill an already created list.

Derivated classes can use this function and add individual code

See also
createList()

Reimplemented in gui.panel.PanelCurrency, gui.panel.PanelExchange, gui.panel.PanelShare, gui.panel.PanelTransaction, and gui.panel.PanelIndex.

References gui.controls.SortedListPanel.list.

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

Here is the caller graph for this function:

◆ removeEntry()

def gui.controls.SortedListPanel.removeEntry (   self,
  element_id 
)

Remove a listed entry.

Parameters
selfThe object instance itself
element_idID of the entry

References gui.controls.SortedListPanel.list.

Referenced by gui.panel.PanelCurrency.psChangeCurrency(), gui.panel.PanelExchange.psChangeExchange(), gui.panel.PanelIndex.psChangeIndex(), gui.panel.PanelShare.psChangeShare(), and gui.panel.PanelTransaction.psChangeTransaction().

Here is the caller graph for this function:

Member Data Documentation

◆ config_section

gui.controls.SortedListPanel.config_section = None
static

Section in the configuration that contains the current look.

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

◆ list

gui.controls.SortedListPanel.list = None
static

◆ listStyle

gui.controls.SortedListPanel.listStyle = wx.LC_REPORT | wx.SUNKEN_BORDER
static

Style of the ListCtrl.

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


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