|
Share and Money Management 0.18devel
|
Panel to show and maintain all currencies. More...
Public Member Functions | |
| def | __init__ (self, *args, **kwargs) |
| Initialise widget. More... | |
| def | createListHeader (self) |
| Create the header of a list. More... | |
| 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 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 | |
| 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... | |
Panel to show and maintain all currencies.
Lists all smm.objects.Currency objects.
| 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().
|
private |
Add a smm.objects.Currency object to the list control.
| self | The object instance itself |
| currency | The smm.objects.Currency object |
References gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelCurrency.populateList(), and gui.panel.PanelCurrency.psAddCurrency().
| def gui.panel.PanelCurrency.createListHeader | ( | self | ) |
Create the header of a list.
Reimplemented from gui.controls.SortedListPanel.
References gui.controls.SortedListPanel.list.
Referenced by gui.controls.SortedListPanel.createList().
| def gui.panel.PanelCurrency.populateList | ( | self | ) |
Fill the currency list.
Reimplemented from gui.controls.SortedListPanel.
References gui.panel.PanelCurrency._addCurrency().
Referenced by gui.controls.SortedListPanel.__init__().
| def gui.panel.PanelCurrency.psAddCurrency | ( | self, | |
| obj | |||
| ) |
Add a new currency to the list.
| self | The object instance itself |
| obj | Currency to add |
References gui.panel.PanelCurrency._addCurrency(), and gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelCurrency.__init__(), and gui.panel.PanelCurrency.psChangeCurrency().
| def gui.panel.PanelCurrency.psChangeCurrency | ( | self, | |
| obj | |||
| ) |
A listed currency has been changed.
| self | The object instance itself |
| obj | Currency to change |
References gui.panel.PanelCurrency.psAddCurrency(), and gui.controls.SortedListPanel.removeEntry().
Referenced by gui.panel.PanelCurrency.__init__().
|
static |