Share and Money Management 0.18devel
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__ (self, control)
 Create the list header and enable the column sorter. More...
 
def add (self, element)
 Add a single object to the list. More...
 
def clean (self)
 Clean the list. More...
 
def createHeader (self)
 Creates a header only list. More...
 
def createPopupMenu (self)
 Create the popup menu. More...
 
def populate (self, element_list)
 Creates a list of smm.objects.Position objects. More...
 
def OnShowPopup (self, event)
 Display the pop-up menu. More...
 

Static Public Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

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

Create the list header and enable the column sorter.

Parameters
selfThe object instance itself
controlReference to an already created SortedListCtrl

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

Here is the call graph for this function:

Member Function Documentation

◆ add()

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

Add a single object to the list.

Parameters
selfThe object instance itself
elementA single object

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

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

Here is the caller graph for this function:

◆ clean()

def gui.controls.BaseListSmall.clean (   self)

Clean the list.

References gui.controls.BaseListSmall.control.

◆ createHeader()

def gui.controls.BaseListSmall.createHeader (   self)

Creates a header only list.

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

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

Here is the caller graph for this function:

◆ createPopupMenu()

def gui.controls.BaseListSmall.createPopupMenu (   self)

Create the popup menu.

Reimplemented in gui.controls.TransactionListSmall.

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

Here is the caller graph for this function:

◆ OnShowPopup()

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

Display the pop-up menu.

References gui.controls.BaseListSmall.control, gui.controls.PopupMenuMixin.popupmenu, gui.controls.BaseListSmall.popupmenu, and gui.controls.TransactionListSmall.popupmenu.

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

Here is the caller graph for this function:

◆ populate()

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(), gui.controls.PositionListSmall.add(), gui.controls.TransactionListSmall.add(), and gui.controls.BaseListSmall.control.

Here is the call graph for this function:

Member Data Documentation

◆ control

gui.controls.BaseListSmall.control = None
static

◆ hasPopup

bool gui.controls.BaseListSmall.hasPopup = False
static

List has a popup menu.

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

◆ popupmenu

gui.controls.BaseListSmall.popupmenu = None
static

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