Share and Money Management  0.16
Public Member Functions | Private Member Functions | List of all members
gui.controls.BaseDialog Class Reference

Generic functions for all dialogs. More...

Inheritance diagram for gui.controls.BaseDialog:

Public Member Functions

def __init__
 Initialise dialog.
def installOwnOKEventHandler
 Bind own event handler for pressiong OK to allow a proper validation.
def OnOK
 Own OK button handler to validate the dialog logically using validateDialog()
def ShowModal
 Show the dialog modal and process dialogs input.

Private Member Functions

def _markWidget
 Change widget backgound to signalise "bad" content.
def _unmarkWidget
 Change widget background back to system colour for "good" content.
def _validateInput
 Validate input data.
def _processInput
 Process input data.

Detailed Description

Generic functions for all dialogs.

Constructor & Destructor Documentation

def gui.controls.BaseDialog.__init__ (   self,
  args,
  kwargs 
)

Initialise dialog.

Reimplemented in gui.dialogs.DlgShare, gui.UITrade.UITrade, and gui.UIShare.UIShare.

Member Function Documentation

def gui.controls.BaseDialog._markWidget (   self,
  widget 
)
private

Change widget backgound to signalise "bad" content.

Parameters
selfThe object pointer
widgetWidget to change backgound colour
See Also
_unmarkWidget()

Referenced by gui.dialogs.DlgTrade._validateDateWidget(), gui.dialogs.DlgTrade._validateDecimalWidget(), and gui.dialogs.DlgShare._validateInput().

Here is the caller graph for this function:

def gui.controls.BaseDialog._processInput (   self)
private

Process input data.

Referenced by gui.controls.BaseDialog.ShowModal().

Here is the caller graph for this function:

def gui.controls.BaseDialog._unmarkWidget (   self,
  widget 
)
private

Change widget background back to system colour for "good" content.

Parameters
selfThe object pointer
widgetWidget to change backgound colour
See Also
_markWidget()

Referenced by gui.dialogs.DlgShare._setShare(), gui.dialogs.DlgTrade._validateInput(), and gui.dialogs.DlgShare._validateInput().

Here is the caller graph for this function:

def gui.controls.BaseDialog._validateInput (   self)
private

Validate input data.

Referenced by gui.controls.BaseDialog.OnOK().

Here is the caller graph for this function:

def gui.controls.BaseDialog.installOwnOKEventHandler (   self)

Bind own event handler for pressiong OK to allow a proper validation.

References gui.UIPositionReport.UIPositionReport.bn_OK, gui.UIPortfolioReport.UIPortfolioReport.bn_OK, gui.UIPreferences.UIPreferences.bn_OK, gui.UIShare.UIShare.bn_OK, gui.UITrade.UITrade.bn_OK, and gui.controls.BaseDialog.OnOK().

Referenced by gui.dialogs.DlgShare.__init__().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.controls.BaseDialog.OnOK (   self,
  event 
)

Own OK button handler to validate the dialog logically using validateDialog()

References gui.controls.BaseDialog._validateInput().

Referenced by gui.controls.BaseDialog.installOwnOKEventHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.controls.BaseDialog.ShowModal (   self)

Show the dialog modal and process dialogs input.

References gui.controls.BaseDialog._processInput().

Here is the call graph for this function:


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