Share and Money Management 0.16
|
Panel to show and maintain all indices. 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 index list. More... | |
def | psAddIndex (self, obj) |
Add a new index to the list. More... | |
def | psChangeIndex (self, obj) |
A listed index has been changed. More... | |
def | OnEditIndex (self, event) |
Show a dialog to edit a share. More... | |
def | OnNewIndex (self, event) |
Show a dialog to create a new index. More... | |
def | OnShowPopup (self, event) |
Display the pop-up menu. More... | |
![]() | |
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... | |
![]() | |
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... | |
Public Attributes | |
popupmenu | |
pmenu_newindex | |
pmenu_editindex | |
Static Public Attributes | |
string | config_section = 'panel_index' |
int | initiallySort = 3 |
![]() | |
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... | |
![]() | |
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 | _addIndex (self, share) |
Add a smm.objects.Share object to the list control. More... | |
Panel to show and maintain all indices.
Lists all smm.objects.Share.kind == u'index' objects.
def gui.panel.PanelIndex.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Initialise widget.
Reimplemented from gui.controls.SortedListPanel.
|
private |
Add a smm.objects.Share object to the list control.
self | The object instance itself |
share | The smm.objects.Share object |
References gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelIndex.populateList(), and gui.panel.PanelIndex.psAddIndex().
def gui.panel.PanelIndex.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.PanelIndex.OnEditIndex | ( | self, | |
event | |||
) |
Show a dialog to edit a share.
References gui.controls.SortedListPanel.list.
def gui.panel.PanelIndex.OnNewIndex | ( | self, | |
event | |||
) |
Show a dialog to create a new index.
Referenced by gui.MainWindow.createManageMenu().
def gui.panel.PanelIndex.OnShowPopup | ( | self, | |
event | |||
) |
Display the pop-up menu.
References gui.controls.BaseListSmall.popupmenu, gui.controls.TransactionListSmall.popupmenu, gui.panel.PanelShare.popupmenu, gui.panel.PanelTransaction.popupmenu, gui.panel.PanelIndex.popupmenu, and gui.panel.PanelOpenPositionList.popupmenu.
Referenced by gui.panel.PanelTransaction.__init__(), and gui.controls.BaseListSmall.__init__().
def gui.panel.PanelIndex.populateList | ( | self | ) |
Fill the index list.
Reimplemented from gui.controls.SortedListPanel.
References gui.panel.PanelIndex._addIndex().
Referenced by gui.controls.SortedListPanel.__init__().
def gui.panel.PanelIndex.psAddIndex | ( | self, | |
obj | |||
) |
Add a new index to the list.
self | The object instance itself |
obj | Index to add |
References gui.panel.PanelIndex._addIndex(), and gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelIndex.psChangeIndex().
def gui.panel.PanelIndex.psChangeIndex | ( | self, | |
obj | |||
) |
A listed index has been changed.
self | The object instance itself |
obj | Index to change |
References gui.panel.PanelIndex.psAddIndex(), and gui.controls.SortedListPanel.removeEntry().
|
static |
|
static |
gui.panel.PanelIndex.pmenu_editindex |
gui.panel.PanelIndex.pmenu_newindex |
gui.panel.PanelIndex.popupmenu |