diff options
Diffstat (limited to 'kmymoney2/views/kgloballedgerview.cpp')
-rw-r--r-- | kmymoney2/views/kgloballedgerview.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/kmymoney2/views/kgloballedgerview.cpp b/kmymoney2/views/kgloballedgerview.cpp index 6806ea7..4eaa389 100644 --- a/kmymoney2/views/kgloballedgerview.cpp +++ b/kmymoney2/views/kgloballedgerview.cpp @@ -58,7 +58,7 @@ #include "../widgets/scheduledtransaction.h" -class KGlobalLedgerView::Private +class TDEGlobalLedgerView::Private { public: Private(); @@ -134,7 +134,7 @@ bool MousePressFilter::eventFilter(TQObject* o, TQEvent* e) } -KGlobalLedgerView::Private::Private() : +TDEGlobalLedgerView::Private::Private() : m_mousePressFilter(0), m_registerSearchLine(0), m_inLoading(false), @@ -143,9 +143,9 @@ KGlobalLedgerView::Private::Private() : { } -TQDate KGlobalLedgerView::m_lastPostDate; +TQDate TDEGlobalLedgerView::m_lastPostDate; -KGlobalLedgerView::KGlobalLedgerView(TQWidget *parent, const char *name ) +TDEGlobalLedgerView::TDEGlobalLedgerView(TQWidget *parent, const char *name ) : KMyMoneyViewBase(parent, name, i18n("Ledgers")), d(new Private), m_needReload(false), @@ -170,7 +170,7 @@ KGlobalLedgerView::KGlobalLedgerView(TQWidget *parent, const char *name ) // the account button at the right of the toolbar // I leave the code commented here for a while, so that I see // how I can add other widgets at this point - KIconLoader *il = KGlobal::iconLoader(); + KIconLoader *il = TDEGlobal::iconLoader(); m_toolbar->insertButton(il->loadIcon("document", KIcon::Small, KIcon::SizeSmall), 1,true,i18n("Account")); //m_toolbar->setMaximumSize(50,20); @@ -257,18 +257,18 @@ KGlobalLedgerView::KGlobalLedgerView(TQWidget *parent, const char *name ) d->m_mousePressFilter->addWidget(m_registerFrame); } -KGlobalLedgerView::~KGlobalLedgerView() +TDEGlobalLedgerView::~TDEGlobalLedgerView() { delete d; } -void KGlobalLedgerView::slotAboutToSelectItem(KMyMoneyRegister::RegisterItem* item, bool& okToSelect) +void TDEGlobalLedgerView::slotAboutToSelectItem(KMyMoneyRegister::RegisterItem* item, bool& okToSelect) { Q_UNUSED(item); emit cancelOrEndEdit(okToSelect); } -void KGlobalLedgerView::slotLoadView(void) +void TDEGlobalLedgerView::slotLoadView(void) { m_needReload = true; if(isVisible()) { @@ -281,7 +281,7 @@ void KGlobalLedgerView::slotLoadView(void) } } -void KGlobalLedgerView::clear(void) +void TDEGlobalLedgerView::clear(void) { // clear current register contents m_register->clear(); @@ -311,7 +311,7 @@ void KGlobalLedgerView::clear(void) d->m_precision = 2; } -void KGlobalLedgerView::loadView(void) +void TDEGlobalLedgerView::loadView(void) { MYMONEYTRACER(tracer); @@ -720,7 +720,7 @@ void KGlobalLedgerView::loadView(void) emit accountSelected(m_account); } -void KGlobalLedgerView::updateSummaryLine(const TQMap<TQString, MyMoneyMoney>& actBalance, const TQMap<TQString, MyMoneyMoney>& clearedBalance) +void TDEGlobalLedgerView::updateSummaryLine(const TQMap<TQString, MyMoneyMoney>& actBalance, const TQMap<TQString, MyMoneyMoney>& clearedBalance) { MyMoneyFile* file = MyMoneyFile::instance(); m_leftSummaryLabel->show(); @@ -738,7 +738,7 @@ void KGlobalLedgerView::updateSummaryLine(const TQMap<TQString, MyMoneyMoney>& a TQDate reconcileDate = m_account.lastReconciliationDate(); if(reconcileDate.isValid()) { - m_leftSummaryLabel->setText(i18n("Last reconciled: %1").arg(KGlobal::locale()->formatDate(reconcileDate, true))); + m_leftSummaryLabel->setText(i18n("Last reconciled: %1").arg(TDEGlobal::locale()->formatDate(reconcileDate, true))); } else { m_leftSummaryLabel->setText(i18n("Never reconciled")); } @@ -785,7 +785,7 @@ void KGlobalLedgerView::updateSummaryLine(const TQMap<TQString, MyMoneyMoney>& a } } -void KGlobalLedgerView::slotUpdateViewPos(void) +void TDEGlobalLedgerView::slotUpdateViewPos(void) { m_register->setUpdatesEnabled(true); @@ -800,14 +800,14 @@ void KGlobalLedgerView::slotUpdateViewPos(void) } -void KGlobalLedgerView::resizeEvent(TQResizeEvent* ev) +void TDEGlobalLedgerView::resizeEvent(TQResizeEvent* ev) { m_register->resize(KMyMoneyRegister::DetailColumn); m_form->resize(KMyMoneyTransactionForm::ValueColumn1); KMyMoneyViewBase::resizeEvent(ev); } -void KGlobalLedgerView::loadAccounts(void) +void TDEGlobalLedgerView::loadAccounts(void) { MyMoneyFile* file = MyMoneyFile::instance(); @@ -854,7 +854,7 @@ void KGlobalLedgerView::loadAccounts(void) } } -void KGlobalLedgerView::selectTransaction(const TQString& id) +void TDEGlobalLedgerView::selectTransaction(const TQString& id) { if(!id.isEmpty()) { KMyMoneyRegister::RegisterItem* p = m_register->lastItem(); @@ -872,7 +872,7 @@ void KGlobalLedgerView::selectTransaction(const TQString& id) } } -void KGlobalLedgerView::slotSelectAllTransactions(void) +void TDEGlobalLedgerView::slotSelectAllTransactions(void) { KMyMoneyRegister::RegisterItem* p = m_register->firstItem(); while(p) { @@ -891,7 +891,7 @@ void KGlobalLedgerView::slotSelectAllTransactions(void) emit transactionsSelected(list); } -void KGlobalLedgerView::slotSetReconcileAccount(const MyMoneyAccount& acc, const TQDate& reconciliationDate, const MyMoneyMoney& endingBalance) +void TDEGlobalLedgerView::slotSetReconcileAccount(const MyMoneyAccount& acc, const TQDate& reconciliationDate, const MyMoneyMoney& endingBalance) { if(d->m_reconciliationAccount != acc.id()) { // make sure the account is selected @@ -920,12 +920,12 @@ void KGlobalLedgerView::slotSetReconcileAccount(const MyMoneyAccount& acc, const } } -bool KGlobalLedgerView::isReconciliationAccount(void) const +bool TDEGlobalLedgerView::isReconciliationAccount(void) const { return m_account.id() == d->m_reconciliationAccount; } -bool KGlobalLedgerView::slotSelectAccount(const MyMoneyObject& obj) +bool TDEGlobalLedgerView::slotSelectAccount(const MyMoneyObject& obj) { if(typeid(obj) != typeid(MyMoneyAccount)) return false; @@ -940,7 +940,7 @@ bool KGlobalLedgerView::slotSelectAccount(const MyMoneyObject& obj) return rc; } -bool KGlobalLedgerView::slotSelectAccount(const TQString& id, const TQString& transactionId) +bool TDEGlobalLedgerView::slotSelectAccount(const TQString& id, const TQString& transactionId) { bool rc = true; @@ -970,7 +970,7 @@ bool KGlobalLedgerView::slotSelectAccount(const TQString& id, const TQString& tr return rc; } -void KGlobalLedgerView::slotNewTransaction(KMyMoneyRegister::Action id) +void TDEGlobalLedgerView::slotNewTransaction(KMyMoneyRegister::Action id) { if(!m_inEditMode) { d->m_action = id; @@ -978,12 +978,12 @@ void KGlobalLedgerView::slotNewTransaction(KMyMoneyRegister::Action id) } } -void KGlobalLedgerView::slotNewTransaction(void) +void TDEGlobalLedgerView::slotNewTransaction(void) { slotNewTransaction(KMyMoneyRegister::ActionNone); } -void KGlobalLedgerView::setupDefaultAction(void) +void TDEGlobalLedgerView::setupDefaultAction(void) { switch(m_account.accountType()) { // TODO if we want a different action for different account types @@ -994,7 +994,7 @@ void KGlobalLedgerView::setupDefaultAction(void) } } -bool KGlobalLedgerView::selectEmptyTransaction(void) +bool TDEGlobalLedgerView::selectEmptyTransaction(void) { bool rc = false; @@ -1026,7 +1026,7 @@ bool KGlobalLedgerView::selectEmptyTransaction(void) return rc; } -TransactionEditor* KGlobalLedgerView::startEdit(const KMyMoneyRegister::SelectedTransactions& list) +TransactionEditor* TDEGlobalLedgerView::startEdit(const KMyMoneyRegister::SelectedTransactions& list) { // we use the warnlevel to keep track, if we have to warn the // user that some or all splits have been reconciled or if the @@ -1168,7 +1168,7 @@ TransactionEditor* KGlobalLedgerView::startEdit(const KMyMoneyRegister::Selected return editor; } -void KGlobalLedgerView::slotLeaveEditMode(const KMyMoneyRegister::SelectedTransactions& list) +void TDEGlobalLedgerView::slotLeaveEditMode(const KMyMoneyRegister::SelectedTransactions& list) { m_inEditMode = false; tqApp->removeEventFilter(d->m_mousePressFilter); @@ -1203,11 +1203,11 @@ void KGlobalLedgerView::slotLeaveEditMode(const KMyMoneyRegister::SelectedTransa m_register->setFocus(); } -bool KGlobalLedgerView::focusNextPrevChild(bool next) +bool TDEGlobalLedgerView::focusNextPrevChild(bool next) { bool rc = false; - // tqDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false"); + // tqDebug("TDEGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false"); if(m_inEditMode) { TQWidget *w = 0; TQWidget *currentWidget; @@ -1244,7 +1244,7 @@ bool KGlobalLedgerView::focusNextPrevChild(bool next) } -void KGlobalLedgerView::show(void) +void TDEGlobalLedgerView::show(void) { if(m_needReload) { if(!m_inEditMode) { @@ -1263,7 +1263,7 @@ void KGlobalLedgerView::show(void) KMyMoneyViewBase::show(); } -bool KGlobalLedgerView::eventFilter(TQObject* o, TQEvent* e) +bool TDEGlobalLedgerView::eventFilter(TQObject* o, TQEvent* e) { bool rc = false; @@ -1298,7 +1298,7 @@ bool KGlobalLedgerView::eventFilter(TQObject* o, TQEvent* e) return rc; } -void KGlobalLedgerView::slotSortOptions(void) +void TDEGlobalLedgerView::slotSortOptions(void) { KSortOptionDlg* dlg = new KSortOptionDlg(this); @@ -1341,19 +1341,19 @@ void KGlobalLedgerView::slotSortOptions(void) delete dlg; } -void KGlobalLedgerView::slotToggleTransactionMark(KMyMoneyRegister::Transaction* /* t */) +void TDEGlobalLedgerView::slotToggleTransactionMark(KMyMoneyRegister::Transaction* /* t */) { if(!m_inEditMode) { emit toggleReconciliationFlag(); } } -void KGlobalLedgerView::slotKeepPostDate(const TQDate& date) +void TDEGlobalLedgerView::slotKeepPostDate(const TQDate& date) { m_lastPostDate = date; } -bool KGlobalLedgerView::canCreateTransactions(TQString& tooltip) const +bool TDEGlobalLedgerView::canCreateTransactions(TQString& tooltip) const { bool rc = true; if(m_account.id().isEmpty()) { @@ -1372,7 +1372,7 @@ bool KGlobalLedgerView::canCreateTransactions(TQString& tooltip) const return rc; } -bool KGlobalLedgerView::canProcessTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const +bool TDEGlobalLedgerView::canProcessTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const { if(m_register->focusItem() == 0) return false; @@ -1384,17 +1384,17 @@ bool KGlobalLedgerView::canProcessTransactions(const KMyMoneyRegister::SelectedT return list.count() > 0; } -bool KGlobalLedgerView::canModifyTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const +bool TDEGlobalLedgerView::canModifyTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const { return canProcessTransactions(list,tooltip) && list.canModify(); } -bool KGlobalLedgerView::canDuplicateTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const +bool TDEGlobalLedgerView::canDuplicateTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const { return canProcessTransactions(list,tooltip) && list.canDuplicate(); } -bool KGlobalLedgerView::canEditTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const +bool TDEGlobalLedgerView::canEditTransactions(const KMyMoneyRegister::SelectedTransactions& list, TQString& tooltip) const { // check if we can edit the list of transactions. We can edit, if // |