Share and Money Management  0.16
Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
gui.dialogs.DlgShare Class Reference

Dialog to add and change shares. More...

Inheritance diagram for gui.dialogs.DlgShare:

Public Member Functions

def __init__ (self, parent, share=None)
 Initialise dialog. More...
 
def setFixedShareKind (self, kind)
 Set the specified share kind and disable changing the kind. More...
 
- Public Member Functions inherited from gui.UIShare.UIShare
def __init__ (self, args, kwds)
 
- Public Member Functions inherited from gui.controls.BaseDialog
def __init__ (self, args, kwargs)
 Initialise dialog. More...
 
def installOwnOKEventHandler (self)
 Bind own event handler for pressiong 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...
 

Static Public Attributes

 share = None
 Reference to a share. More...
 

Private Member Functions

def _setShare (self, share)
 Fill dialogs fields with share data. More...
 
def _validateInput (self)
 Validate dialog input in a logical way. More...
 
def _processInput (self)
 Update existing share or create a new one. More...
 

Additional Inherited Members

- Public Attributes inherited from gui.UIShare.UIShare
 tc_Name
 
 tc_Symbol
 
 tc_WKN
 
 tc_ISIN
 
 cc_Currency
 
 cc_Exchange
 
 cc_Kind
 
 cc_Source
 
 tc_Notes
 
 static_line_1
 
 bn_OK
 
 bn_Cancel
 

Detailed Description

Dialog to add and change shares.

Constructor & Destructor Documentation

◆ __init__()

def gui.dialogs.DlgShare.__init__ (   self,
  parent,
  share = None 
)

Initialise dialog.

Parameters
selfThe object pointer
parentThe parent object
shareA Share object

References gui.dialogs.DlgShare._setShare(), gui.UIShare.UIShare.cc_Source, and gui.controls.BaseDialog.installOwnOKEventHandler().

Here is the call graph for this function:

Member Function Documentation

◆ _processInput()

def gui.dialogs.DlgShare._processInput (   self)
private

◆ _setShare()

def gui.dialogs.DlgShare._setShare (   self,
  share 
)
private

◆ _validateInput()

def gui.dialogs.DlgShare._validateInput (   self)
private

◆ setFixedShareKind()

def gui.dialogs.DlgShare.setFixedShareKind (   self,
  kind 
)

Set the specified share kind and disable changing the kind.

Parameters
selfThe object pointer
kindA share kind

References gui.UIShare.UIShare.cc_Kind, and gui.controls.ShareDetailsPanel.cc_Kind.

Member Data Documentation

◆ share

gui.dialogs.DlgShare.share = None
static

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