Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AccountDisplay Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qashmoney/accountdisplay.h>

List of all members.

Public Slots

void addAccount ()
void editAccount ()
void deleteAccount ()
void accountTransfer (bool state)
void getTransferAccounts (QListViewItem *item)
void disableParentsWithChildren ()
void enableAccounts ()

Public Member Functions

 AccountDisplay (QWidget *parent)
void setTabs (QWidget *newtab2, QTabWidget *newtabs)
int getIDColumn ()
void setToggleButton ()

Public Attributes

QHBox * firstline
QPushButton * newaccount
QPushButton * editaccount
QPushButton * deleteaccount
QPushButton * transferbutton
QListView * listview
QBoxLayout * layout

Private Slots

void saveColumnSize (int column, int oldsize, int newsize)
void setAccountExpanded (QListViewItem *item)
void setAccountCollapsed (QListViewItem *item)
void saveSortingPreference (int column)

Private Attributes

int type
int firstaccountid
int secondaccountid
int cleared
QWidget * tab2
QTabWidget * maintabs


Constructor & Destructor Documentation

AccountDisplay::AccountDisplay QWidget *  parent  ) 
 

Definition at line 20 of file accountdisplay.cpp.

References accountTransfer(), addAccount(), cleared, deleteAccount(), deleteaccount, editAccount(), editaccount, FALSE, firstline, layout, listview, newaccount, saveColumnSize(), saveSortingPreference(), setAccountCollapsed(), setAccountExpanded(), transferbutton, and TRUE.


Member Function Documentation

void AccountDisplay::accountTransfer bool  state  )  [slot]
 

Definition at line 224 of file accountdisplay.cpp.

References disableParentsWithChildren(), enableAccounts(), FALSE, firstaccountid, getTransferAccounts(), listview, secondaccountid, and TRUE.

Referenced by AccountDisplay().

void AccountDisplay::addAccount  )  [slot]
 

Definition at line 67 of file accountdisplay.cpp.

References NewAccount::accountbalance, NewAccount::accountbox, NewAccount::accountname, NewAccount::accounttype, Account::addAccount(), NewAccount::balancebox, Account::changeParentAccountBalance(), NewAccount::childbox, NewAccount::childcheckbox, NewAccount::creditlimit, NewAccount::creditlimitbox, Currency::currencybox, NewAccount::currencybox, QDate::currentDate(), NewAccount::datebox, QDate::day(), Account::displayAccounts(), FALSE, Preferences::getDate(), NewAccount::getDateEdited(), NewAccount::getDay(), NewAccount::getDescription(), getIDColumn(), NewAccount::getMonth(), Account::getNumberOfAccounts(), Transaction::getNumberOfTransactions(), Transfer::getNumberOfTransfers(), Preferences::getPreference(), NewAccount::getYear(), listview, maintabs, QDate::month(), newaccount, QString::number(), setToggleButton(), NewAccount::startdate, tab2, QString::toInt(), TRUE, type, width, and QDate::year().

Referenced by AccountDisplay().

void AccountDisplay::deleteAccount  )  [slot]
 

Definition at line 163 of file accountdisplay.cpp.

References Account::changeParentAccountBalance(), Account::deleteAccount(), Transaction::deleteAllTransactions(), Transfer::deleteAllTransfers(), Account::displayAccounts(), FALSE, getIDColumn(), Account::getNumberOfAccounts(), Account::getParentAccountID(), listview, maintabs, setToggleButton(), tab2, and warning().

Referenced by AccountDisplay().

void AccountDisplay::disableParentsWithChildren  )  [slot]
 

Definition at line 310 of file accountdisplay.cpp.

References FALSE, and listview.

Referenced by accountTransfer().

void AccountDisplay::editAccount  )  [slot]
 

Definition at line 366 of file accountdisplay.cpp.

References code, QString::compare(), Account::displayAccounts(), FALSE, Account::getAccountDescription(), Account::getCurrencyCode(), getIDColumn(), Preferences::getPreference(), layout, listview, maintabs, tab2, TRUE, Account::updateAccount(), and warning().

Referenced by AccountDisplay().

void AccountDisplay::enableAccounts  )  [slot]
 

Definition at line 321 of file accountdisplay.cpp.

References listview, and TRUE.

Referenced by accountTransfer(), and getTransferAccounts().

int AccountDisplay::getIDColumn  ) 
 

Definition at line 357 of file accountdisplay.cpp.

References listview.

Referenced by addAccount(), QashMoney::changeTabDisplay(), deleteAccount(), QashMoney::displayDatePreferencesDialog(), QashMoney::displayTransactionPreferencesDialog(), editAccount(), getTransferAccounts(), setAccountCollapsed(), and setAccountExpanded().

void AccountDisplay::getTransferAccounts QListViewItem *  item  )  [slot]
 

Definition at line 246 of file accountdisplay.cpp.

