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

Panel to show all open positions. More...

Inheritance diagram for gui.panel.PanelWatchList:

Public Member Functions

def __init__
 Initialise the watch list frame.
def createWatchList
 Create a header only list for all open positions.
def createQuoteList
 Create a header only list for daily quotes.
def populateWatchList
 Creates a list with all open positions.
def populateQuoteList
 List all quotes refered by the selectet share.
def showDetails
 Shows the details of a selected share.
def OnItemSelected
 Event handler to update the transaction list on selecting an open position.
def psUpdateAllContent
 Full panel update.
def psUpdateQuoteList
 Quote list update.
def OnCancel
 Revert changes.
def OnDelete
 Delete watch list entry.
def OnSave
 Write changes back.
def OnTrade
 Show a dialog to trade with the selected share.
- 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

 watch
 Watch list entry.
- Public Attributes inherited from gui.UIBasePanelWatchList.UIBasePanelWatchList
 sw_WatchList
 pn_Details
 sizer_quotes_staticbox
 pn_ShareList
 lc_WatchPosition
 bn_save
 bn_cancel
 bn_delete
 bn_trade
 pn_WatchDetails
 lc_DailyQuotes

Static Public Attributes

string config_section = 'panel_watchlist'
 Section in the configuration that contains the current look.
dictionary config_items
- 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 _addPosition
 Add a new watch list entry to the list.
def _addQuote
 Add a new quote to the list.

Detailed Description

Panel to show all open positions.

Constructor & Destructor Documentation

def gui.panel.PanelWatchList.__init__ (   self,
  args,
  kwds 
)

Initialise the watch list frame.

Reimplemented from gui.UIBasePanelWatchList.UIBasePanelWatchList.

Member Function Documentation

def gui.panel.PanelWatchList._addPosition (   self,
  watch 
)
private

Add a new watch list entry to the list.

Parameters
selfThe object instance itself
watchThe watch list entry

Referenced by gui.panel.PanelWatchList.populateWatchList().

Here is the caller graph for this function:

def gui.panel.PanelWatchList._addQuote (   self,
  quote 
)
private

Add a new quote to the list.

Parameters
selfThe object instance itself
quoteThe smm.objects.DailyQuote object

Referenced by gui.panel.PanelWatchList.populateQuoteList().

Here is the caller graph for this function:

def gui.panel.PanelWatchList.createQuoteList (   self)

Create a header only list for daily quotes.

def gui.panel.PanelWatchList.createWatchList (   self)

Create a header only list for all open positions.

def gui.panel.PanelWatchList.OnCancel (   self,
  event 
)

Revert changes.

References gui.panel.PanelOpenPositionDetails.showDetails(), and gui.panel.PanelWatchList.showDetails().

Here is the call graph for this function:

def gui.panel.PanelWatchList.OnDelete (   self,
  event 
)

Delete watch list entry.

References smm.objects.Share.watch, and gui.panel.PanelWatchList.watch.

def gui.panel.PanelWatchList.OnItemSelected (   self,
  event 
)

Event handler to update the transaction list on selecting an open position.

References gui.panel.PanelOpenPositionDetails.showDetails(), gui.panel.PanelWatchList.showDetails(), smm.objects.Share.watch, and gui.panel.PanelWatchList.watch.

Here is the call graph for this function:

def gui.panel.PanelWatchList.OnSave (   self,
  event 
)

Write changes back.

The watch list entry as well as the share will be updated

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

Show a dialog to trade with the selected share.

See Also
dialogs.DlgTrade
def gui.panel.PanelWatchList.populateQuoteList (   self)

List all quotes refered by the selectet share.

References gui.panel.PanelWatchList._addQuote(), smm.objects.Share.watch, and gui.panel.PanelWatchList.watch.

Referenced by gui.panel.PanelWatchList.psUpdateQuoteList(), and gui.panel.PanelWatchList.showDetails().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.panel.PanelWatchList.populateWatchList (   self)

Creates a list with all open positions.

References gui.panel.PanelOpenPositionList._addPosition(), gui.panel.PanelOpenPositionDetails._addPosition(), gui.panel.PanelWatchList._addPosition(), smm.objects.Share.watch, and gui.panel.PanelWatchList.watch.

Referenced by gui.panel.PanelWatchList.psUpdateAllContent().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.panel.PanelWatchList.psUpdateAllContent (   self)

Full panel update.

References gui.panel.PanelWatchList.populateWatchList(), gui.panel.PanelOpenPositionDetails.showDetails(), and gui.panel.PanelWatchList.showDetails().

Here is the call graph for this function:

def gui.panel.PanelWatchList.psUpdateQuoteList (   self)

Quote list update.

References gui.panel.PanelWatchList.populateQuoteList().

Here is the call graph for this function:

def gui.panel.PanelWatchList.showDetails (   self)

Shows the details of a selected share.

References gui.panel.PanelWatchList.populateQuoteList(), smm.objects.Share.watch, and gui.panel.PanelWatchList.watch.

Referenced by gui.panel.PanelWatchList.OnCancel(), gui.panel.PanelWatchList.OnItemSelected(), and gui.panel.PanelWatchList.psUpdateAllContent().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

dictionary gui.panel.PanelWatchList.config_items
static
Initial value:
{
# attr type
'lc_DailyQuotes': 'ListCtrl',
'lc_WatchPosition': 'ListCtrl',
'sw_WatchList': 'SplitterWindow',
}
gui.panel.PanelWatchList.config_section = 'panel_watchlist'
static

Section in the configuration that contains the current look.

gui.panel.PanelWatchList.watch

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