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__
 Initialise dialog.
def setFixedShareKind
 Set the specified share kind and disable changing the kind.

Static Public Attributes

 share = None
 Reference to a share.

Private Member Functions

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

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

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(), and gui.controls.BaseDialog.installOwnOKEventHandler().

Here is the call graph for this function:

Member Function Documentation

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

Update existing share or create a new one.

An existing share will be updated if share is set. Otherwise a new share will be created using the dialog's data and stored in share.

References gui.dialogs.DlgTrade.share, smm.objects.DailyQuote.share, smm.objects.Watch.share, gui.dialogs.DlgShare.share, and smm.objects.Position.share.

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

Fill dialogs fields with share data.

Parameters
selfThe object pointer
shareA Share object

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Set the specified share kind and disable changing the kind.

Parameters
selfThe object pointer
kindA share kind

Member Data Documentation

gui.dialogs.DlgShare.share = None
static

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