Share and Money Management 0.18devel
|
Generic functions for all dialogs. More...
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... | |
Generic functions for all dialogs.
def gui.controls.BaseDialog.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Initialise dialog.
Reimplemented in gui.UIShare.UIShare, gui.UITrade.UITrade, gui.dialogs.DlgTrade, and gui.dialogs.DlgShare.
|
private |
Change widget background to signalise "bad" content.
self | The object pointer |
widget | Widget to change background colour |
Referenced by gui.dialogs.DlgTrade._validateDateWidget(), gui.dialogs.DlgTrade._validateDecimalWidget(), and gui.dialogs.DlgShare._validateInput().
|
private |
Process input data.
Reimplemented in gui.dialogs.DlgTrade, and gui.dialogs.DlgShare.
Referenced by gui.controls.BaseDialog.ShowModal().
|
private |
Change widget background back to system colour for "good" content.
self | The object pointer |
widget | Widget to change background colour |
Referenced by gui.dialogs.DlgShare._setShare(), gui.dialogs.DlgTrade._validateInput(), and gui.dialogs.DlgShare._validateInput().
|
private |
Validate input data.
Reimplemented in gui.dialogs.DlgTrade, and gui.dialogs.DlgShare.
Referenced by gui.controls.BaseDialog.OnOK().
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__().
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().
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().