Share and Money Management 0.18devel
|
Panel to show all open positions. More...
Public Member Functions | |
def | __init__ (self, *args, **kwargs) |
Initialise the watch list frame. More... | |
def | createWatchList (self) |
Create a header only list for all open positions. More... | |
def | createQuoteList (self) |
Create a header only list for daily quotes. More... | |
def | populateWatchList (self) |
Creates a list with all open positions. More... | |
def | populateQuoteList (self) |
List all quotes referred by the selected share. More... | |
def | showDetails (self) |
Shows the details of a selected share. More... | |
def | OnItemSelected (self, event) |
Event handler to update the transaction list on selecting an open position. More... | |
def | psUpdateAllContent (self) |
Full panel update. More... | |
def | psUpdateQuoteList (self) |
Quote list update. More... | |
def | OnCancel (self, event) |
Revert changes. More... | |
def | OnDelete (self, event) |
Delete watch list entry. More... | |
def | OnSave (self, event) |
Write changes back. More... | |
def | OnTrade (self, event) |
Show a dialog to trade with the selected share. More... | |
def | __init__ (self, *args, **kwds) |
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... | |
Public Attributes | |
lc_DailyQuotes | |
Daily quotes of the watched share. More... | |
lc_WatchPosition | |
List of all watched shares. More... | |
sw_WatchList | |
Splitter window used as main widget in this panel. More... | |
watch | |
Watch list entry. More... | |
Public Attributes inherited from gui.UIBasePanelWatchList.UIBasePanelWatchList | |
sw_WatchList | |
pn_ShareList | |
lc_WatchPosition | |
pn_Details | |
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. More... | |
dictionary | config_items |
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... | |
Private Member Functions | |
def | _addPosition (self, watch) |
Add a new watch list entry to the list. More... | |
def | _addQuote (self, quote) |
Add a new quote to the list. More... | |
Panel to show all open positions.
def gui.panel.PanelWatchList.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Initialise the watch list frame.
Reimplemented from gui.UIBasePanelWatchList.UIBasePanelWatchList.
|
private |
Add a new watch list entry to the list.
self | The object instance itself |
watch | The watch list entry |
References gui.panel.PanelWatchList.lc_WatchPosition, and gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_WatchPosition.
Referenced by gui.panel.PanelOpenPositionList.populateOpenPosition(), gui.panel.PanelOpenPositionDetails.populateOpenPosition(), and gui.panel.PanelWatchList.populateWatchList().
|
private |
Add a new quote to the list.
self | The object instance itself |
quote | The smm.objects.DailyQuote object |
References gui.panel.PanelWatchList.lc_DailyQuotes, and gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_DailyQuotes.
Referenced by gui.panel.PanelWatchList.populateQuoteList().
def gui.panel.PanelWatchList.createQuoteList | ( | self | ) |
Create a header only list for daily quotes.
References gui.panel.PanelWatchList.lc_DailyQuotes, and gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_DailyQuotes.
def gui.panel.PanelWatchList.createWatchList | ( | self | ) |
Create a header only list for all open positions.
References gui.panel.PanelWatchList.lc_WatchPosition, and gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_WatchPosition.
def gui.panel.PanelWatchList.OnCancel | ( | self, | |
event | |||
) |
Revert changes.
References gui.panel.PanelOpenPositionDetails.showDetails(), and gui.panel.PanelWatchList.showDetails().
def gui.panel.PanelWatchList.OnDelete | ( | self, | |
event | |||
) |
Delete watch list entry.
References gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
def gui.panel.PanelWatchList.OnItemSelected | ( | self, | |
event | |||
) |
Event handler to update the transaction list on selecting an open position.
References gui.panel.PanelWatchList.lc_WatchPosition, gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_WatchPosition, gui.panel.PanelOpenPositionDetails.showDetails(), gui.panel.PanelWatchList.showDetails(), gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
def gui.panel.PanelWatchList.OnSave | ( | self, | |
event | |||
) |
Write changes back.
The watch list entry as well as the share will be updated
References gui.UIBasePanelWatchList.UIBasePanelWatchList.pn_WatchDetails, gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
def gui.panel.PanelWatchList.OnTrade | ( | self, | |
event | |||
) |
Show a dialog to trade with the selected share.
References gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
Referenced by gui.panel.PanelShare._fill_popup_menu(), and gui.panel.PanelOpenPositionList._fill_popup_menu().
def gui.panel.PanelWatchList.populateQuoteList | ( | self | ) |
List all quotes referred by the selected share.
References gui.panel.PanelWatchList._addQuote(), gui.panel.PanelWatchList.lc_DailyQuotes, gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_DailyQuotes, gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
Referenced by gui.panel.PanelWatchList.psUpdateQuoteList(), and gui.panel.PanelWatchList.showDetails().
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(), gui.panel.PanelWatchList.lc_WatchPosition, gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_WatchPosition, gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
Referenced by gui.panel.PanelWatchList.psUpdateAllContent().
def gui.panel.PanelWatchList.psUpdateAllContent | ( | self | ) |
Full panel update.
References gui.panel.PanelWatchList.lc_WatchPosition, gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_WatchPosition, gui.panel.PanelWatchList.populateWatchList(), gui.panel.PanelOpenPositionDetails.showDetails(), and gui.panel.PanelWatchList.showDetails().
def gui.panel.PanelWatchList.psUpdateQuoteList | ( | self | ) |
Quote list update.
References gui.panel.PanelWatchList.populateQuoteList().
def gui.panel.PanelWatchList.showDetails | ( | self | ) |
Shows the details of a selected share.
References gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bn_cancel, gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_cancel, gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_delete, gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bn_save, gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_save, gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bn_trade, gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_trade, gui.panel.PanelWatchList.lc_DailyQuotes, gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_DailyQuotes, gui.UIBasePanelWatchList.UIBasePanelWatchList.pn_WatchDetails, gui.panel.PanelWatchList.populateQuoteList(), gui.panel.PanelWatchList.watch, and smm.objects.Share.watch.
Referenced by gui.panel.PanelOpenPositionDetails.OnCancel(), gui.panel.PanelWatchList.OnCancel(), gui.panel.PanelOpenPositionDetails.OnItemSelected(), gui.panel.PanelWatchList.OnItemSelected(), gui.panel.PanelWatchList.psUpdateAllContent(), and gui.panel.PanelOpenPositionDetails.psUpdateContent().
|
static |
Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().
|
static |
Section in the configuration that contains the current look.
Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().
gui.panel.PanelWatchList.lc_DailyQuotes |
Daily quotes of the watched share.
Referenced by gui.panel.PanelWatchList._addQuote(), gui.panel.PanelWatchList.createQuoteList(), gui.panel.PanelWatchList.populateQuoteList(), and gui.panel.PanelWatchList.showDetails().
gui.panel.PanelWatchList.lc_WatchPosition |
List of all watched shares.
Referenced by gui.panel.PanelWatchList._addPosition(), gui.panel.PanelWatchList.createWatchList(), gui.panel.PanelWatchList.OnItemSelected(), gui.panel.PanelWatchList.populateWatchList(), and gui.panel.PanelWatchList.psUpdateAllContent().
gui.panel.PanelWatchList.sw_WatchList |
Splitter window used as main widget in this panel.
gui.panel.PanelWatchList.watch |
Watch list entry.
Referenced by smm.objects.Share.createWatch(), smm.objects.Share.is_watched(), gui.panel.PanelWatchList.OnDelete(), gui.panel.PanelWatchList.OnItemSelected(), gui.panel.PanelWatchList.OnSave(), gui.panel.PanelWatchList.OnTrade(), gui.panel.PanelWatchList.populateQuoteList(), gui.panel.PanelWatchList.populateWatchList(), and gui.panel.PanelWatchList.showDetails().