Share and Money Management  0.16
Public Member Functions | Static Public Attributes | List of all members
gui.controls.BaseListSmall Class Reference

Base class for a simple list to fill with elements of smm.objects. More...

Inheritance diagram for gui.controls.BaseListSmall:

Public Member Functions

def __init__
 Create the list header and enable the column sorter.
def add
 Add a single objects object to the list.
def clean
 Clean the list.
def createHeader
 Creates a header only list.
def createPopupMenu
 Create the popup menu.
def populate
 Creates a list of smm.objects.Position objects.
def OnShowPopup
 Display the pop-up menu.

Static Public Attributes

 control = None
 Reference to a SortedListCtrl.
 hasPopup = False
 List has a popup menu.
 popupmenu = None
 Reference to the pop-up menu.

Detailed Description

Base class for a simple list to fill with elements of smm.objects.

Constructor & Destructor Documentation

def gui.controls.BaseListSmall.__init__ (   self,
  control 
)

Create the list header and enable the column sorter.

Parameters
selfThe object instance itself
controlReference to a already created SortedListCtrl

References gui.controls.BaseListSmall.control, gui.controls.BaseListSmall.createHeader(), gui.controls.BaseListSmall.createPopupMenu(), gui.controls.BaseListSmall.hasPopup, and gui.controls.BaseListSmall.OnShowPopup().

Here is the call graph for this function:

Member Function Documentation

def gui.controls.BaseListSmall.add (   self,
  element 
)

Add a single objects object to the list.

Parameters
selfThe object instance itself
elementA single object

Reimplemented in gui.controls.TransactionListSmall, and gui.controls.PositionListSmall.

Referenced by gui.controls.BaseListSmall.populate().

Here is the caller graph for this function:

def gui.controls.BaseListSmall.clean (   self)

Clean the list.

def gui.controls.BaseListSmall.createHeader (   self)

Creates a header only list.

Reimplemented in gui.controls.TransactionListSmall, and gui.controls.PositionListSmall.

Referenced by gui.controls.BaseListSmall.__init__().

Here is the caller graph for this function:

def gui.controls.BaseListSmall.createPopupMenu (   self)

Create the popup menu.

Reimplemented in gui.controls.TransactionListSmall.

Referenced by gui.controls.BaseListSmall.__init__(), and gui.panel.PanelTransaction.__init__().

Here is the caller graph for this function:

def gui.controls.BaseListSmall.OnShowPopup (   self,
  event 
)

Display the pop-up menu.

References gui.controls.BaseListSmall.popupmenu.

Referenced by gui.controls.BaseListSmall.__init__(), and gui.panel.PanelTransaction.__init__().

Here is the caller graph for this function:

def gui.controls.BaseListSmall.populate (   self,
  element_list 
)

Creates a list of smm.objects.Position objects.

Parameters
selfThe object instance itself
element_listList of smm.objects.Position objects

References gui.controls.BaseListSmall.add().

Here is the call graph for this function:

Member Data Documentation

gui.controls.BaseListSmall.control = None
static

Reference to a SortedListCtrl.

Referenced by gui.controls.BaseListSmall.__init__().

gui.controls.BaseListSmall.hasPopup = False
static

List has a popup menu.

Referenced by gui.controls.BaseListSmall.__init__().

gui.controls.BaseListSmall.popupmenu = None
static

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