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

Cfg Class Reference

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

Collaboration diagram for Cfg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Cfg ()
bool getUseSmallFont ()
void setUseSmallFont (bool n)
bool getShowLocks ()
void setShowLocks (bool n)
bool getShowBalances ()
void setShowBalances (bool n)
QStringgetCurrencySymbol ()
void setCurrencySymbol (QString n)
void setCurrencySymbol (const char *n)
QStringListgetAccountTypes ()
QStringListgetPayees ()
bool getSavePayees ()
void setSavePayees (bool bSave)
QStringList getCategories ()
void setCategories (QStringList &lst)
CategoryListgetCategoryList ()
void setOpenLastBook (bool openLastBook)
bool isOpenLastBook ()
void setLastBook (const QString &lastBook)
QStringgetLastBook ()
void setShowLastTab (bool showLastTab)
bool isShowLastTab ()
void readConfig (Config &cfg)
void writeConfig (Config &cfg)
bool isDirty ()
void setDirty (bool bDirty)

Static Protected Member Functions

static void readStringList (Config &cfg, const char *sKey, QStringList &lst)
static void writeStringList (Config &cfg, const char *sKey, QStringList &lst)

Private Attributes

QString _currencySymbol
bool _useSmallFont
bool _showLocks
bool _showBalances
bool _openLastBook
bool _showLastTab
bool _bDirty
bool _bSavePayees
QString _sLastBook
QStringList _AccountTypes
CategoryList_pCategories
QStringList _Payees

Constructor & Destructor Documentation

Cfg::Cfg  ) 
 

Definition at line 37 of file cfg.cpp.

References _bDirty, _currencySymbol, _pCategories, _showBalances, _showLocks, _useSmallFont, FALSE, and TRUE.


Member Function Documentation

QStringList& Cfg::getAccountTypes  )  [inline]
 

Definition at line 80 of file cfg.h.

References _AccountTypes.

Referenced by Checkbook::initInfo(), and Configuration::saveConfig().

QStringList Cfg::getCategories  ) 
 

Definition at line 194 of file cfg.cpp.

References _pCategories, QValueList< T >::append(), Category::getName(), Category::isIncome(), QString::sprintf(), and tr.

Referenced by writeConfig().

CategoryList* Cfg::getCategoryList  )  [inline]
 

Definition at line 90 of file cfg.h.

References _pCategories.

Referenced by Transaction::slotDepositClicked(), and Transaction::slotWithdrawalClicked().

QString& Cfg::getCurrencySymbol  )  [inline]
 

Definition at line 77 of file cfg.h.

References _currencySymbol.

Referenced by MainWindow::addCheckbook(), Checkbook::adjustBalance(), Configuration::initSettings(), Checkbook::loadCheckbook(), MainWindow::openBook(), Checkbook::slotEditTran(), and Checkbook::slotNewTran().

QString& Cfg::getLastBook  )  [inline]
 

Definition at line 96 of file cfg.h.

References _sLastBook.

QStringList& Cfg::getPayees  )  [inline]
 

Definition at line 83 of file cfg.h.

References _Payees.

Referenced by Configuration::saveConfig(), Checkbook::slotEditTran(), Checkbook::slotNewTran(), and Transaction::Transaction().

bool Cfg::getSavePayees  )  [inline]
 

Definition at line 84 of file cfg.h.

References _bSavePayees.

Referenced by Configuration::initSettings(), Checkbook::slotEditTran(), and Checkbook::slotNewTran().

bool Cfg::getShowBalances  )  [inline]
 

Definition at line 75 of file cfg.h.

References _showBalances.

Referenced by MainWindow::addCheckbook(), MainWindow::buildList(), Configuration::initSettings(), and MainWindow::openBook().

bool Cfg::getShowLocks  )  [inline]
 

Definition at line 73 of file cfg.h.

References _showLocks.

Referenced by MainWindow::addCheckbook(), MainWindow::buildList(), Configuration::initSettings(), and MainWindow::openBook().

bool Cfg::getUseSmallFont  )  [inline]
 

Definition at line 71 of file cfg.h.

References _useSmallFont.

Referenced by Configuration::initSettings(), and Checkbook::initTransactions().

bool Cfg::isDirty  )  [inline]
 

Definition at line 109 of file cfg.h.

References _bDirty.

Referenced by MainWindow::openBook().

bool Cfg::isOpenLastBook  )  [inline]
 

Definition at line 94 of file cfg.h.

References _openLastBook.

Referenced by Configuration::initSettings().

bool Cfg::isShowLastTab  )  [inline]
 

Definition at line 100 of file cfg.h.

References _showLastTab.

Referenced by Checkbook::Checkbook(), and Configuration::initSettings().

void Cfg::readConfig Config cfg  ) 
 

Definition at line 74 of file cfg.cpp.

References _AccountTypes, _bDirty, _bSavePayees, _currencySymbol, _openLastBook, _Payees, _showBalances, _showLastTab, _showLocks, _sLastBook, _useSmallFont, FALSE, QValueList< T >::isEmpty(), readStringList(), setCategories(), tr, TRUE, type, and writeStringList().

void Cfg::readStringList Config cfg,
const char *  sKey,
QStringList lst
[static, protected]
 

