Share and Money Management  0.16
Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
gui.panel.PanelCurrency Class Reference

Panel to show and maintain all currencies. More...

Inheritance diagram for gui.panel.PanelCurrency:

Public Member Functions

def __init__
 Initialise widget.
def createListHeader
 Create the header of a list.
def populateList
 Fill the currency list.
def psAddCurrency
 Add a new currency to the list.
def psChangeCurrency
 A listed currency has been changed.
- Public Member Functions inherited from gui.controls.SortedListPanel
def createList
 Create list, add header and enable sorting.
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

string config_section = 'panel_currency'
- Static Public Attributes inherited from gui.controls.SortedListPanel
 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.

Private Member Functions

def _addCurrency
 Add a smm.objects.Currency object to the list control.

Detailed Description

Panel to show and maintain all currencies.

Lists all smm.objects.Currency objects.

Constructor & Destructor Documentation

def gui.panel.PanelCurrency.__init__ (   self,
  args,
  kwargs 
)

Initialise widget.

Reimplemented from gui.controls.SortedListPanel.

References gui.panel.PanelCurrency.psAddCurrency(), and gui.panel.PanelCurrency.psChangeCurrency().

Here is the call graph for this function:

Member Function Documentation

def gui.panel.PanelCurrency._addCurrency (   self,
  currency 
)
private

Add a smm.objects.Currency object to the list control.

Parameters
selfThe object instance itself
currencyThe smm.objects.Currency object

Referenced by gui.panel.PanelCurrency.populateList(), and gui.panel.PanelCurrency.psAddCurrency().

Here is the caller graph for this function:

def gui.panel.PanelCurrency.createListHeader (   self)

Create the header of a list.

Reimplemented from gui.controls.SortedListPanel.

def gui.panel.PanelCurrency.populateList (   self)

Fill the currency list.

Reimplemented from gui.controls.SortedListPanel.

References gui.panel.PanelCurrency._addCurrency().

Here is the call graph for this function:

def gui.panel.PanelCurrency.psAddCurrency (   self,
  obj 
)

Add a new currency to the list.

Parameters
selfThe object instance itself
objCurrency to add

References gui.panel.PanelCurrency._addCurrency().

Referenced by gui.panel.PanelCurrency.__init__(), and gui.panel.PanelCurrency.psChangeCurrency().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.panel.PanelCurrency.psChangeCurrency (   self,
  obj 
)

A listed currency has been changed.

Parameters
selfThe object instance itself
objCurrency to change

References gui.panel.PanelCurrency.psAddCurrency(), and gui.controls.SortedListPanel.removeEntry().

Referenced by gui.panel.PanelCurrency.__init__().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

string gui.panel.PanelCurrency.config_section = 'panel_currency'
static

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