Share and Money Management 0.18devel
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__ (self, *args, **kwargs)
 Initialise dialog. More...
 
def installOwnOKEventHandler (self)
 Bind own event handler for pressing OK to allow a proper validation. More...
 
def OnOK (self, event)
 Own OK button handler to validate the dialog logically using validateDialog() More...
 
def ShowModal (self)
 Show the dialog modal and process dialogs input. More...
 

Private Member Functions

def _markWidget (self, widget)
 Change widget background to signalise "bad" content. More...
 
def _unmarkWidget (self, widget)
 Change widget background back to system colour for "good" content. More...
 
def _validateInput (self)
 Validate input data. More...
 
def _processInput (self)
 Process input data. More...
 

Detailed Description

Generic functions for all dialogs.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ _markWidget()

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

Change widget background to signalise "bad" content.

Parameters
selfThe object pointer
widgetWidget to change background 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:

◆ _processInput()

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

Process input data.

Reimplemented in gui.dialogs.DlgTrade, and gui.dialogs.DlgShare.

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

Here is the caller graph for this function:

◆ _unmarkWidget()

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 background 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:

◆ _validateInput()

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

Validate input data.

Reimplemented in gui.dialogs.DlgTrade, and gui.dialogs.DlgShare.

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

Here is the caller graph for this function:

◆ installOwnOKEventHandler()

def gui.controls.BaseDialog.installOwnOKEventHandler (   self)

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

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, 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:

◆ OnOK()

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

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

References gui.controls.BaseDialog._validateInput(), gui.dialogs.DlgTrade._validateInput(), and gui.dialogs.DlgShare._validateInput().

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

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

◆ ShowModal()

def gui.controls.BaseDialog.ShowModal (   self)

Show the dialog modal and process dialogs input.

References gui.controls.BaseDialog._processInput(), gui.dialogs.DlgTrade._processInput(), and gui.dialogs.DlgShare._processInput().

Here is the call graph for this function:

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