Share and Money Management  0.16
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)
 
def createPopupMenu (self)
 Create the popup menu. 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 OnShowPopup (self, event)
 Display the pop-up menu. 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 a 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...
 

Static Public Attributes

 popupmenu = None
 Reference to the pop-up menu. More...
 
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...
 

Private Member Functions

def _addTransaction (self, transaction)
 Add a smm.objects.Transaction object to the list control. More...
 

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 
)

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:

◆ createListHeader()

def gui.panel.PanelTransaction.createListHeader (   self)

◆ createPopupMenu()

def gui.panel.PanelTransaction.createPopupMenu (   self)

Create the popup menu.

References gui.controls.SortedListPanel.list, gui.panel.PanelTransaction.OnRemoveTransaction(), gui.controls.TransactionListSmall.OnRemoveTransaction(), gui.panel.PanelShare.popupmenu, gui.controls.BaseListSmall.popupmenu, gui.panel.PanelTransaction.popupmenu, and gui.controls.TransactionListSmall.popupmenu.

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

Here is the call graph for this function:
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.createPopupMenu().

Here is the caller graph for this function:

◆ OnShowPopup()

def gui.panel.PanelTransaction.OnShowPopup (   self,
  event 
)

Display the pop-up menu.

References gui.controls.SortedListPanel.list, gui.panel.PanelShare.popupmenu, gui.controls.BaseListSmall.popupmenu, gui.panel.PanelTransaction.popupmenu, and gui.controls.TransactionListSmall.popupmenu.

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

Here is the caller graph for this function:

◆ populateList()

def gui.panel.PanelTransaction.populateList (   self)

Fill the transaction list.

References gui.panel.PanelTransaction._addTransaction().

Here is the call 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

◆ popupmenu

gui.panel.PanelTransaction.popupmenu = None
static

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