|
Share and Money Management 0.18devel
|
Base class of a panel with a sortable list inside. More...
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... | |
Base class of a panel with a sortable list inside.
| def gui.controls.SortedListPanel.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Initialise widget.
Reimplemented in gui.panel.PanelCurrency, gui.panel.PanelExchange, gui.panel.PanelShare, gui.panel.PanelTransaction, and gui.panel.PanelIndex.
References gui.controls.SortedListPanel.createList(), gui.controls.SortedListPanel.list, gui.controls.SortedListPanel.populateList(), gui.panel.PanelCurrency.populateList(), gui.panel.PanelExchange.populateList(), gui.panel.PanelShare.populateList(), gui.panel.PanelTransaction.populateList(), gui.panel.PanelIndex.populateList(), and gui.controls.GeneralPanelConfig.restoreConfig().
| def gui.controls.SortedListPanel.createList | ( | self | ) |
Create list, add header and enable sorting.
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__().
| 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().
| def gui.controls.SortedListPanel.populateList | ( | self | ) |
Fill an already created list.
Derivated classes can use this function and add individual code
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__().
| def gui.controls.SortedListPanel.removeEntry | ( | self, | |
| element_id | |||
| ) |
Remove a listed entry.
| self | The object instance itself |
| element_id | ID 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().
|
static |
Section in the configuration that contains the current look.
Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().
|
static |
Reference to the used SortedListCtrl.
Referenced by gui.controls.SortedListPanel.__init__(), gui.panel.PanelShare.__init__(), gui.panel.PanelIndex.__init__(), gui.panel.PanelShare._adapt_popup(), gui.panel.PanelCurrency._addCurrency(), gui.panel.PanelExchange._addExchange(), gui.panel.PanelIndex._addIndex(), gui.panel.PanelShare._addShare(), gui.panel.PanelTransaction._addTransaction(), gui.panel.PanelTransaction._fill_popup_menu(), gui.controls.SortedListPanel.createList(), gui.panel.PanelCurrency.createListHeader(), gui.panel.PanelExchange.createListHeader(), gui.panel.PanelShare.createListHeader(), gui.panel.PanelTransaction.createListHeader(), gui.panel.PanelIndex.createListHeader(), gui.panel.PanelIndex.OnEditIndex(), gui.panel.PanelShare.OnEditShare(), gui.panel.PanelTransaction.OnRemoveTransaction(), gui.panel.PanelShare.OnTrade(), gui.panel.PanelShare.OnUnWatch(), gui.panel.PanelShare.OnWatch(), gui.controls.SortedListPanel.populateList(), gui.panel.PanelCurrency.psAddCurrency(), gui.panel.PanelExchange.psAddExchange(), gui.panel.PanelIndex.psAddIndex(), gui.panel.PanelShare.psAddShare(), gui.panel.PanelTransaction.psAddTransaction(), and gui.controls.SortedListPanel.removeEntry().
|
static |
Style of the ListCtrl.
Referenced by gui.controls.SortedListPanel.createList().