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

Panel to show and maintain all indices. More...

Inheritance diagram for gui.panel.PanelIndex:

Public Member Functions

def __init__
 Initialise widget.
def createListHeader
 Create the header of a list.
def populateList
 Fill the index list.
def psAddIndex
 Add a new index to the list.
def psChangeIndex
 A listed index has been changed.
def OnEditIndex
 Show a dialog to edit a share.
def OnNewIndex
 Show a dialog to create a new index.
def OnShowPopup
 Display the pop-up menu.
- Public Member Functions inherited from gui.controls.SortedListPanel
def createList
 Create list, add header and enable sorting.
def removeEntry
 Remove a listed entry.
- Public Member Functions inherited from gui.controls.GeneralPanelConfig
def OnClose
 Save the current configuration before the panel is closed.
def restoreConfig
 Restore saved settings.
def saveConfig
 Save current settings.
def restoreListCtrl
 Restore saved settings.
def saveListCtrl
 Save current settings.

Public Attributes

 popupmenu
 pmenu_newindex
 pmenu_editindex

Static Public Attributes

string config_section = 'panel_index'
int initiallySort = 3
- Static Public Attributes inherited from gui.controls.SortedListPanel
 config_section = None
 Section in the configuration that contains the current look.
 listStyle = wx.LC_REPORT|wx.SUNKEN_BORDER
 Style of the ListCtrl.
 list = None
 Reference to the used SortedListCtrl.
- Static Public Attributes inherited from gui.controls.GeneralPanelConfig
 config_section = None
 Section in the configuration that contains the current look.
dictionary config_items
 Dictionary with all elements to save/restore.

Private Member Functions

def _addIndex
 Add a smm.objects.Share object to the list control.

Detailed Description

Panel to show and maintain all indices.

Lists all smm.objects.Share.kind == u'index' objects.

Note
An index is a special kind of a Share!

Constructor & Destructor Documentation

def gui.panel.PanelIndex.__init__ (   self,
  args,
  kwargs 
)

Initialise widget.

Reimplemented from gui.controls.SortedListPanel.

Member Function Documentation

def gui.panel.PanelIndex._addIndex (   self,
  share 
)
private

Add a smm.objects.Share object to the list control.

Parameters
selfThe object instance itself
shareThe smm.objects.Share object

Referenced by gui.panel.PanelIndex.populateList(), and gui.panel.PanelIndex.psAddIndex().

Here is the caller graph for this function:

def gui.panel.PanelIndex.createListHeader (   self)

Create the header of a list.

Reimplemented from gui.controls.SortedListPanel.

def gui.panel.PanelIndex.OnEditIndex (   self,
  event 
)

Show a dialog to edit a share.

See Also
dialogs.DlgShare
def gui.panel.PanelIndex.OnNewIndex (   self,
  event 
)

Show a dialog to create a new index.

See Also
dialogs.DlgShare
def gui.panel.PanelIndex.OnShowPopup (   self,
  event 
)
def gui.panel.PanelIndex.populateList (   self)

Fill the index list.

Reimplemented from gui.controls.SortedListPanel.

References gui.panel.PanelIndex._addIndex().

Here is the call graph for this function:

def gui.panel.PanelIndex.psAddIndex (   self,
  obj 
)

Add a new index to the list.

Parameters
selfThe object instance itself
objIndex to add

References gui.panel.PanelIndex._addIndex().

Referenced by gui.panel.PanelIndex.psChangeIndex().

Here is the call graph for this function:

Here is the caller graph for this function:

def gui.panel.PanelIndex.psChangeIndex (   self,
  obj 
)

A listed index has been changed.

Parameters
selfThe object instance itself
objIndex to change

References gui.panel.PanelIndex.psAddIndex(), and gui.controls.SortedListPanel.removeEntry().

Here is the call graph for this function:

Member Data Documentation

string gui.panel.PanelIndex.config_section = 'panel_index'
static
int gui.panel.PanelIndex.initiallySort = 3
static
gui.panel.PanelIndex.pmenu_editindex
gui.panel.PanelIndex.pmenu_newindex
gui.panel.PanelIndex.popupmenu

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