Share and Money Management 0.18devel
|
Base class for a simple list to fill with elements of smm.objects. More...
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... | |
Base class for a simple list to fill with elements of smm.objects.
def gui.controls.BaseListSmall.__init__ | ( | self, | |
control | |||
) |
Create the list header and enable the column sorter.
self | The object instance itself |
control | Reference 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().
def gui.controls.BaseListSmall.add | ( | self, | |
element | |||
) |
Add a single object to the list.
self | The object instance itself |
element | A single object |
Reimplemented in gui.controls.PositionListSmall, and gui.controls.TransactionListSmall.
Referenced by gui.controls.BaseListSmall.populate().
def gui.controls.BaseListSmall.clean | ( | self | ) |
Clean the list.
References gui.controls.BaseListSmall.control.
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__().
def gui.controls.BaseListSmall.createPopupMenu | ( | self | ) |
Create the popup menu.
Reimplemented in gui.controls.TransactionListSmall.
Referenced by gui.controls.BaseListSmall.__init__().
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__().
def gui.controls.BaseListSmall.populate | ( | self, | |
element_list | |||
) |
Creates a list of smm.objects.Position objects.
self | The object instance itself |
element_list | List of smm.objects.Position objects |
References gui.controls.BaseListSmall.add(), gui.controls.PositionListSmall.add(), gui.controls.TransactionListSmall.add(), and gui.controls.BaseListSmall.control.
|
static |
Reference to a SortedListCtrl.
Referenced by gui.controls.BaseListSmall.__init__(), gui.controls.PositionListSmall.add(), gui.controls.TransactionListSmall.add(), gui.controls.BaseListSmall.clean(), gui.controls.PositionListSmall.createHeader(), gui.controls.TransactionListSmall.createHeader(), gui.controls.TransactionListSmall.OnRemoveTransaction(), gui.controls.BaseListSmall.OnShowPopup(), and gui.controls.BaseListSmall.populate().
|
static |
List has a popup menu.
Referenced by gui.controls.BaseListSmall.__init__().
|
static |
Reference to the pop-up menu.
Referenced by gui.panel.PanelShare._fill_popup_menu(), gui.panel.PanelTransaction._fill_popup_menu(), gui.panel.PanelOpenPositionList._fill_popup_menu(), gui.controls.PopupMenuMixin._show_popup_on_event_pos(), and gui.controls.BaseListSmall.OnShowPopup().