Share and Money Management  0.16
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__
 Initialise widget.
def createListHeader
 Create the header of a list.
def createList
 Create list, add header and enable sorting.
def populateList
 Fill a already created list.
def removeEntry
 Remove a listed entry.
- Public Member Functions inherited from gui.controls.GeneralPanelConfig
def OnClose
 Save the current configuration before the panel is closed.
def restoreConfig
 Restore saved settings.
def saveConfig
 Save current settings.
def restoreListCtrl
 Restore saved settings.
def saveListCtrl
 Save current settings.

Static Public Attributes

 config_section = None
 Section in the configuration that contains the current look.
 listStyle = wx.LC_REPORT|wx.SUNKEN_BORDER
 Style of the ListCtrl.
 list = None
 Reference to the used SortedListCtrl.
- Static Public Attributes inherited from gui.controls.GeneralPanelConfig
 config_section = None
 Section in the configuration that contains the current look.
dictionary config_items
 Dictionary with all elements to save/restore.

Detailed Description

Base class of a panel with a sortable list inside.

Constructor & Destructor Documentation

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

Initialise widget.

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

References gui.controls.SortedListPanel.createList(), gui.controls.SortedListPanel.list, gui.controls.SortedListPanel.populateList(), and gui.controls.GeneralPanelConfig.restoreConfig().

Here is the call graph for this function:

Member Function Documentation

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

def gui.controls.SortedListPanel.createListHeader (   self)

Create the header of a list.

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

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

Here is the caller graph for this function:

def gui.controls.SortedListPanel.populateList (   self)

Fill a already created list.

Derivated classes can use this function and add individual code

See Also
createList()

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

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

Here is the caller graph for this function:

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

Remove a listed entry.

Parameters
selfThe object instance itself
element_idID of the entry

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

gui.controls.SortedListPanel.config_section = None
static

Section in the configuration that contains the current look.

gui.controls.SortedListPanel.list = None
static
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: