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

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

Inheritance diagram for gui.panel.PanelTransaction:

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
 

Detailed Description

Panel to show and maintain all transactions.

Lists all smm.objects.Transaction objects.

Constructor & Destructor Documentation

◆ __init__()

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().

Here is the call graph for this function:

Member Function Documentation

◆ _addTransaction()

def gui.panel.PanelTransaction._addTransaction (   self,
  transaction 
)
private

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

Parameters
selfThe object instance itself
transactionThe smm.objects.Transaction object

References gui.controls.SortedListPanel.list.

Referenced by gui.panel.PanelTransaction.populateList(), and gui.panel.PanelTransaction.psAddTransaction().

Here is the caller graph for this function:

◆ _fill_popup_menu()

def gui.panel.PanelTransaction._fill_popup_menu (   self)
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.

Here is the call graph for this function:

◆ createListHeader()

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().

Here is the caller graph for this function:

◆ OnRemoveTransaction()

def gui.panel.PanelTransaction.OnRemoveTransaction (   self,
  unused 
)

Delete the selected transaction.

References gui.controls.SortedListPanel.list.

Referenced by gui.panel.PanelTransaction._fill_popup_menu().

Here is the caller graph for this function:

◆ populateList()

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__().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ psAddTransaction()

def gui.panel.PanelTransaction.psAddTransaction (   self,
  obj 
)

Add a new transaction to the list.

Parameters
selfThe object instance itself
objTransaction to add

References gui.panel.PanelTransaction._addTransaction(), and gui.controls.SortedListPanel.list.

Referenced by gui.panel.PanelTransaction.__init__(), and gui.panel.PanelTransaction.psChangeTransaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ psChangeTransaction()

def gui.panel.PanelTransaction.psChangeTransaction (   self,
  obj 
)

A listed transaction has been changed.

Parameters
selfThe object instance itself
objTransaction to change

References gui.panel.PanelTransaction.psAddTransaction(), and gui.controls.SortedListPanel.removeEntry().

Referenced by gui.panel.PanelTransaction.__init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ config_section

string gui.panel.PanelTransaction.config_section = "panel_transaction"
static

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