Share and Money Management 0.18devel
|
Dialog to select a position using different filter criteria. More...
Public Member Functions | |
def | __init__ (self, parent) |
Initialise dialog. More... | |
def | OnActivateOK (self, event) |
Activate OK button after first position is selected. More... | |
def | OnRadio (self, event) |
Update position list on changing the RadioBox selection. More... | |
def | GetSelection (self) |
Returns the ID of the selected Position. More... | |
def | OnShowReport (self, event) |
Show the report for the selected position. More... | |
def | ShowModal (self) |
Show the dialog modal and save the config after afterwards. 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 | |
selection | |
initialise instance variables More... | |
cache | |
Dictionary to cache search results. More... | |
position_list | |
Instance to simplify controlling of the list of positions related to the current filter settings. More... | |
Public Attributes inherited from gui.UIPositionReport.UIPositionReport | |
rbx_PositionOpen | |
lc_Position | |
static_line | |
bn_OK | |
bn_Cancel | |
Static Public Attributes | |
string | config_section = "DlgPositionReport" |
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... | |
Dialog to select a position using different filter criteria.
def gui.dialogs.DlgPositionReport.__init__ | ( | self, | |
parent | |||
) |
Initialise dialog.
self | The object pointer |
parent | The parent object |
Reimplemented from gui.UIPositionReport.UIPositionReport.
def gui.dialogs.DlgPositionReport.GetSelection | ( | self | ) |
Returns the ID of the selected Position.
References gui.UIPositionReport.UIPositionReport.lc_Position.
Referenced by gui.dialogs.DlgPositionReport.OnRadio().
def gui.dialogs.DlgPositionReport.OnActivateOK | ( | self, | |
event | |||
) |
Activate OK button after first position is selected.
References gui.UIPortfolioReport.UIPortfolioReport.bn_OK, gui.UIPositionReport.UIPositionReport.bn_OK, gui.UIPreferences.UIPreferences.bn_OK, gui.UIShare.UIShare.bn_OK, and gui.UITrade.UITrade.bn_OK.
def gui.dialogs.DlgPositionReport.OnRadio | ( | self, | |
event | |||
) |
Update position list on changing the RadioBox selection.
The search results returned by the database are cached in cache.
References gui.UIPortfolioReport.UIPortfolioReport.bn_OK, gui.UIPositionReport.UIPositionReport.bn_OK, gui.UIPreferences.UIPreferences.bn_OK, gui.UIShare.UIShare.bn_OK, gui.UITrade.UITrade.bn_OK, gui.dialogs.DlgPositionReport.cache, gui.dialogs.DlgPositionReport.GetSelection(), gui.dialogs.DlgPositionReport.position_list, gui.UIPositionReport.UIPositionReport.rbx_PositionOpen, and gui.dialogs.DlgPositionReport.selection.
Referenced by gui.dialogs.DlgPortfolioReport.__init__().
def gui.dialogs.DlgPositionReport.OnShowReport | ( | self, | |
event | |||
) |
Show the report for the selected position.
def gui.dialogs.DlgPositionReport.ShowModal | ( | self | ) |
Show the dialog modal and save the config after afterwards.
References gui.controls.GeneralPanelConfig.saveConfig().
gui.dialogs.DlgPositionReport.cache |
Dictionary to cache search results.
Referenced by gui.dialogs.DlgPositionReport.OnRadio().
|
static |
Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().
|
static |
gui.dialogs.DlgPositionReport.position_list |
Instance to simplify controlling of the list of positions related to the current filter settings.
Referenced by gui.dialogs.DlgPositionReport.OnRadio().
gui.dialogs.DlgPositionReport.selection |
initialise instance variables
Stores the last selection to prevent unneeded position updates.
Referenced by gui.dialogs.DlgPositionReport.OnRadio().