KSplitTransactionDlg Class Reference

#include <ksplittransactiondlg.h>

Inheritance diagram for KSplitTransactionDlg:

KSplitTransactionDlgDecl QDialog
Collaboration diagram for KSplitTransactionDlg:

Collaboration graph

List of all members.

Public Slots

int exec (void)


void createCategory (MyMoneyAccount &account, const MyMoneyAccount &parent)
void objectCreation (bool state)

Public Member Functions

 KSplitTransactionDlg (const MyMoneyTransaction &t, const MyMoneySplit &s, const MyMoneyAccount &acc, const bool amountValid, const bool deposit, const MyMoneyMoney &calculatedValue, const QMap< QString, MyMoneyMoney > &priceInfo, QWidget *parent=0, const char *name=0)
virtual ~KSplitTransactionDlg ()
const MyMoneyTransactiontransaction (void) const
MyMoneyMoney diffAmount (void)
MyMoneyMoney splitsValue (void)

Protected Slots

void accept ()
void reject ()
void slotClearAllSplits (void)
void slotClearUnusedSplits (void)
void slotSetTransaction (const MyMoneyTransaction &t)
void slotCreateCategory (const QString &txt, QString &id)
void slotMergeSplits (void)
void initSize (void)
 used internally to setup the initial size of all widgets

Private Member Functions

void updateSums (void)

Private Attributes

MyMoneyTransaction m_transaction
MyMoneyAccount m_account
MyMoneySplit m_split
int m_precision
bool m_amountValid
bool m_isDeposit
MyMoneyMoney m_calculatedValue

Detailed Description

Thomas Baumgart

Constructor & Destructor Documentation

KSplitTransactionDlg::KSplitTransactionDlg ( const MyMoneyTransaction t,
const MyMoneySplit s,
const MyMoneyAccount acc,
const bool  amountValid,
const bool  deposit,
const MyMoneyMoney calculatedValue,
const QMap< QString, MyMoneyMoney > &  priceInfo,
QWidget parent = 0,
const char *  name = 0 

virtual KSplitTransactionDlg::~KSplitTransactionDlg (  )  [virtual]

Member Function Documentation

const MyMoneyTransaction& KSplitTransactionDlg::transaction ( void   )  const [inline]

Using this method, an external object can retrieve the result of the dialog.

MyMoneyTransaction based on the transaction passes during the construction of this object and modified using the dialog.

MyMoneyMoney KSplitTransactionDlg::diffAmount ( void   ) 

This method calculates the difference between the split that references the account passed as argument to the constructor of this object and all the other splits shown in the register of this dialog.

difference as MyMoneyMoney object

MyMoneyMoney KSplitTransactionDlg::splitsValue ( void   ) 

This method calculates the sum of the splits shown in the register of this dialog.

sum of splits as MyMoneyMoney object

void KSplitTransactionDlg::updateSums ( void   )  [private]

This method updates the display of the sums below the register

int KSplitTransactionDlg::exec ( void   )  [slot]

void KSplitTransactionDlg::accept (  )  [protected, slot]

void KSplitTransactionDlg::reject (  )  [protected, slot]

void KSplitTransactionDlg::slotClearAllSplits ( void   )  [protected, slot]

void KSplitTransactionDlg::slotClearUnusedSplits ( void   )  [protected, slot]

void KSplitTransactionDlg::slotSetTransaction ( const MyMoneyTransaction t  )  [protected, slot]

void KSplitTransactionDlg::slotCreateCategory ( const QString &  txt,
QString &  id 
) [protected, slot]

void KSplitTransactionDlg::slotMergeSplits ( void   )  [protected, slot]

void KSplitTransactionDlg::initSize ( void   )  [protected, slot]

void KSplitTransactionDlg::createCategory ( MyMoneyAccount account,
const MyMoneyAccount parent 
) [signal]

This signal is sent out, when a new category needs to be created Depending on the setting of either a payment or deposit, the parent account will be preset to Expense or Income.

account reference to account info. Will be filled by called slot
parent reference to parent account

void KSplitTransactionDlg::objectCreation ( bool  state  )  [signal]

Signal is emitted, if any of the widgets enters (state equals true) or leaves (state equals false) object creation mode.

state Enter (true) or leave (false) object creation

Member Data Documentation

This member keeps a copy of the current selected transaction

This member keeps a copy of the currently selected account

This member keeps a copy of the currently selected split

This member keeps the precision for the values

flag that shows that the amount specified in the constructor should be used as fix value (true) or if it can be changed (false)

This member keeps track if the current transaction is of type deposit (true) or withdrawal (false).

This member keeps the amount that will be assigned to all the splits that are marked 'will be calculated'.

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

Generated on Wed Jan 26 13:09:06 2011 for KMyMoney by  doxygen 1.5.6