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

Checkbook Class Reference

#include </home/clem/local/src/opie/noncore/apps/checkbook/checkbook.h>

Collaboration diagram for Checkbook:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Checkbook (QWidget *, CBInfo *, Cfg *cfg)
 ~Checkbook ()
void resort ()
TranInfoListgetTranList ()

Protected Slots

void accept ()
void slotTab (QWidget *tab)

Private Slots

void slotPasswordClicked ()
void slotNameChanged (const QString &)
void slotStartingBalanceChanged (const QString &)
void slotNewTran ()
void slotEditTran ()
void slotMenuTran (QListViewItem *, const QPoint &)
void slotDeleteTran ()
void slotDrawGraph ()
void slotSortChanged (const QString &)

Private Member Functions

void loadCheckbook ()
void adjustBalance ()
QWidget * initInfo ()
QWidget * initTransactions ()
QWidget * initCharts ()
void drawBalanceChart ()
void drawCategoryChart (bool=TRUE)

Private Attributes

CBInfoinfo
TranInfoListtranList
Cfg_pCfg
Opie::Ui::OTabWidgetmainWidget
QCheckBox * passwordCB
QLineEdit * nameEdit
QComboBox * typeList
QLineEdit * bankEdit
QLineEdit * acctNumEdit
QLineEdit * pinNumEdit
QLineEdit * balanceEdit
QMultiLineEdit * notesEdit
int _sortCol
QListView * tranTable
QComboBox * _cbSortType
QDate _dLastNew
GraphInfographInfo
QComboBox * graphList
GraphgraphWidget

Constructor & Destructor Documentation

Checkbook::Checkbook QWidget *  ,
CBInfo ,
Cfg cfg
 

Definition at line 64 of file checkbook.cpp.

References _pCfg, Opie::Ui::OTabWidget::addTab(), QString::append(), CBInfo::getLastTab(), info, initCharts(), initInfo(), initTransactions(), Cfg::isShowLastTab(), loadCheckbook(), mainWidget, CBInfo::name(), Opie::Ui::OTabWidget::setCurrentTab(), slotTab(), tempstr, and tr.

Checkbook::~Checkbook  ) 
 

Definition at line 105 of file checkbook.cpp.


Member Function Documentation

void Checkbook::accept  )  [protected, slot]
 

Definition at line 410 of file checkbook.cpp.

References acctNumEdit, balanceEdit, bankEdit, info, nameEdit, notesEdit, pinNumEdit, CBInfo::setAccount(), CBInfo::setBank(), CBInfo::setName(), CBInfo::setNotes(), CBInfo::setPin(), CBInfo::setStartingBalance(), CBInfo::setType(), and typeList.

void Checkbook::adjustBalance  )  [private]
 

Definition at line 384 of file checkbook.cpp.

References _pCfg, TranInfo::amount(), COL_BAL, TranInfo::fee(), Cfg::getCurrencySymbol(), CBListItem::getTranInfo(), info, QString::prepend(), QString::sprintf(), CBInfo::startingBalance(), tranTable, and TranInfo::withdrawal().

Referenced by loadCheckbook(), slotDeleteTran(), slotEditTran(), slotNewTran(), and slotStartingBalanceChanged().

void Checkbook::drawBalanceChart  )  [private]
 

Definition at line 647 of file checkbook.cpp.

References QString::append(), GraphInfo::BarChart, graphInfo, i, info, list, CBInfo::startingBalance(), and tranList.

Referenced by slotDrawGraph().

void Checkbook::drawCategoryChart bool  = TRUE  )  [private]
 

Definition at line 681 of file checkbook.cpp.

References DataPointInfo::addToValue(), TranInfo::amount(), TranInfo::category(), graphInfo, DataPointInfo::label(), list, GraphInfo::PieChart, tranList, and TranInfo::withdrawal().

Referenced by slotDrawGraph().

TranInfoList* Checkbook::getTranList  )  [inline]
 

Definition at line 68 of file checkbook.h.

References tranList.

QWidget * Checkbook::initCharts  )  [private]
 

Definition at line 281 of file checkbook.cpp.

References add, graphInfo, graphList, graphWidget, Opie::Core::OResource::loadPixmap(), mainWidget, slotDrawGraph(), Opie::Core::OResource::SmallIcon, AppLnk::smallIconSize(), and tr.

Referenced by Checkbook().

QWidget * Checkbook::initInfo  )  [private]
 

Definition at line 110 of file checkbook.cpp.