Definition at line 52 of file cfg.cpp.

References QValueList< T >::append(), i, NULL, Config::readEntry(), Config::readNumEntry(), and QString::sprintf().

Referenced by readConfig().

void Cfg::setCategories QStringList lst  ) 
 

Definition at line 207 of file cfg.cpp.

References _pCategories, CategoryList::clear(), QValueList< T >::count(), QStringList::split(), and tr.

Referenced by readConfig(), and Configuration::saveConfig().

void Cfg::setCurrencySymbol const char *  n  )  [inline]
 

Definition at line 79 of file cfg.h.

References _currencySymbol.

void Cfg::setCurrencySymbol QString  n  )  [inline]
 

Definition at line 78 of file cfg.h.

References _currencySymbol.

Referenced by Configuration::saveConfig().

void Cfg::setDirty bool  bDirty  )  [inline]
 

Definition at line 110 of file cfg.h.

References _bDirty.

Referenced by Checkbook::slotEditTran(), and Checkbook::slotNewTran().

void Cfg::setLastBook const QString lastBook  )  [inline]
 

Definition at line 95 of file cfg.h.

References _sLastBook.

Referenced by MainWindow::openBook(), and MainWindow::slotNew().

void Cfg::setOpenLastBook bool  openLastBook  )  [inline]
 

Definition at line 93 of file cfg.h.

References _openLastBook.

Referenced by Configuration::saveConfig().

void Cfg::setSavePayees bool  bSave  )  [inline]
 

Definition at line 85 of file cfg.h.

References _bSavePayees.

Referenced by Configuration::saveConfig().

void Cfg::setShowBalances bool  n  )  [inline]
 

Definition at line 76 of file cfg.h.

References _showBalances.

Referenced by Configuration::saveConfig().

void Cfg::setShowLastTab bool  showLastTab  )  [inline]
 

Definition at line 99 of file cfg.h.

References _showLastTab.

Referenced by Configuration::saveConfig().

void Cfg::setShowLocks bool  n  )  [inline]
 

Definition at line 74 of file cfg.h.

References _showLocks.

Referenced by Configuration::saveConfig().

void Cfg::setUseSmallFont bool  n  )  [inline]
 

Definition at line 72 of file cfg.h.

References _useSmallFont.

Referenced by Configuration::saveConfig().

void Cfg::writeConfig Config cfg  ) 
 

Definition at line 162 of file cfg.cpp.

References _AccountTypes, _bDirty, _bSavePayees, _currencySymbol, _openLastBook, _Payees, _showBalances, _showLastTab, _showLocks, _sLastBook, _useSmallFont, getCategories(), and writeStringList().

Referenced by MainWindow::openBook(), and MainWindow::writeConfig().

void Cfg::writeStringList Config cfg,
const char *  sKey,
QStringList lst
[static, protected]
 

Definition at line 145 of file cfg.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QString::sprintf(), and Config::writeEntry().

Referenced by readConfig(), and writeConfig().


Member Data Documentation

QStringList Cfg::_AccountTypes [private]
 

Definition at line 129 of file cfg.h.

Referenced by getAccountTypes(), readConfig(), and writeConfig().

bool Cfg::_bDirty [private]
 

Definition at line 126 of file cfg.h.

Referenced by Cfg(), isDirty(), readConfig(), setDirty(), and writeConfig().

bool Cfg::_bSavePayees [private]
 

Definition at line 127 of file cfg.h.

Referenced by getSavePayees(), readConfig(), setSavePayees(), and writeConfig().

QString Cfg::_currencySymbol [private]
 

Definition at line 120 of file cfg.h.

Referenced by Cfg(), getCurrencySymbol(), readConfig(), setCurrencySymbol(), and writeConfig().

bool Cfg::_openLastBook [private]
 

Definition at line 124 of file cfg.h.

Referenced by isOpenLastBook(), readConfig(), setOpenLastBook(), and writeConfig().

QStringList Cfg::_Payees [private]
 

Definition at line 131 of file cfg.h.

Referenced by getPayees(), readConfig(), and writeConfig().

CategoryList* Cfg::_pCategories [private]
 

Definition at line 130 of file cfg.h.

Referenced by Cfg(), getCategories(), getCategoryList(), and setCategories().

bool Cfg::_showBalances [private]
 

Definition at line 123 of file cfg.h.

Referenced by Cfg(), getShowBalances(), readConfig(), setShowBalances(), and writeConfig().

bool Cfg::_showLastTab [private]
 

Definition at line 125 of file cfg.h.

Referenced by isShowLastTab(), readConfig(), setShowLastTab(), and writeConfig().

bool Cfg::_showLocks [private]
 

Definition at line 122 of file cfg.h.

Referenced by Cfg(), getShowLocks(), readConfig(), setShowLocks(), and writeConfig().

QString Cfg::_sLastBook [private]
 

Definition at line 128 of file cfg.h.

Referenced by getLastBook(), readConfig(), setLastBook(), and writeConfig().

bool Cfg::_useSmallFont [private]
 

Definition at line 121 of file cfg.h.

Referenced by Cfg(), getUseSmallFont(), readConfig(), setUseSmallFont(), and writeConfig().


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