Share and Money Management 0.18devel
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gui.dialogs.DlgPositionReport Class Reference

Dialog to select a position using different filter criteria. More...

Inheritance diagram for gui.dialogs.DlgPositionReport:

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...
 

Detailed Description

Dialog to select a position using different filter criteria.

See also
gui.report.createPositionReport()

Constructor & Destructor Documentation

◆ __init__()

def gui.dialogs.DlgPositionReport.__init__ (   self,
  parent 
)

Initialise dialog.

Parameters
selfThe object pointer
parentThe parent object

Reimplemented from gui.UIPositionReport.UIPositionReport.

Member Function Documentation

◆ GetSelection()

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().

Here is the caller graph for this function:

◆ OnActivateOK()

def gui.dialogs.DlgPositionReport.OnActivateOK (   self,
  event 
)

◆ OnRadio()

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.

See also
cache and selection

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__().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnShowReport()

def gui.dialogs.DlgPositionReport.OnShowReport (   self,
  event 
)

Show the report for the selected position.

◆ ShowModal()

def gui.dialogs.DlgPositionReport.ShowModal (   self)

Show the dialog modal and save the config after afterwards.

References gui.controls.GeneralPanelConfig.saveConfig().

Here is the call graph for this function:

Member Data Documentation

◆ cache

gui.dialogs.DlgPositionReport.cache

Dictionary to cache search results.

Referenced by gui.dialogs.DlgPositionReport.OnRadio().

◆ config_items

dictionary gui.dialogs.DlgPositionReport.config_items
static
Initial value:
= {
"lc_Position": "ListCtrl",
}

Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().

◆ config_section

string gui.dialogs.DlgPositionReport.config_section = "DlgPositionReport"
static

◆ position_list

gui.dialogs.DlgPositionReport.position_list

Instance to simplify controlling of the list of positions related to the current filter settings.

See also
controls.PositionListSmall

Referenced by gui.dialogs.DlgPositionReport.OnRadio().

◆ selection

gui.dialogs.DlgPositionReport.selection

initialise instance variables

Stores the last selection to prevent unneeded position updates.

Referenced by gui.dialogs.DlgPositionReport.OnRadio().


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