Share and Money Management
0.16
|
Panel to show and maintain all shares. More...
Public Member Functions | |
def | __init__ (self, args, kwargs) |
Initialise widget. More... | |
def | createListHeader (self) |
def | populateList (self) |
Fill the share list. More... | |
def | psAddShare (self, obj) |
Add a new share to the list. More... | |
def | psChangeShare (self, obj) |
A listed share has been changed. More... | |
def | OnEditShare (self, event) |
Show a dialog to edit a share. More... | |
def | OnNewShare (self, event) |
Show a dialog to create a new share. More... | |
def | OnShowPopup (self, event) |
Display the pop-up menu. More... | |
def | OnTrade (self, event) |
Show a dialog to trade with the selected share. More... | |
def | OnWatch (self, event) |
Add a new watch list entry for the selected share. More... | |
def | OnUnWatch (self, event) |
Remove watch list entry for the selected share. 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_watch | |
pmenu_unwatch | |
pmenu_newshare | |
pmenu_editshare | |
Static Public Attributes | |
string | config_section = 'panel_share' |
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 | _addShare (self, share) |
Add a smm.objects.Share object to the list control. More... | |
Panel to show and maintain all shares.
Lists all smm.objects.Share objects.
def gui.panel.PanelShare.__init__ | ( | self, | |
args, | |||
kwargs | |||
) |
Initialise widget.
|
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.PanelShare.populateList(), and gui.panel.PanelShare.psAddShare().
def gui.panel.PanelShare.createListHeader | ( | self | ) |
References gui.controls.SortedListPanel.list.
def gui.panel.PanelShare.OnEditShare | ( | self, | |
event | |||
) |
Show a dialog to edit a share.
References gui.controls.SortedListPanel.list.
def gui.panel.PanelShare.OnNewShare | ( | self, | |
event | |||
) |
Show a dialog to create a new share.
def gui.panel.PanelShare.OnShowPopup | ( | self, | |
event | |||
) |
Display the pop-up menu.
References gui.controls.SortedListPanel.list, gui.panel.PanelShare.pmenu_unwatch, gui.panel.PanelShare.pmenu_watch, gui.panel.PanelShare.popupmenu, gui.controls.BaseListSmall.popupmenu, and gui.controls.TransactionListSmall.popupmenu.
Referenced by gui.panel.PanelTransaction.__init__().
def gui.panel.PanelShare.OnTrade | ( | self, | |
event | |||
) |
Show a dialog to trade with the selected share.
References gui.controls.SortedListPanel.list.
def gui.panel.PanelShare.OnUnWatch | ( | self, | |
event | |||
) |
Remove watch list entry for the selected share.
References gui.controls.SortedListPanel.list.
def gui.panel.PanelShare.OnWatch | ( | self, | |
event | |||
) |
Add a new watch list entry for the selected share.
References gui.controls.SortedListPanel.list.
def gui.panel.PanelShare.populateList | ( | self | ) |
Fill the share list.
References gui.panel.PanelShare._addShare().
def gui.panel.PanelShare.psAddShare | ( | self, | |
obj | |||
) |
Add a new share to the list.
self | The object instance itself |
obj | Share to add |
References gui.panel.PanelShare._addShare(), and gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelShare.psChangeShare().
def gui.panel.PanelShare.psChangeShare | ( | self, | |
obj | |||
) |
A listed share has been changed.
self | The object instance itself |
obj | Share to change |
References gui.panel.PanelShare.psAddShare(), and gui.controls.SortedListPanel.removeEntry().
|
static |
|
static |
gui.panel.PanelShare.pmenu_editshare |
gui.panel.PanelShare.pmenu_newshare |
gui.panel.PanelShare.pmenu_unwatch |
Referenced by gui.panel.PanelShare.OnShowPopup().
gui.panel.PanelShare.pmenu_watch |
Referenced by gui.panel.PanelShare.OnShowPopup().
gui.panel.PanelShare.popupmenu |