Share and Money Management 0.18devel
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...
 
def __init__ (self, *args, **kwds)
 Initialise dialog. More...
 
- Public Member Functions inherited from gui.controls.BaseDialog
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...
 

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

Reimplemented from gui.UIShare.UIShare.

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

Validate dialog input in a logical way.

Reimplemented from gui.controls.BaseDialog.

References gui.controls.BaseDialog._markWidget(), gui.controls.BaseDialog._unmarkWidget(), gui.controls.ShareDetailsPanel.cc_Kind, gui.UIShare.UIShare.cc_Kind, gui.dialogs.DlgTrade.share, gui.dialogs.DlgShare.share, smm.objects.DailyQuote.share, smm.objects.Watch.share, smm.objects.Position.share, gui.controls.ShareDetailsPanel.tc_ISIN, gui.UIShare.UIShare.tc_ISIN, gui.controls.ShareDetailsPanel.tc_Name, gui.UIShare.UIShare.tc_Name, gui.controls.ShareDetailsPanel.tc_Symbol, gui.UIShare.UIShare.tc_Symbol, gui.controls.ShareDetailsPanel.tc_WKN, and gui.UIShare.UIShare.tc_WKN.

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

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

◆ 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.controls.ShareDetailsPanel.cc_Kind, and gui.UIShare.UIShare.cc_Kind.

Member Data Documentation

◆ share

gui.dialogs.DlgShare.share = None
static

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