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__ (self, args, kwargs)
 Initialise widget. More...
 
def createListHeader (self)
 
def populateList (self)
 Fill the currency list. More...
 
def psAddCurrency (self, obj)
 Add a new currency to the list. More...
 
def psChangeCurrency (self, obj)
 A listed currency has been changed. More...
 
- Public Member Functions inherited from gui.controls.SortedListPanel
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 a 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

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

Private Member Functions

def _addCurrency (self, currency)
 Add a smm.objects.Currency object to the list control. More...
 

Detailed Description

Panel to show and maintain all currencies.

Lists all smm.objects.Currency objects.

Constructor & Destructor Documentation

◆ __init__()

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

Initialise widget.

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

Here is the call graph for this function:

Member Function Documentation

◆ _addCurrency()

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

References gui.controls.SortedListPanel.list.

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

Here is the caller graph for this function:

◆ createListHeader()

def gui.panel.PanelCurrency.createListHeader (   self)

◆ populateList()

def gui.panel.PanelCurrency.populateList (   self)

Fill the currency list.

References gui.panel.PanelCurrency._addCurrency().

Here is the call graph for this function:

◆ psAddCurrency()

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(), and gui.controls.SortedListPanel.list.

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:

◆ psChangeCurrency()

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

◆ config_section

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

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