References _pCfg, acctNumEdit, add, balanceEdit, bankEdit, Cfg::getAccountTypes(), mainWidget, nameEdit, notesEdit, passwordCB, pinNumEdit, slotNameChanged(), slotPasswordClicked(), slotStartingBalanceChanged(), tr, and typeList.

Referenced by Checkbook().

QWidget * Checkbook::initTransactions  )  [private]
 

Definition at line 202 of file checkbook.cpp.

References _cbSortType, _pCfg, _sortCol, add, Qt::AlignRight, COL_ID, COL_SORTDATE, Cfg::getUseSmallFont(), Opie::Core::OResource::loadPixmap(), mainWidget, QPEApplication::RightOnHold, QPEApplication::setStylusOperation(), slotDeleteTran(), slotEditTran(), slotMenuTran(), slotNewTran(), slotSortChanged(), Opie::Core::OResource::SmallIcon, AppLnk::smallIconSize(), tr, tranTable, and TRUE.

Referenced by Checkbook().

void Checkbook::loadCheckbook  )  [private]
 

Definition at line 314 of file checkbook.cpp.

References _cbSortType, _pCfg, CBInfo::account(), acctNumEdit, adjustBalance(), balanceEdit, CBInfo::bank(), bankEdit, Cfg::getCurrencySymbol(), CBInfo::getSortOrder(), i, info, CBInfo::name(), nameEdit, CBInfo::notes(), notesEdit, CBInfo::password(), passwordCB, CBInfo::pin(), pinNumEdit, QString::prepend(), QString::setNum(), slotSortChanged(), QString::sprintf(), CBInfo::startingBalance(), tranList, CBInfo::transactions(), tranTable, CBInfo::type(), and typeList.

Referenced by Checkbook().

void Checkbook::resort  ) 
 

Definition at line 401 of file checkbook.cpp.

References _sortCol, and tranTable.

Referenced by slotEditTran(), slotNewTran(), and slotSortChanged().

void Checkbook::slotDeleteTran  )  [private, slot]
 

Definition at line 610 of file checkbook.cpp.

References adjustBalance(), COL_ID, QPEMessageBox::confirmDelete(), TranInfo::desc(), CBInfo::findTransaction(), info, CBInfo::removeTransaction(), tr, and tranTable.

Referenced by initTransactions(), and slotMenuTran().

void Checkbook::slotDrawGraph  )  [private, slot]
 

Definition at line 626 of file checkbook.cpp.

References drawBalanceChart(), drawCategoryChart(), Graph::drawGraph(), FALSE, graphInfo, graphList, graphWidget, Graph::setGraphInfo(), and TRUE.

Referenced by initCharts().

void Checkbook::slotEditTran  )  [private, slot]
 

Definition at line 540 of file checkbook.cpp.

References _pCfg, adjustBalance(), TranInfo::amount(), QValueList< T >::append(), COL_AMOUNT, COL_DATE, COL_DESC, COL_ID, COL_NUM, COL_SORTDATE, QValueList< T >::contains(), TranInfo::datestr(), TranInfo::desc(), QPEApplication::execDialog(), CBInfo::findTransaction(), Cfg::getCurrencySymbol(), Cfg::getPayees(), Cfg::getSavePayees(), info, CBInfo::name(), TranInfo::number(), QString::prepend(), resort(), Cfg::setDirty(), QStringList::sort(), QString::sprintf(), tranTable, and TranInfo::withdrawal().

Referenced by initTransactions(), and slotMenuTran().

void Checkbook::slotMenuTran QListViewItem *  ,
const QPoint & 
[private, slot]
 

Definition at line 583 of file checkbook.cpp.

References slotDeleteTran(), slotEditTran(), slotNewTran(), and tr.

Referenced by initTransactions().

void Checkbook::slotNameChanged const QString  )  [private, slot]
 

Definition at line 467 of file checkbook.cpp.

References QString::append(), info, CBInfo::setName(), and tr.

Referenced by initInfo().

void Checkbook::slotNewTran  )  [private, slot]
 

Definition at line 494 of file checkbook.cpp.

References _dLastNew, _pCfg, CBInfo::addTransaction(), adjustBalance(), QValueList< T >::append(), QValueList< T >::contains(), QPEApplication::execDialog(), Cfg::getCurrencySymbol(), CBInfo::getNextNumber(), Cfg::getPayees(), Cfg::getSavePayees(), info, QDate::isNull(), CBInfo::name(), QString::prepend(), resort(), TranInfo::setDate(), Cfg::setDirty(), QStringList::sort(), QString::sprintf(), and tranTable.

