Share and Money Management 0.18devel
|
Panel to show and maintain all transactions. More...
Public Member Functions | |
def | __init__ (self, *args, **kwargs) |
Initialise widget. More... | |
def | createListHeader (self) |
Create the header of a list. More... | |
def | populateList (self) |
Fill the transaction list. More... | |
def | psAddTransaction (self, obj) |
Add a new transaction to the list. More... | |
def | psChangeTransaction (self, obj) |
A listed transaction has been changed. More... | |
def | OnRemoveTransaction (self, unused) |
Delete the selected transaction. More... | |
Public Member Functions inherited from gui.controls.SortedListPanel | |
def | __init__ (self, *args, **kwargs) |
Initialise widget. More... | |
def | createListHeader (self) |
Create the header of a list. More... | |
def | createList (self) |
Create list, add header and enable sorting. More... | |
def | populateList (self) |
Fill an already created list. More... | |
def | removeEntry (self, element_id) |
Remove a listed entry. More... | |
Public Member Functions inherited from gui.controls.GeneralPanelConfig | |
def | OnClose (self, event) |
Save the current configuration before the panel is closed. More... | |
def | restoreConfig (self) |
Restore saved settings. More... | |
def | saveConfig (self) |
Save current settings. More... | |
def | restoreListCtrl (self, ctrl, section, prefix) |
Restore saved settings. More... | |
def | saveListCtrl (self, ctrl, section, prefix) |
Save current settings. More... | |
Public Member Functions inherited from gui.controls.PopupMenuMixin | |
def | __init__ (self, *args, **kwargs) |
def | OnShowPopup (self, event) |
Event handler to show the pop-up menu. More... | |
Static Public Attributes | |
string | config_section = "panel_transaction" |
Static Public Attributes inherited from gui.controls.SortedListPanel | |
config_section = None | |
Section in the configuration that contains the current look. More... | |
listStyle = wx.LC_REPORT | wx.SUNKEN_BORDER | |
Style of the ListCtrl. More... | |
list = None | |
Reference to the used SortedListCtrl. More... | |
Static Public Attributes inherited from gui.controls.GeneralPanelConfig | |
config_section = None | |
Section in the configuration that contains the current look. More... | |
dictionary | config_items |
Dictionary with all elements to save/restore. More... | |
Static Public Attributes inherited from gui.controls.PopupMenuMixin | |
popupmenu = None | |
Reference to the pop-up menu. More... | |
string | widget_attr = "list" |
Name of widget class attribute to add the pop-up menu. More... | |
Private Member Functions | |
def | _fill_popup_menu (self) |
Fills the pop-up menu initially. More... | |
def | _addTransaction (self, transaction) |
Add a smm.objects.Transaction object to the list control. More... | |
Additional Inherited Members | |
Public Attributes inherited from gui.controls.PopupMenuMixin | |
widget_attr | |
Panel to show and maintain all transactions.
Lists all smm.objects.Transaction objects.
def gui.panel.PanelTransaction.__init__ | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Initialise widget.
Reimplemented from gui.controls.SortedListPanel.
References gui.panel.PanelTransaction.psAddTransaction(), and gui.panel.PanelTransaction.psChangeTransaction().
|
private |
Add a smm.objects.Transaction object to the list control.
self | The object instance itself |
transaction | The smm.objects.Transaction object |
References gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelTransaction.populateList(), and gui.panel.PanelTransaction.psAddTransaction().
|
private |
Fills the pop-up menu initially.
Derive this function to implement your own functionality.
Reimplemented from gui.controls.PopupMenuMixin.
References gui.controls.SortedListPanel.list, gui.controls.TransactionListSmall.OnRemoveTransaction(), gui.panel.PanelTransaction.OnRemoveTransaction(), gui.controls.PopupMenuMixin.popupmenu, gui.controls.BaseListSmall.popupmenu, and gui.controls.TransactionListSmall.popupmenu.
def gui.panel.PanelTransaction.createListHeader | ( | self | ) |
Create the header of a list.
Reimplemented from gui.controls.SortedListPanel.
References gui.controls.SortedListPanel.list.
Referenced by gui.controls.SortedListPanel.createList().
def gui.panel.PanelTransaction.OnRemoveTransaction | ( | self, | |
unused | |||
) |
Delete the selected transaction.
References gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelTransaction._fill_popup_menu().
def gui.panel.PanelTransaction.populateList | ( | self | ) |
Fill the transaction list.
Reimplemented from gui.controls.SortedListPanel.
References gui.panel.PanelTransaction._addTransaction().
Referenced by gui.controls.SortedListPanel.__init__().
def gui.panel.PanelTransaction.psAddTransaction | ( | self, | |
obj | |||
) |
Add a new transaction to the list.
self | The object instance itself |
obj | Transaction to add |
References gui.panel.PanelTransaction._addTransaction(), and gui.controls.SortedListPanel.list.
Referenced by gui.panel.PanelTransaction.__init__(), and gui.panel.PanelTransaction.psChangeTransaction().
def gui.panel.PanelTransaction.psChangeTransaction | ( | self, | |
obj | |||
) |
A listed transaction has been changed.
self | The object instance itself |
obj | Transaction to change |
References gui.panel.PanelTransaction.psAddTransaction(), and gui.controls.SortedListPanel.removeEntry().
Referenced by gui.panel.PanelTransaction.__init__().
|
static |