References Transfer::addTransfer(), TransferDialog::amount, Account::changeParentAccountBalance(), cleared, TransferDialog::clearedcheckbox, QDate::currentDate(), TransferDialog::date, QDate::day(), Account::displayAccounts(), enableAccounts(), FALSE, firstaccountid, Preferences::getDate(), TransferDialog::getDateEdited(), TransferDialog::getDay(), getIDColumn(), TransferDialog::getMonth(), Account::getParentAccountID(), TransferDialog::getYear(), listview, QDate::month(), odebug, oendl, secondaccountid, transferbutton, TRUE, Account::updateAccountBalance(), and QDate::year().

Referenced by accountTransfer().

void AccountDisplay::saveColumnSize int  column,
int  oldsize,
int  newsize
[private, slot]
 

Definition at line 329 of file accountdisplay.cpp.

References Preferences::changeColumnPreference(), and listview.

Referenced by AccountDisplay().

void AccountDisplay::saveSortingPreference int  column  )  [private, slot]
 

Definition at line 352 of file accountdisplay.cpp.

References Preferences::changeSortingPreference().

Referenced by AccountDisplay().

void AccountDisplay::setAccountCollapsed QListViewItem *  item  )  [private, slot]
 

Definition at line 445 of file accountdisplay.cpp.

References getIDColumn(), and Account::setAccountExpanded().

Referenced by AccountDisplay().

void AccountDisplay::setAccountExpanded QListViewItem *  item  )  [private, slot]
 

Definition at line 439 of file accountdisplay.cpp.

References getIDColumn(), and Account::setAccountExpanded().

Referenced by AccountDisplay().

void AccountDisplay::setTabs QWidget *  newtab2,
QTabWidget *  newtabs
 

Definition at line 61 of file accountdisplay.cpp.

References maintabs, and tab2.

Referenced by QashMoney::QashMoney().

void AccountDisplay::setToggleButton  ) 
 

Definition at line 206 of file accountdisplay.cpp.

References listview, and transferbutton.

Referenced by addAccount(), QashMoney::changeTabDisplay(), and deleteAccount().


Member Data Documentation

int AccountDisplay::cleared [private]
 

Definition at line 48 of file accountdisplay.h.

Referenced by AccountDisplay(), and getTransferAccounts().

QPushButton* AccountDisplay::deleteaccount
 

Definition at line 21 of file accountdisplay.h.

Referenced by AccountDisplay().

QPushButton* AccountDisplay::editaccount
 

Definition at line 20 of file accountdisplay.h.

Referenced by AccountDisplay().

int AccountDisplay::firstaccountid [private]
 

Definition at line 48 of file accountdisplay.h.

Referenced by accountTransfer(), and getTransferAccounts().

QHBox* AccountDisplay::firstline
 

Definition at line 17 of file accountdisplay.h.

Referenced by AccountDisplay().

QBoxLayout* AccountDisplay::layout
 

Definition at line 26 of file accountdisplay.h.

Referenced by AccountDisplay(), and editAccount().

QListView* AccountDisplay::listview
 

Definition at line 24 of file accountdisplay.h.

Referenced by AccountDisplay(), accountTransfer(), addAccount(), QashMoney::changeTabDisplay(), deleteAccount(), QashMoney::disableOneTouchViewing(), disableParentsWithChildren(), QashMoney::displayAccountPreferencesDialog(), QashMoney::displayDatePreferencesDialog(), QashMoney::displayTransactionPreferencesDialog(), editAccount(), enableAccounts(), QashMoney::enableOneTouchViewing(), getIDColumn(), getTransferAccounts(), QashMoney::QashMoney(), saveColumnSize(), setToggleButton(), and QashMoney::setTransactionTab().

QTabWidget* AccountDisplay::maintabs [private]
 

Definition at line 50 of file accountdisplay.h.

Referenced by addAccount(), deleteAccount(), editAccount(), and setTabs().

QPushButton* AccountDisplay::newaccount
 

Definition at line 19 of file accountdisplay.h.

Referenced by AccountDisplay(), and addAccount().

int AccountDisplay::secondaccountid [private]
 

Definition at line 48 of file accountdisplay.h.

Referenced by accountTransfer(), and getTransferAccounts().

QWidget* AccountDisplay::tab2 [private]
 

Definition at line 49 of file accountdisplay.h.

Referenced by addAccount(), deleteAccount(), editAccount(), and setTabs().

QPushButton* AccountDisplay::transferbutton
 

Definition at line 22 of file accountdisplay.h.

Referenced by AccountDisplay(), getTransferAccounts(), QashMoney::QashMoney(), and setToggleButton().

int AccountDisplay::type [private]
 

Definition at line 48 of file accountdisplay.h.

Referenced by addAccount().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:25:54 2005 for OPIE by  doxygen 1.4.2