Referenced by initTransactions(), and slotMenuTran().

void Checkbook::slotPasswordClicked  )  [private, slot]
 

Definition at line 425 of file checkbook.cpp.

References FALSE, info, QString::null, Password::password, CBInfo::password(), passwordCB, CBInfo::setPassword(), tr, and TRUE.

Referenced by initInfo().

void Checkbook::slotSortChanged const QString  )  [private, slot]
 

Definition at line 795 of file checkbook.cpp.

References _sortCol, COL_ID, COL_NUM, COL_SORTDATE, info, resort(), CBInfo::setSortOrder(), and tr.

Referenced by initTransactions(), and loadCheckbook().

void Checkbook::slotStartingBalanceChanged const QString  )  [private, slot]
 

Definition at line 485 of file checkbook.cpp.

References adjustBalance(), info, CBInfo::setStartingBalance(), and QString::toFloat().

Referenced by initInfo().

void Checkbook::slotTab QWidget *  tab  )  [protected, slot]
 

Definition at line 787 of file checkbook.cpp.

References info, and CBInfo::setLastTab().

Referenced by Checkbook().


Member Data Documentation

QComboBox* Checkbook::_cbSortType [private]
 

Definition at line 94 of file checkbook.h.

Referenced by initTransactions(), and loadCheckbook().

QDate Checkbook::_dLastNew [private]
 

Definition at line 95 of file checkbook.h.

Referenced by slotNewTran().

Cfg* Checkbook::_pCfg [private]
 

Definition at line 73 of file checkbook.h.

Referenced by adjustBalance(), Checkbook(), initInfo(), initTransactions(), loadCheckbook(), slotEditTran(), and slotNewTran().

int Checkbook::_sortCol [private]
 

Definition at line 89 of file checkbook.h.

Referenced by initTransactions(), resort(), and slotSortChanged().

QLineEdit* Checkbook::acctNumEdit [private]
 

Definition at line 85 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().

QLineEdit* Checkbook::balanceEdit [private]
 

Definition at line 87 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().

QLineEdit* Checkbook::bankEdit [private]
 

Definition at line 84 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().

GraphInfo* Checkbook::graphInfo [private]
 

Definition at line 99 of file checkbook.h.

Referenced by drawBalanceChart(), drawCategoryChart(), initCharts(), and slotDrawGraph().

QComboBox* Checkbook::graphList [private]
 

Definition at line 100 of file checkbook.h.

Referenced by initCharts(), and slotDrawGraph().

Graph* Checkbook::graphWidget [private]
 

Definition at line 101 of file checkbook.h.

Referenced by initCharts(), and slotDrawGraph().

CBInfo* Checkbook::info [private]
 

Definition at line 71 of file checkbook.h.

Referenced by accept(), adjustBalance(), Checkbook(), drawBalanceChart(), loadCheckbook(), slotDeleteTran(), slotEditTran(), slotNameChanged(), slotNewTran(), slotPasswordClicked(), slotSortChanged(), slotStartingBalanceChanged(), and slotTab().

Opie::Ui::OTabWidget* Checkbook::mainWidget [private]
 

Definition at line 75 of file checkbook.h.

Referenced by Checkbook(), initCharts(), initInfo(), and initTransactions().

QLineEdit* Checkbook::nameEdit [private]
 

Definition at line 82 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().

QMultiLineEdit* Checkbook::notesEdit [private]
 

Definition at line 88 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().

QCheckBox* Checkbook::passwordCB [private]
 

Definition at line 81 of file checkbook.h.

Referenced by initInfo(), loadCheckbook(), and slotPasswordClicked().

QLineEdit* Checkbook::pinNumEdit [private]
 

Definition at line 86 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().

TranInfoList* Checkbook::tranList [private]
 

Definition at line 72 of file checkbook.h.

Referenced by drawBalanceChart(), drawCategoryChart(), getTranList(), and loadCheckbook().

QListView* Checkbook::tranTable [private]
 

Definition at line 93 of file checkbook.h.

Referenced by adjustBalance(), initTransactions(), loadCheckbook(), resort(), slotDeleteTran(), slotEditTran(), and slotNewTran().

QComboBox* Checkbook::typeList [private]
 

Definition at line 83 of file checkbook.h.

Referenced by accept(), initInfo(), and loadCheckbook().


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