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__
 Initialise widget.
def createListHeader
 Create the header of a list.
def createPopupMenu
 Create the popup menu.
def populateList
 Fill the transaction list.
def psAddTransaction
 Add a new transaction to the list.
def psChangeTransaction
 A listed transaction has been changed.
def OnShowPopup
 Display the pop-up menu.
def OnRemoveTransaction
 Delete the selected transaction.
- Public Member Functions inherited from gui.controls.SortedListPanel
def createList
 Create list, add header and enable sorting.
def removeEntry
 Remove a listed entry.
- Public Member Functions inherited from gui.controls.GeneralPanelConfig
def OnClose
 Save the current configuration before the panel is closed.
def restoreConfig
 Restore saved settings.
def saveConfig
 Save current settings.
def restoreListCtrl
 Restore saved settings.
def saveListCtrl
 Save current settings.

Static Public Attributes

 popupmenu = None
 Reference to the pop-up menu.
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.
 listStyle = wx.LC_REPORT|wx.SUNKEN_BORDER
 Style of the ListCtrl.
 list = None
 Reference to the used SortedListCtrl.
- Static Public Attributes inherited from gui.controls.GeneralPanelConfig
 config_section = None
 Section in the configuration that contains the current look.
dictionary config_items
 Dictionary with all elements to save/restore.

Private Member Functions

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

Detailed Description

Panel to show and maintain all transactions.

Lists all smm.objects.Transaction objects.

Constructor & Destructor Documentation

def gui.panel.PanelTransaction.__init__ (   self,
  args,
  kwargs 
)

Member Function Documentation

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

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

Here is the caller graph for this function:

def gui.panel.PanelTransaction.createListHeader (   self)

Create the header of a list.

Reimplemented from gui.controls.SortedListPanel.

def gui.panel.PanelTransaction.createPopupMenu (   self)

Create the popup menu.

References 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:

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

Delete the selected transaction.

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

Here is the caller graph for this function:

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

Display the pop-up menu.

References 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:

def gui.panel.PanelTransaction.populateList (   self)

Fill the transaction list.

Reimplemented from gui.controls.SortedListPanel.

References gui.panel.PanelTransaction._addTransaction().

Here is the call graph for this function:

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

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:

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

string gui.panel.PanelTransaction.config_section = 'panel_transaction'
static
gui.panel.PanelTransaction.popupmenu = None
static

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