Share and Money Management  0.16
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
gui.panel.PanelShare Class Reference

Panel to show and maintain all shares. More...

Inheritance diagram for gui.panel.PanelShare:

Public Member Functions

def __init__
 Initialise widget.
def createListHeader
 Create the header of a list.
def populateList
 Fill the share list.
def psAddShare
 Add a new share to the list.
def psChangeShare
 A listed share has been changed.
def OnEditShare
 Show a dialog to edit a share.
def OnNewShare
 Show a dialog to create a new share.
def OnShowPopup
 Display the pop-up menu.
def OnTrade
 Show a dialog to trade with the selected share.
def OnWatch
 Add a new watch list entry for the selected share.
def OnUnWatch
 Remove watch list entry for the selected share.
- Public Member Functions inherited from gui.controls.SortedListPanel
def createList
 Create list, add header and enable sorting.
def removeEntry
 Remove a listed entry.
- Public Member Functions inherited from gui.controls.GeneralPanelConfig
def OnClose
 Save the current configuration before the panel is closed.
def restoreConfig
 Restore saved settings.
def saveConfig
 Save current settings.
def restoreListCtrl
 Restore saved settings.
def saveListCtrl
 Save current settings.

Public Attributes

 popupmenu
 pmenu_watch
 pmenu_unwatch
 pmenu_newshare
 pmenu_editshare

Static Public Attributes

string config_section = 'panel_share'
int initiallySort = 3
- Static Public Attributes inherited from gui.controls.SortedListPanel
 config_section = None
 Section in the configuration that contains the current look.
 listStyle = wx.LC_REPORT|wx.SUNKEN_BORDER
 Style of the ListCtrl.
 list = None
 Reference to the used SortedListCtrl.
- Static Public Attributes inherited from gui.controls.GeneralPanelConfig
 config_section = None
 Section in the configuration that contains the current look.
dictionary config_items
 Dictionary with all elements to save/restore.

Private Member Functions

def _addShare
 Add a smm.objects.Share object to the list control.

Detailed Description

Panel to show and maintain all shares.

Lists all smm.objects.Share objects.

Constructor & Destructor Documentation

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

Initialise widget.

Reimplemented from gui.controls.SortedListPanel.

Member Function Documentation

def gui.panel.PanelShare._addShare (   self,
  share 
)
private

Add a smm.objects.Share object to the list control.

Parameters
selfThe object instance itself
shareThe smm.objects.Share object

Referenced by gui.panel.PanelShare.populateList(), and gui.panel.PanelShare.psAddShare().

Here is the caller graph for this function:

def gui.panel.PanelShare.createListHeader (   self)

Create the header of a list.

Reimplemented from gui.controls.SortedListPanel.

def gui.panel.PanelShare.OnEditShare (   self,
  event 
)

Show a dialog to edit a share.

See Also
dialogs.DlgShare
def gui.panel.PanelShare.OnNewShare (   self,
  event 
)

Show a dialog to create a new share.

See Also
dialogs.DlgShare
def gui.panel.PanelShare.OnShowPopup (   self,
  event 
)

Display the pop-up menu.

References gui.panel.PanelShare.popupmenu, gui.controls.BaseListSmall.popupmenu, and gui.controls.TransactionListSmall.popupmenu.

Referenced by gui.panel.PanelTransaction.__init__().

Here is the caller graph for this function:

def gui.panel.PanelShare.OnTrade (   self,
  event 
)

Show a dialog to trade with the selected share.

See Also
dialogs.DlgTrade
def gui.panel.PanelShare.OnUnWatch (   self,
  event 
)

Remove watch list entry for the selected share.

def gui.panel.PanelShare.OnWatch (   self,
  event 
)

Add a new watch list entry for the selected share.

def gui.panel.PanelShare.populateList (   self)

Fill the share list.

Reimplemented from gui.controls.SortedListPanel.

References gui.panel.PanelShare._addShare().

Here is the call graph for this function:

def gui.panel.PanelShare.psAddShare (   self,
  obj 
)

Add a new share to the list.

Parameters
selfThe object instance itself
objShare to add

References gui.panel.PanelShare._addShare().

Referenced by gui.panel.PanelShare.psChangeShare().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.panel.PanelShare.psChangeShare (   self,
  obj 
)

A listed share has been changed.

Parameters
selfThe object instance itself
objShare to change

References gui.panel.PanelShare.psAddShare(), and gui.controls.SortedListPanel.removeEntry().

Here is the call graph for this function:

Member Data Documentation

string gui.panel.PanelShare.config_section = 'panel_share'
static
int gui.panel.PanelShare.initiallySort = 3
static
gui.panel.PanelShare.pmenu_editshare
gui.panel.PanelShare.pmenu_newshare
gui.panel.PanelShare.pmenu_unwatch
gui.panel.PanelShare.pmenu_watch
gui.panel.PanelShare.popupmenu

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