Share and Money Management  0.16
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__
 Initialise dialog.
def OnActivateOK
 Activate OK button after first position is selected.
def OnRadio
 Update position list on changing the RadioBox selection.
def GetSelection
 Returns the ID of the selected Position.
def OnShowReport
 Show the report for the selected position.
def ShowModal
 Show the dialog modal and save the config after afterwards.
- Public Member Functions inherited from gui.UIPositionReport.UIPositionReport
def __init__
- 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

 selection
 initialise instance variables
 cache
 Dictionary to cache search results.
 position_list
 Instance to simplify controlling of the list of positions related to the current filter settings.
- Public Attributes inherited from gui.UIPositionReport.UIPositionReport
 sizer_29_staticbox
 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.
dictionary config_items
 Dictionary with all elements to save/restore.

Detailed Description

Dialog to select a position using different filter criteria.

See Also
gui.report.createPositionReport()

Constructor & Destructor Documentation

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

Initialise dialog.

Parameters
selfThe object pointer
parentThe parent object

Member Function Documentation

def gui.dialogs.DlgPositionReport.GetSelection (   self)

Returns the ID of the selected Position.

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

Activate OK button after first position is selected.

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.dialogs.DlgPositionReport.cache, and gui.dialogs.DlgPositionReport.selection.

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

Here is the call graph for this function:

Member Data Documentation

gui.dialogs.DlgPositionReport.cache

Dictionary to cache search results.

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

dictionary gui.dialogs.DlgPositionReport.config_items
static
Initial value:
{
'lc_Position': 'ListCtrl',
}
string gui.dialogs.DlgPositionReport.config_section = 'DlgPositionReport'
static
gui.dialogs.DlgPositionReport.position_list

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

See Also
controls.PositionListSmall
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: