From fe50f29e05b1318b520a33179ea50c88b6e2c89a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 00:53:39 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- kmymoney2/dialogs/Makefile.am | 8 +- kmymoney2/dialogs/kaccountselectdlg.cpp | 2 +- kmymoney2/dialogs/kbackupdlg.cpp | 2 +- kmymoney2/dialogs/kchooseimportexportdlg.cpp | 2 +- kmymoney2/dialogs/kconfirmmanualenterdlg.cpp | 202 --------------------- kmymoney2/dialogs/kconfirmmanualenterdlg.h | 61 ------- kmymoney2/dialogs/kconfirmmanualenterdlgdecl.ui | 160 ---------------- kmymoney2/dialogs/kcsvprogressdlg.cpp | 26 +-- kmymoney2/dialogs/kequitypriceupdatedlg.cpp | 2 +- kmymoney2/dialogs/kexportdlg.cpp | 34 ++-- kmymoney2/dialogs/kimportdlg.cpp | 20 +- kmymoney2/dialogs/ksplittransactiondlg.cpp | 2 +- kmymoney2/dialogs/kstartdlg.cpp | 8 +- kmymoney2/dialogs/mymoneyqifprofileeditor.cpp | 2 +- .../dialogs/settings/ksettingsonlinequotes.cpp | 2 +- kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp | 202 +++++++++++++++++++++ kmymoney2/dialogs/tdeconfirmmanualenterdlg.h | 61 +++++++ kmymoney2/dialogs/tdeconfirmmanualenterdlgdecl.ui | 160 ++++++++++++++++ 18 files changed, 478 insertions(+), 478 deletions(-) delete mode 100644 kmymoney2/dialogs/kconfirmmanualenterdlg.cpp delete mode 100644 kmymoney2/dialogs/kconfirmmanualenterdlg.h delete mode 100644 kmymoney2/dialogs/kconfirmmanualenterdlgdecl.ui create mode 100644 kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp create mode 100644 kmymoney2/dialogs/tdeconfirmmanualenterdlg.h create mode 100644 kmymoney2/dialogs/tdeconfirmmanualenterdlgdecl.ui (limited to 'kmymoney2/dialogs') diff --git a/kmymoney2/dialogs/Makefile.am b/kmymoney2/dialogs/Makefile.am index ad9be80..e2fe204 100644 --- a/kmymoney2/dialogs/Makefile.am +++ b/kmymoney2/dialogs/Makefile.am @@ -5,14 +5,14 @@ INCLUDES = $(all_includes) -I$(top_srcdir) -I. -I$(top_srcdir)/libkdchart -I$(t libdialogs_a_METASOURCES = AUTO -libdialogs_a_SOURCES = kreportconfigurationfilterdlg.cpp kcurrencycalculator.cpp kcurrencyeditdlg.cpp keditequityentrydlg.cpp keditloanwizard.cpp knewloanwizard.cpp kenterscheduledlg.cpp krecentfileitem.cpp keditscheduledlg.cpp mymoneyqifprofileeditor.cpp kaccountselectdlg.cpp kupdatestockpricedlg.cpp knewequityentrydlg.cpp kstartdlg.cpp kreconciledlg.cpp knewfiledlg.cpp knewbankdlg.cpp knewaccountdlg.cpp kfindtransactiondlg.cpp kendingbalancedlg.cpp ksplittransactiondlg.cpp kimportdlg.cpp kexportdlg.cpp kcsvprogressdlg.cpp kchooseimportexportdlg.cpp kbackupdlg.cpp kequitypriceupdatedlg.cpp kmymoneypricedlg.cpp knewinvestmentwizard.cpp knewinvestmentwizard.h ksecuritylisteditor.cpp kgncimportoptionsdlg.cpp konlinequoteconfigurationdlg.cpp kgncpricesourcedlg.cpp kmymoneyfileinfodlg.cpp kselectdatabasedlg.cpp kpayeereassigndlg.cpp kcategoryreassigndlg.cpp kconfirmmanualenterdlg.cpp kaccountselectdlgdecl.ui kbackupdlgdecl.ui kchooseimportexportdlgdecl.ui kconfirmmanualenterdlgdecl.ui kcsvprogressdlgdecl.ui kcurrencycalculatordecl.ui kcurrencyeditdlgdecl.ui keditequityentrydecl.ui keditscheduledlgdecl.ui kendingbalancedlgdecl.ui kenterscheduledlgdecl.ui kequitypriceupdatedlgdecl.ui kexportdlgdecl.ui kfindtransactiondlgdecl.ui kgncimportoptionsdlgdecl.ui kimportdlgdecl.ui kmymoneypricedlgdecl.ui knewaccountdlgdecl.ui knewbankdlgdecl.ui knewequityentrydecl.ui knewfiledlgdecl.ui knewinvestmentwizarddecl.ui knewloanwizarddecl.ui konlinequoteconfigurationdecl.ui kreconciledlgdecl.ui ksecuritylisteditordecl.ui ksplitcorrectiondlg.ui ksplittransactiondlgdecl.ui kupdatestockpricedlgdecl.ui mymoneyqifprofileeditordecl.ui kgncpricesourcedlgdecl.ui kmymoneyfileinfodlgdecl.ui kselectdatabasedlgdecl.ui kpayeereassigndlgdecl.ui kcategoryreassigndlgdecl.ui transactioneditor.cpp investtransactioneditor.cpp investactivities.cpp kbalancechartdlg.cpp kplugindlg.ui kgpgkeyselectiondlg.cpp transactionmatcher.cpp kbalancewarning.cpp \ +libdialogs_a_SOURCES = kreportconfigurationfilterdlg.cpp kcurrencycalculator.cpp kcurrencyeditdlg.cpp keditequityentrydlg.cpp keditloanwizard.cpp knewloanwizard.cpp kenterscheduledlg.cpp krecentfileitem.cpp keditscheduledlg.cpp mymoneyqifprofileeditor.cpp kaccountselectdlg.cpp kupdatestockpricedlg.cpp knewequityentrydlg.cpp kstartdlg.cpp kreconciledlg.cpp knewfiledlg.cpp knewbankdlg.cpp knewaccountdlg.cpp kfindtransactiondlg.cpp kendingbalancedlg.cpp ksplittransactiondlg.cpp kimportdlg.cpp kexportdlg.cpp kcsvprogressdlg.cpp kchooseimportexportdlg.cpp kbackupdlg.cpp kequitypriceupdatedlg.cpp kmymoneypricedlg.cpp knewinvestmentwizard.cpp knewinvestmentwizard.h ksecuritylisteditor.cpp kgncimportoptionsdlg.cpp konlinequoteconfigurationdlg.cpp kgncpricesourcedlg.cpp kmymoneyfileinfodlg.cpp kselectdatabasedlg.cpp kpayeereassigndlg.cpp kcategoryreassigndlg.cpp tdeconfirmmanualenterdlg.cpp kaccountselectdlgdecl.ui kbackupdlgdecl.ui kchooseimportexportdlgdecl.ui tdeconfirmmanualenterdlgdecl.ui kcsvprogressdlgdecl.ui kcurrencycalculatordecl.ui kcurrencyeditdlgdecl.ui keditequityentrydecl.ui keditscheduledlgdecl.ui kendingbalancedlgdecl.ui kenterscheduledlgdecl.ui kequitypriceupdatedlgdecl.ui kexportdlgdecl.ui kfindtransactiondlgdecl.ui kgncimportoptionsdlgdecl.ui kimportdlgdecl.ui kmymoneypricedlgdecl.ui knewaccountdlgdecl.ui knewbankdlgdecl.ui knewequityentrydecl.ui knewfiledlgdecl.ui knewinvestmentwizarddecl.ui knewloanwizarddecl.ui konlinequoteconfigurationdecl.ui kreconciledlgdecl.ui ksecuritylisteditordecl.ui ksplitcorrectiondlg.ui ksplittransactiondlgdecl.ui kupdatestockpricedlgdecl.ui mymoneyqifprofileeditordecl.ui kgncpricesourcedlgdecl.ui kmymoneyfileinfodlgdecl.ui kselectdatabasedlgdecl.ui kpayeereassigndlgdecl.ui kcategoryreassigndlgdecl.ui transactioneditor.cpp investtransactioneditor.cpp investactivities.cpp kbalancechartdlg.cpp kplugindlg.ui kgpgkeyselectiondlg.cpp transactionmatcher.cpp kbalancewarning.cpp \ knewbudgetdlgdecl.ui knewbudgetdlg.cpp kselecttransactionsdlgdecl.ui kselecttransactionsdlg.cpp kmergetransactionsdlg.cpp ksortoptiondlg.ui kloadtemplatedlgdecl.ui kloadtemplatedlg.cpp kmymoneysplittable.cpp -EXTRA_DIST = kaccountselectdlgdecl.ui kbackupdlgdecl.ui kchooseimportexportdlgdecl.ui kconfirmmanualenterdlgdecl.ui kcsvprogressdlgdecl.ui kcurrencycalculatordecl.ui kcurrencyeditdlgdecl.ui keditequityentrydecl.ui keditscheduledlgdecl.ui kendingbalancedlgdecl.ui kenterscheduledlgdecl.ui kequitypriceupdatedlgdecl.ui kexportdlgdecl.ui kfindtransactiondlgdecl.ui kgncimportoptionsdlgdecl.ui kimportdlgdecl.ui kmymoneypricedlgdecl.ui knewaccountdlgdecl.ui knewbankdlgdecl.ui knewequityentrydecl.ui knewfiledlgdecl.ui knewinvestmentwizarddecl.ui knewloanwizarddecl.ui konlinequoteconfigurationdecl.ui kreconciledlgdecl.ui ksecuritylisteditordecl.ui ksplitcorrectiondlg.ui ksplittransactiondlgdecl.ui kupdatestockpricedlgdecl.ui mymoneyqifprofileeditordecl.ui kgncpricesourcedlgdecl.ui kmymoneyfileinfodlgdecl.ui kselectdatabasedlgdecl.ui kpayeereassigndlgdecl.ui kcategoryreassigndlgdecl.ui knewbudgetdlgdecl.ui kselecttransactionsdlgdecl.ui ksortoptiondlg.ui ksortoptiondlg.ui.h kplugindlg.ui kloadtemplatedlgdecl.ui +EXTRA_DIST = kaccountselectdlgdecl.ui kbackupdlgdecl.ui kchooseimportexportdlgdecl.ui tdeconfirmmanualenterdlgdecl.ui kcsvprogressdlgdecl.ui kcurrencycalculatordecl.ui kcurrencyeditdlgdecl.ui keditequityentrydecl.ui keditscheduledlgdecl.ui kendingbalancedlgdecl.ui kenterscheduledlgdecl.ui kequitypriceupdatedlgdecl.ui kexportdlgdecl.ui kfindtransactiondlgdecl.ui kgncimportoptionsdlgdecl.ui kimportdlgdecl.ui kmymoneypricedlgdecl.ui knewaccountdlgdecl.ui knewbankdlgdecl.ui knewequityentrydecl.ui knewfiledlgdecl.ui knewinvestmentwizarddecl.ui knewloanwizarddecl.ui konlinequoteconfigurationdecl.ui kreconciledlgdecl.ui ksecuritylisteditordecl.ui ksplitcorrectiondlg.ui ksplittransactiondlgdecl.ui kupdatestockpricedlgdecl.ui mymoneyqifprofileeditordecl.ui kgncpricesourcedlgdecl.ui kmymoneyfileinfodlgdecl.ui kselectdatabasedlgdecl.ui kpayeereassigndlgdecl.ui kcategoryreassigndlgdecl.ui knewbudgetdlgdecl.ui kselecttransactionsdlgdecl.ui ksortoptiondlg.ui ksortoptiondlg.ui.h kplugindlg.ui kloadtemplatedlgdecl.ui -DISTCLEANFILES= kaccountselectdlgdecl.cpp kbackupdlgdecl.cpp kchooseimportexportdlgdecl.cpp kcsvprogressdlgdecl.cpp kcurrencycalculatordecl.cpp kcurrencyeditdlgdecl.cpp keditequityentrydecl.cpp keditscheduledlgdecl.cpp kendingbalancedlgdecl.cpp kenterscheduledlgdecl.cpp kequitypriceupdatedlgdecl.cpp kexportdlgdecl.cpp kfindtransactiondlgdecl.cpp kgncimportoptionsdlgdecl.cpp kimportdlgdecl.cpp kmymoneypricedlgdecl.cpp knewaccountdlgdecl.cpp knewbankdlgdecl.cpp knewequityentrydecl.cpp knewfiledlgdecl.cpp knewinvestmentwizarddecl.cpp knewloanwizarddecl.cpp konlinequoteconfigurationdecl.cpp kreconciledlgdecl.cpp kreportconfigurationdecl.cpp ksecuritylisteditordecl.cpp ksplittransactiondlgdecl.cpp kupdatestockpricedlgdecl.cpp mymoneyqifprofileeditordecl.cpp kpayeereassigndlgdecl.cpp kcategoryreassigndlgdecl.cpp kconfirmmanualenterdlgdecl.cpp kaccountselectdlgdecl.h kbackupdlgdecl.h kchooseimportexportdlgdecl.h kcsvprogressdlgdecl.h kcurrencycalculatordecl.h kcurrencyeditdlgdecl.h keditequityentrydecl.h keditscheduledlgdecl.h kendingbalancedlgdecl.h kenterscheduledlgdecl.h kequitypriceupdatedlgdecl.h kexportdlgdecl.h kfindtransactiondlgdecl.h kgncimportoptionsdlgdecl.h kimportdlgdecl.h kmymoneypricedlgdecl.h knewaccountdlgdecl.h knewbankdlgdecl.h knewequityentrydecl.h knewfiledlgdecl.h knewinvestmentwizarddecl.h knewloanwizarddecl.h konlinequoteconfigurationdecl.h kreconciledlgdecl.h kreportconfigurationdecl.h ksecuritylisteditordecl.h ksplittransactiondlgdecl.h kupdatestockpricedlgdecl.h mymoneyqifprofileeditordecl.h kmymoneyfileinfodlgdecl.h kselectdatabasedlgdecl.h kpayeereassigndlgdecl.h kcategoryreassigndlgdecl.h knewbudgetdlgdecl.cpp knewbudgetdlgdecl.h kselecttransactionsdlgdecl.cpp kselecttransactionsdlgdecl.h kconfirmmanualenterdlgdecl.h kloadtemplatedlgdecl.cpp kloadtemplatedlgdecl.h +DISTCLEANFILES= kaccountselectdlgdecl.cpp kbackupdlgdecl.cpp kchooseimportexportdlgdecl.cpp kcsvprogressdlgdecl.cpp kcurrencycalculatordecl.cpp kcurrencyeditdlgdecl.cpp keditequityentrydecl.cpp keditscheduledlgdecl.cpp kendingbalancedlgdecl.cpp kenterscheduledlgdecl.cpp kequitypriceupdatedlgdecl.cpp kexportdlgdecl.cpp kfindtransactiondlgdecl.cpp kgncimportoptionsdlgdecl.cpp kimportdlgdecl.cpp kmymoneypricedlgdecl.cpp knewaccountdlgdecl.cpp knewbankdlgdecl.cpp knewequityentrydecl.cpp knewfiledlgdecl.cpp knewinvestmentwizarddecl.cpp knewloanwizarddecl.cpp konlinequoteconfigurationdecl.cpp kreconciledlgdecl.cpp kreportconfigurationdecl.cpp ksecuritylisteditordecl.cpp ksplittransactiondlgdecl.cpp kupdatestockpricedlgdecl.cpp mymoneyqifprofileeditordecl.cpp kpayeereassigndlgdecl.cpp kcategoryreassigndlgdecl.cpp tdeconfirmmanualenterdlgdecl.cpp kaccountselectdlgdecl.h kbackupdlgdecl.h kchooseimportexportdlgdecl.h kcsvprogressdlgdecl.h kcurrencycalculatordecl.h kcurrencyeditdlgdecl.h keditequityentrydecl.h keditscheduledlgdecl.h kendingbalancedlgdecl.h kenterscheduledlgdecl.h kequitypriceupdatedlgdecl.h kexportdlgdecl.h kfindtransactiondlgdecl.h kgncimportoptionsdlgdecl.h kimportdlgdecl.h kmymoneypricedlgdecl.h knewaccountdlgdecl.h knewbankdlgdecl.h knewequityentrydecl.h knewfiledlgdecl.h knewinvestmentwizarddecl.h knewloanwizarddecl.h konlinequoteconfigurationdecl.h kreconciledlgdecl.h kreportconfigurationdecl.h ksecuritylisteditordecl.h ksplittransactiondlgdecl.h kupdatestockpricedlgdecl.h mymoneyqifprofileeditordecl.h kmymoneyfileinfodlgdecl.h kselectdatabasedlgdecl.h kpayeereassigndlgdecl.h kcategoryreassigndlgdecl.h knewbudgetdlgdecl.cpp knewbudgetdlgdecl.h kselecttransactionsdlgdecl.cpp kselecttransactionsdlgdecl.h tdeconfirmmanualenterdlgdecl.h kloadtemplatedlgdecl.cpp kloadtemplatedlgdecl.h -noinst_HEADERS = keditscheduledlg.h kaccountselectdlg.h kbackupdlg.h kchooseimportexportdlg.h kcsvprogressdlg.h kcurrencyeditdlg.h keditequityentrydlg.h keditloanwizard.h kendingbalancedlg.h kenterscheduledlg.h kequitypriceupdatedlg.h kexportdlg.h kfindtransactiondlg.h kgncimportoptionsdlg.h kimportdlg.h kmymoneypricedlg.h knewaccountdlg.h knewbankdlg.h knewequityentrydlg.h knewfiledlg.h knewinvestmentwizard.h knewloanwizard.h konlinequoteconfigurationdlg.h krecentfileitem.h kreconciledlg.h kreportconfigurationfilterdlg.h ksecuritylisteditor.h ksplittransactiondlg.h kstartdlg.h kupdatestockpricedlg.h mymoneyqifprofileeditor.h kgncpricesourcedlg.h kmymoneyfileinfodlg.h kselectdatabasedlg.h kpayeereassigndlg.h kcategoryreassigndlg.h knewbudgetdlg.h kselecttransactionsdlg.h kmergetransactionsdlg.h kconfirmmanualenterdlg.h investactivities.h kbalancechartdlg.h kloadtemplatedlg.h kmymoneysplittable.h kgpgkeyselectiondlg.h transactionmatcher.h kbalancewarning.h +noinst_HEADERS = keditscheduledlg.h kaccountselectdlg.h kbackupdlg.h kchooseimportexportdlg.h kcsvprogressdlg.h kcurrencyeditdlg.h keditequityentrydlg.h keditloanwizard.h kendingbalancedlg.h kenterscheduledlg.h kequitypriceupdatedlg.h kexportdlg.h kfindtransactiondlg.h kgncimportoptionsdlg.h kimportdlg.h kmymoneypricedlg.h knewaccountdlg.h knewbankdlg.h knewequityentrydlg.h knewfiledlg.h knewinvestmentwizard.h knewloanwizard.h konlinequoteconfigurationdlg.h krecentfileitem.h kreconciledlg.h kreportconfigurationfilterdlg.h ksecuritylisteditor.h ksplittransactiondlg.h kstartdlg.h kupdatestockpricedlg.h mymoneyqifprofileeditor.h kgncpricesourcedlg.h kmymoneyfileinfodlg.h kselectdatabasedlg.h kpayeereassigndlg.h kcategoryreassigndlg.h knewbudgetdlg.h kselecttransactionsdlg.h kmergetransactionsdlg.h tdeconfirmmanualenterdlg.h investactivities.h kbalancechartdlg.h kloadtemplatedlg.h kmymoneysplittable.h kgpgkeyselectiondlg.h transactionmatcher.h kbalancewarning.h instdir=$(includedir)/kmymoney inst_HEADERS = transactioneditor.h investtransactioneditor.h kcurrencycalculator.h diff --git a/kmymoney2/dialogs/kaccountselectdlg.cpp b/kmymoney2/dialogs/kaccountselectdlg.cpp index 4b04752..42987ba 100644 --- a/kmymoney2/dialogs/kaccountselectdlg.cpp +++ b/kmymoney2/dialogs/kaccountselectdlg.cpp @@ -29,7 +29,7 @@ // KDE Includes #include -#include +#include #include #include #include diff --git a/kmymoney2/dialogs/kbackupdlg.cpp b/kmymoney2/dialogs/kbackupdlg.cpp index 0dadbe6..d931f90 100644 --- a/kmymoney2/dialogs/kbackupdlg.cpp +++ b/kmymoney2/dialogs/kbackupdlg.cpp @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include #include diff --git a/kmymoney2/dialogs/kchooseimportexportdlg.cpp b/kmymoney2/dialogs/kchooseimportexportdlg.cpp index 5674205..69741ae 100644 --- a/kmymoney2/dialogs/kchooseimportexportdlg.cpp +++ b/kmymoney2/dialogs/kchooseimportexportdlg.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include "kchooseimportexportdlg.h" diff --git a/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp b/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp deleted file mode 100644 index 966ed55..0000000 --- a/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp +++ /dev/null @@ -1,202 +0,0 @@ -/*************************************************************************** - kconfirmmanualenterdlg.cpp - ------------------- - begin : Mon Apr 9 2007 - copyright : (C) 2007 by Thomas Baumgart - email : Thomas Baumgart - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -// ---------------------------------------------------------------------------- -// QT Includes - -#include - -// ---------------------------------------------------------------------------- -// KDE Includes - -#include -#include -#include -#include -#include - -// ---------------------------------------------------------------------------- -// Project Includes - -#include -#include -#include "kconfirmmanualenterdlg.h" - -KConfirmManualEnterDlg::KConfirmManualEnterDlg(const MyMoneySchedule& schedule, TQWidget* parent, const char* name) : - KConfirmManualEnterDlgDecl(parent, name) -{ - buttonOk->setGuiItem(KStdGuiItem::ok()); - buttonCancel->setGuiItem(KStdGuiItem::cancel()); - m_onceRadio->setChecked(true); - m_onceRadio->setFocus(); - - if(schedule.type() == MyMoneySchedule::TYPE_LOANPAYMENT) { - m_setRadio->setEnabled(false); - m_discardRadio->setEnabled(false); - } - -} - -void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, const MyMoneyTransaction& tn) -{ - TQString messageDetail(""); - MyMoneyFile* file = MyMoneyFile::instance(); - int noItemsChanged=0; - -#if 0 - // if no schedule is present, we cannot enter it - if(m_schedule.id().isEmpty()) - return false; - - if (m_fromAccountId == m_toAccountId) - { - KMessageBox::error(this, i18n("Account and transfer account are the same. Please change one.")); - m_from->setFocus(); - return false; - } - - if (!checkDateInPeriod(m_date->date())) - return false; -#endif - - try - { - TQString po, pn; - if(to.splits()[0].payeeId()) - po = file->payee(to.splits()[0].payeeId()).name(); - if(tn.splits()[0].payeeId()) - pn = file->payee(tn.splits()[0].payeeId()).name(); - - if (po != pn) { - noItemsChanged++; - messageDetail += i18n("Payee changed.
   Old: %1, New: %2

").arg(po).arg(pn); - } -#if 0 - if ( (m_schedule.type() == MyMoneySchedule::TYPE_TRANSFER || - m_schedule.type() == MyMoneySchedule::TYPE_BILL) && - m_from->currentText() != m_schedule.account().name()) - { - noItemsChanged++; - messageDetail += i18n("Account changed. Old: \"%1\", New: \"%2\"") - .arg(m_schedule.account().name()).arg(m_from->currentText()) + TQString("\n"); - } - - if ( m_schedule.type() == MyMoneySchedule::TYPE_DEPOSIT && - m_to->currentText() != m_schedule.account().name()) - { - noItemsChanged++; - messageDetail += i18n("Account changed. Old: \"%1\", New: \"%2\"") - .arg(m_schedule.account().name()).arg(m_to->currentText()) + TQString("\n"); - } -#endif - - if(to.splits()[0].accountId() != tn.splits()[0].accountId()) { - noItemsChanged++; - messageDetail += i18n("Account changed.
   Old: %1, New: %2

") - .arg(file->account(to.splits()[0].accountId()).name()) - .arg(file->account(tn.splits()[0].accountId()).name()); - } - - if(file->isTransfer(to) && file->isTransfer(tn)) { - if(to.splits()[1].accountId() != tn.splits()[1].accountId()) { - noItemsChanged++; - messageDetail += i18n("Transfer account changed.
   Old: %1, New: %2

") - .arg(file->account(to.splits()[1].accountId()).name()) - .arg(file->account(tn.splits()[1].accountId()).name()); - } - } else { - TQString co, cn; - switch(to.splitCount()) { - default: - co = i18n("Split transaction (category replacement)", "Split transaction"); - break; - case 2: - co = file->accountToCategory(to.splits()[1].accountId()); - case 1: - break; - } - - switch(tn.splitCount()) { - default: - cn = i18n("Split transaction (category replacement)", "Split transaction"); - break; - case 2: - cn = file->accountToCategory(tn.splits()[1].accountId()); - case 1: - break; - } - if (co != cn) - { - noItemsChanged++; - messageDetail += i18n("Category changed.
   Old: %1, New: %2

").arg(co).arg(cn); - } - } - - TQString mo, mn; - mo = to.splits()[0].memo(); - mn = tn.splits()[0].memo(); - if(mo.isEmpty()) - mo = TQString("")+i18n("empty")+TQString(""); - if(mn.isEmpty()) - mn = TQString("")+i18n("empty")+TQString(""); - if (mo != mn) - { - noItemsChanged++; - messageDetail += i18n("Memo changed.
   Old: %1, New: %2

").arg(mo).arg(mn); - } - - const MyMoneySecurity& sec = MyMoneyFile::instance()->security(to.commodity()); - MyMoneyMoney ao, an; - ao = to.splits()[0].value(); - an = tn.splits()[0].value(); - if (ao != an) { - noItemsChanged++; - messageDetail += i18n("Amount changed.
   Old: %1, New: %2

") - .arg(ao.formatMoney(sec.smallestAccountFraction())).arg(an.formatMoney(sec.smallestAccountFraction())); - } - - MyMoneySplit::reconcileFlagE fo, fn; - fo = to.splits()[0].reconcileFlag(); - fn = tn.splits()[0].reconcileFlag(); - if(fo != fn) { - noItemsChanged++; - messageDetail += i18n("Reconciliation flag changed.
   Old: %1, New: %2

") - .arg(KMyMoneyUtils::reconcileStateToString(fo, true)) - .arg(KMyMoneyUtils::reconcileStateToString(fn, true)); - } - } - catch (MyMoneyException *e) - { - KMessageBox::error(this, i18n("Fatal error in determining data: ") + e->what()); - delete e; - } - - messageDetail += ""; - m_details->setText(messageDetail); - return; -} - -KConfirmManualEnterDlg::Action KConfirmManualEnterDlg::action(void) const -{ - if(m_discardRadio->isChecked()) - return UseOriginal; - if(m_setRadio->isChecked()) - return ModifyAlways; - return ModifyOnce; -} - -#include "kconfirmmanualenterdlg.moc" diff --git a/kmymoney2/dialogs/kconfirmmanualenterdlg.h b/kmymoney2/dialogs/kconfirmmanualenterdlg.h deleted file mode 100644 index 2a668b3..0000000 --- a/kmymoney2/dialogs/kconfirmmanualenterdlg.h +++ /dev/null @@ -1,61 +0,0 @@ -/*************************************************************************** - kconfirmmanualenterdlg.h - ------------------- - begin : Mon Apr 9 2007 - copyright : (C) 2007 by Thomas Baumgart - email : Thomas Baumgart - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#ifndef KCONFIRMMANUALENTERDLG_H -#define KCONFIRMMANUALENTERDLG_H - -// ---------------------------------------------------------------------------- -// QT Includes - -// ---------------------------------------------------------------------------- -// KDE Includes - -// ---------------------------------------------------------------------------- -// Project Includes - -// ---------------------------------------------------------------------------- -// Project Includes - -#include -#include "../dialogs/kconfirmmanualenterdlgdecl.h" - -class KConfirmManualEnterDlg : public KConfirmManualEnterDlgDecl -{ - Q_OBJECT - -public: - KConfirmManualEnterDlg(const MyMoneySchedule& schedule, TQWidget* parent = 0, const char* name = 0); - - typedef enum { - UseOriginal = 0, - ModifyOnce, - ModifyAlways - } Action; - - /** - * setup the dialog for the difference between the original transaction - * @a to and the transaction to be entered @a tn. - */ - void loadTransactions(const MyMoneyTransaction& to, const MyMoneyTransaction& tn); - - /** - * Returns information about what to do with the transaction - */ - Action action(void) const; -}; - -#endif // KCONFIRMMANUALENTERDLG_H diff --git a/kmymoney2/dialogs/kconfirmmanualenterdlgdecl.ui b/kmymoney2/dialogs/kconfirmmanualenterdlgdecl.ui deleted file mode 100644 index a605fdb..0000000 --- a/kmymoney2/dialogs/kconfirmmanualenterdlgdecl.ui +++ /dev/null @@ -1,160 +0,0 @@ - -KConfirmManualEnterDlgDecl - - - KConfirmManualEnterDlgDecl - - - - 0 - 0 - 578 - 384 - - - - Confirm Manual Enter - - - true - - - - unnamed - - - 11 - - - 6 - - - - m_message - - - The following changes have been made to the transaction data: - - - RichText - - - - - m_details - - - true - - - - - buttonGroup1 - - - - - - - Please choose what you wish to do with the above changes - - - 1 - - - - unnamed - - - - m_discardRadio - - - Discard the changes and enter the original transaction into the register. - - - - - m_onceRadio - - - Enter these new values this one time, for this occurence only. - - - - - m_setRadio - - - Set all further occurences in this schedule to be these values. - - - - - - - layout3 - - - - unnamed - - - - Horizontal Spacing2 - - - Horizontal - - - Expanding - - - - 180 - 16 - - - - - - buttonOk - - - OK - - - true - - - true - - - - - buttonCancel - - - Cancel - - - - - - - - - buttonOk - clicked() - KConfirmManualEnterDlgDecl - accept() - - - buttonCancel - clicked() - KConfirmManualEnterDlgDecl - reject() - - - - diff --git a/kmymoney2/dialogs/kcsvprogressdlg.cpp b/kmymoney2/dialogs/kcsvprogressdlg.cpp index 05d8f55..1337715 100644 --- a/kmymoney2/dialogs/kcsvprogressdlg.cpp +++ b/kmymoney2/dialogs/kcsvprogressdlg.cpp @@ -34,11 +34,11 @@ // ---------------------------------------------------------------------------- // KDE Includes -#include +#include #include #include #include -#include +#include // ---------------------------------------------------------------------------- // Project Includes @@ -214,11 +214,11 @@ void KCsvProgressDlg::slotFileTextChanged(const TQString& text) void KCsvProgressDlg::readConfig(void) { - TDEConfig *kconfig = TDEGlobal::config(); - kconfig->setGroup("Last Use Settings"); - m_kmymoneydateStart->setDate(kconfig->readDateTimeEntry("KCsvProgressDlg_StartDate").date()); - m_kmymoneydateEnd->setDate(kconfig->readDateTimeEntry("KCsvProgressDlg_EndDate").date()); - m_qlineeditFile->setText(kconfig->readEntry("KCsvProgressDlg_LastFile", "")); + TDEConfig *tdeconfig = TDEGlobal::config(); + tdeconfig->setGroup("Last Use Settings"); + m_kmymoneydateStart->setDate(tdeconfig->readDateTimeEntry("KCsvProgressDlg_StartDate").date()); + m_kmymoneydateEnd->setDate(tdeconfig->readDateTimeEntry("KCsvProgressDlg_EndDate").date()); + m_qlineeditFile->setText(tdeconfig->readEntry("KCsvProgressDlg_LastFile", "")); if (m_qlineeditFile->text().length()>=1) m_qbuttonRun->setEnabled(true); else @@ -227,12 +227,12 @@ void KCsvProgressDlg::readConfig(void) void KCsvProgressDlg::writeConfig(void) { - TDEConfig *kconfig = TDEGlobal::config(); - kconfig->setGroup("Last Use Settings"); - kconfig->writeEntry("KCsvProgressDlg_LastFile", m_qlineeditFile->text()); - kconfig->writeEntry("KCsvProgressDlg_StartDate", TQDateTime(m_kmymoneydateStart->date())); - kconfig->writeEntry("KCsvProgressDlg_EndDate", TQDateTime(m_kmymoneydateEnd->date())); - kconfig->sync(); + TDEConfig *tdeconfig = TDEGlobal::config(); + tdeconfig->setGroup("Last Use Settings"); + tdeconfig->writeEntry("KCsvProgressDlg_LastFile", m_qlineeditFile->text()); + tdeconfig->writeEntry("KCsvProgressDlg_StartDate", TQDateTime(m_kmymoneydateStart->date())); + tdeconfig->writeEntry("KCsvProgressDlg_EndDate", TQDateTime(m_kmymoneydateEnd->date())); + tdeconfig->sync(); } /** Update the progress bar, and update the transaction count indicator. */ diff --git a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp index 409c15e..3af2912 100644 --- a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp +++ b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp @@ -43,7 +43,7 @@ #include #include #include -#include +#include // ---------------------------------------------------------------------------- // Project Includes diff --git a/kmymoney2/dialogs/kexportdlg.cpp b/kmymoney2/dialogs/kexportdlg.cpp index 51ce250..9a89a95 100644 --- a/kmymoney2/dialogs/kexportdlg.cpp +++ b/kmymoney2/dialogs/kexportdlg.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include @@ -156,28 +156,28 @@ void KExportDlg::slotOkClicked() void KExportDlg::readConfig(void) { - TDEConfig *kconfig = TDEGlobal::config(); - kconfig->setGroup("Last Use Settings"); - m_qlineeditFile->setText(kconfig->readEntry("KExportDlg_LastFile")); - m_qcheckboxAccount->setChecked(kconfig->readBoolEntry("KExportDlg_AccountOpt", true)); - m_qcheckboxCategories->setChecked(kconfig->readBoolEntry("KExportDlg_CatOpt", true)); - m_kmymoneydateStart->setDate(kconfig->readDateTimeEntry("KExportDlg_StartDate").date()); - m_kmymoneydateEnd->setDate(kconfig->readDateTimeEntry("KExportDlg_EndDate").date()); + TDEConfig *tdeconfig = TDEGlobal::config(); + tdeconfig->setGroup("Last Use Settings"); + m_qlineeditFile->setText(tdeconfig->readEntry("KExportDlg_LastFile")); + m_qcheckboxAccount->setChecked(tdeconfig->readBoolEntry("KExportDlg_AccountOpt", true)); + m_qcheckboxCategories->setChecked(tdeconfig->readBoolEntry("KExportDlg_CatOpt", true)); + m_kmymoneydateStart->setDate(tdeconfig->readDateTimeEntry("KExportDlg_StartDate").date()); + m_kmymoneydateEnd->setDate(tdeconfig->readDateTimeEntry("KExportDlg_EndDate").date()); // m_profileComboBox is loaded in loadProfiles(), so we don't worry here // m_accountComboBox is loaded in loadAccounts(), so we don't worry here } void KExportDlg::writeConfig(void) { - TDEConfig *kconfig = TDEGlobal::config(); - kconfig->setGroup("Last Use Settings"); - kconfig->writeEntry("KExportDlg_LastFile", m_qlineeditFile->text()); - kconfig->writeEntry("KExportDlg_AccountOpt", m_qcheckboxAccount->isChecked()); - kconfig->writeEntry("KExportDlg_CatOpt", m_qcheckboxCategories->isChecked()); - kconfig->writeEntry("KExportDlg_StartDate", TQDateTime(m_kmymoneydateStart->date())); - kconfig->writeEntry("KExportDlg_EndDate", TQDateTime(m_kmymoneydateEnd->date())); - kconfig->writeEntry("KExportDlg_LastProfile", m_profileComboBox->currentText()); - kconfig->sync(); + TDEConfig *tdeconfig = TDEGlobal::config(); + tdeconfig->setGroup("Last Use Settings"); + tdeconfig->writeEntry("KExportDlg_LastFile", m_qlineeditFile->text()); + tdeconfig->writeEntry("KExportDlg_AccountOpt", m_qcheckboxAccount->isChecked()); + tdeconfig->writeEntry("KExportDlg_CatOpt", m_qcheckboxCategories->isChecked()); + tdeconfig->writeEntry("KExportDlg_StartDate", TQDateTime(m_kmymoneydateStart->date())); + tdeconfig->writeEntry("KExportDlg_EndDate", TQDateTime(m_kmymoneydateEnd->date())); + tdeconfig->writeEntry("KExportDlg_LastProfile", m_profileComboBox->currentText()); + tdeconfig->sync(); } void KExportDlg::checkData(const TQString& accountId) diff --git a/kmymoney2/dialogs/kimportdlg.cpp b/kmymoney2/dialogs/kimportdlg.cpp index bfa44be..874469f 100644 --- a/kmymoney2/dialogs/kimportdlg.cpp +++ b/kmymoney2/dialogs/kimportdlg.cpp @@ -36,11 +36,11 @@ #include #include #include -#include +#include #include #include #include -#include +#include #include // ---------------------------------------------------------------------------- @@ -130,18 +130,18 @@ void KImportDlg::slotOkClicked() void KImportDlg::readConfig(void) { - TDEConfig *kconfig = TDEGlobal::config(); - kconfig->setGroup("Last Use Settings"); - m_qlineeditFile->setText(kconfig->readEntry("KImportDlg_LastFile")); + TDEConfig *tdeconfig = TDEGlobal::config(); + tdeconfig->setGroup("Last Use Settings"); + m_qlineeditFile->setText(tdeconfig->readEntry("KImportDlg_LastFile")); } void KImportDlg::writeConfig(void) { - TDEConfig *kconfig = TDEGlobal::config(); - kconfig->setGroup("Last Use Settings"); - kconfig->writeEntry("KImportDlg_LastFile", m_qlineeditFile->text()); - kconfig->writeEntry("KImportDlg_LastProfile", m_profileComboBox->currentText()); - kconfig->sync(); + TDEConfig *tdeconfig = TDEGlobal::config(); + tdeconfig->setGroup("Last Use Settings"); + tdeconfig->writeEntry("KImportDlg_LastFile", m_qlineeditFile->text()); + tdeconfig->writeEntry("KImportDlg_LastProfile", m_profileComboBox->currentText()); + tdeconfig->sync(); } /** Make sure the text input is ok */ diff --git a/kmymoney2/dialogs/ksplittransactiondlg.cpp b/kmymoney2/dialogs/ksplittransactiondlg.cpp index d8c4f67..bf30d61 100644 --- a/kmymoney2/dialogs/ksplittransactiondlg.cpp +++ b/kmymoney2/dialogs/ksplittransactiondlg.cpp @@ -36,7 +36,7 @@ // KDE Includes #include -#include +#include #include #include #include diff --git a/kmymoney2/dialogs/kstartdlg.cpp b/kmymoney2/dialogs/kstartdlg.cpp index c4dc756..f6f1460 100644 --- a/kmymoney2/dialogs/kstartdlg.cpp +++ b/kmymoney2/dialogs/kstartdlg.cpp @@ -34,13 +34,13 @@ #include #include -#include +#include #include -#include +#include #include #include -#include -#include +#include +#include #include // ---------------------------------------------------------------------------- diff --git a/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp b/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp index 347a7f7..742b32c 100644 --- a/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp +++ b/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp @@ -30,7 +30,7 @@ #include "kdecompat.h" #include #include -#include +#include #include #include #include diff --git a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp index e3efec6..efb197d 100644 --- a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp +++ b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp @@ -24,7 +24,7 @@ // ---------------------------------------------------------------------------- // KDE Includes -#include +#include #include #include #include diff --git a/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp b/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp new file mode 100644 index 0000000..a420de5 --- /dev/null +++ b/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp @@ -0,0 +1,202 @@ +/*************************************************************************** + tdeconfirmmanualenterdlg.cpp + ------------------- + begin : Mon Apr 9 2007 + copyright : (C) 2007 by Thomas Baumgart + email : Thomas Baumgart + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +// ---------------------------------------------------------------------------- +// QT Includes + +#include + +// ---------------------------------------------------------------------------- +// KDE Includes + +#include +#include +#include +#include +#include + +// ---------------------------------------------------------------------------- +// Project Includes + +#include +#include +#include "tdeconfirmmanualenterdlg.h" + +KConfirmManualEnterDlg::KConfirmManualEnterDlg(const MyMoneySchedule& schedule, TQWidget* parent, const char* name) : + KConfirmManualEnterDlgDecl(parent, name) +{ + buttonOk->setGuiItem(KStdGuiItem::ok()); + buttonCancel->setGuiItem(KStdGuiItem::cancel()); + m_onceRadio->setChecked(true); + m_onceRadio->setFocus(); + + if(schedule.type() == MyMoneySchedule::TYPE_LOANPAYMENT) { + m_setRadio->setEnabled(false); + m_discardRadio->setEnabled(false); + } + +} + +void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, const MyMoneyTransaction& tn) +{ + TQString messageDetail(""); + MyMoneyFile* file = MyMoneyFile::instance(); + int noItemsChanged=0; + +#if 0 + // if no schedule is present, we cannot enter it + if(m_schedule.id().isEmpty()) + return false; + + if (m_fromAccountId == m_toAccountId) + { + KMessageBox::error(this, i18n("Account and transfer account are the same. Please change one.")); + m_from->setFocus(); + return false; + } + + if (!checkDateInPeriod(m_date->date())) + return false; +#endif + + try + { + TQString po, pn; + if(to.splits()[0].payeeId()) + po = file->payee(to.splits()[0].payeeId()).name(); + if(tn.splits()[0].payeeId()) + pn = file->payee(tn.splits()[0].payeeId()).name(); + + if (po != pn) { + noItemsChanged++; + messageDetail += i18n("Payee changed.
   Old: %1, New: %2

").arg(po).arg(pn); + } +#if 0 + if ( (m_schedule.type() == MyMoneySchedule::TYPE_TRANSFER || + m_schedule.type() == MyMoneySchedule::TYPE_BILL) && + m_from->currentText() != m_schedule.account().name()) + { + noItemsChanged++; + messageDetail += i18n("Account changed. Old: \"%1\", New: \"%2\"") + .arg(m_schedule.account().name()).arg(m_from->currentText()) + TQString("\n"); + } + + if ( m_schedule.type() == MyMoneySchedule::TYPE_DEPOSIT && + m_to->currentText() != m_schedule.account().name()) + { + noItemsChanged++; + messageDetail += i18n("Account changed. Old: \"%1\", New: \"%2\"") + .arg(m_schedule.account().name()).arg(m_to->currentText()) + TQString("\n"); + } +#endif + + if(to.splits()[0].accountId() != tn.splits()[0].accountId()) { + noItemsChanged++; + messageDetail += i18n("Account changed.
   Old: %1, New: %2

") + .arg(file->account(to.splits()[0].accountId()).name()) + .arg(file->account(tn.splits()[0].accountId()).name()); + } + + if(file->isTransfer(to) && file->isTransfer(tn)) { + if(to.splits()[1].accountId() != tn.splits()[1].accountId()) { + noItemsChanged++; + messageDetail += i18n("Transfer account changed.
   Old: %1, New: %2

") + .arg(file->account(to.splits()[1].accountId()).name()) + .arg(file->account(tn.splits()[1].accountId()).name()); + } + } else { + TQString co, cn; + switch(to.splitCount()) { + default: + co = i18n("Split transaction (category replacement)", "Split transaction"); + break; + case 2: + co = file->accountToCategory(to.splits()[1].accountId()); + case 1: + break; + } + + switch(tn.splitCount()) { + default: + cn = i18n("Split transaction (category replacement)", "Split transaction"); + break; + case 2: + cn = file->accountToCategory(tn.splits()[1].accountId()); + case 1: + break; + } + if (co != cn) + { + noItemsChanged++; + messageDetail += i18n("Category changed.
   Old: %1, New: %2

").arg(co).arg(cn); + } + } + + TQString mo, mn; + mo = to.splits()[0].memo(); + mn = tn.splits()[0].memo(); + if(mo.isEmpty()) + mo = TQString("")+i18n("empty")+TQString(""); + if(mn.isEmpty()) + mn = TQString("")+i18n("empty")+TQString(""); + if (mo != mn) + { + noItemsChanged++; + messageDetail += i18n("Memo changed.
   Old: %1, New: %2

").arg(mo).arg(mn); + } + + const MyMoneySecurity& sec = MyMoneyFile::instance()->security(to.commodity()); + MyMoneyMoney ao, an; + ao = to.splits()[0].value(); + an = tn.splits()[0].value(); + if (ao != an) { + noItemsChanged++; + messageDetail += i18n("Amount changed.
   Old: %1, New: %2

") + .arg(ao.formatMoney(sec.smallestAccountFraction())).arg(an.formatMoney(sec.smallestAccountFraction())); + } + + MyMoneySplit::reconcileFlagE fo, fn; + fo = to.splits()[0].reconcileFlag(); + fn = tn.splits()[0].reconcileFlag(); + if(fo != fn) { + noItemsChanged++; + messageDetail += i18n("Reconciliation flag changed.
   Old: %1, New: %2

") + .arg(KMyMoneyUtils::reconcileStateToString(fo, true)) + .arg(KMyMoneyUtils::reconcileStateToString(fn, true)); + } + } + catch (MyMoneyException *e) + { + KMessageBox::error(this, i18n("Fatal error in determining data: ") + e->what()); + delete e; + } + + messageDetail += ""; + m_details->setText(messageDetail); + return; +} + +KConfirmManualEnterDlg::Action KConfirmManualEnterDlg::action(void) const +{ + if(m_discardRadio->isChecked()) + return UseOriginal; + if(m_setRadio->isChecked()) + return ModifyAlways; + return ModifyOnce; +} + +#include "tdeconfirmmanualenterdlg.moc" diff --git a/kmymoney2/dialogs/tdeconfirmmanualenterdlg.h b/kmymoney2/dialogs/tdeconfirmmanualenterdlg.h new file mode 100644 index 0000000..2e878a3 --- /dev/null +++ b/kmymoney2/dialogs/tdeconfirmmanualenterdlg.h @@ -0,0 +1,61 @@ +/*************************************************************************** + tdeconfirmmanualenterdlg.h + ------------------- + begin : Mon Apr 9 2007 + copyright : (C) 2007 by Thomas Baumgart + email : Thomas Baumgart + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KCONFIRMMANUALENTERDLG_H +#define KCONFIRMMANUALENTERDLG_H + +// ---------------------------------------------------------------------------- +// QT Includes + +// ---------------------------------------------------------------------------- +// KDE Includes + +// ---------------------------------------------------------------------------- +// Project Includes + +// ---------------------------------------------------------------------------- +// Project Includes + +#include +#include "../dialogs/tdeconfirmmanualenterdlgdecl.h" + +class KConfirmManualEnterDlg : public KConfirmManualEnterDlgDecl +{ + Q_OBJECT + +public: + KConfirmManualEnterDlg(const MyMoneySchedule& schedule, TQWidget* parent = 0, const char* name = 0); + + typedef enum { + UseOriginal = 0, + ModifyOnce, + ModifyAlways + } Action; + + /** + * setup the dialog for the difference between the original transaction + * @a to and the transaction to be entered @a tn. + */ + void loadTransactions(const MyMoneyTransaction& to, const MyMoneyTransaction& tn); + + /** + * Returns information about what to do with the transaction + */ + Action action(void) const; +}; + +#endif // KCONFIRMMANUALENTERDLG_H diff --git a/kmymoney2/dialogs/tdeconfirmmanualenterdlgdecl.ui b/kmymoney2/dialogs/tdeconfirmmanualenterdlgdecl.ui new file mode 100644 index 0000000..a605fdb --- /dev/null +++ b/kmymoney2/dialogs/tdeconfirmmanualenterdlgdecl.ui @@ -0,0 +1,160 @@ + +KConfirmManualEnterDlgDecl + + + KConfirmManualEnterDlgDecl + + + + 0 + 0 + 578 + 384 + + + + Confirm Manual Enter + + + true + + + + unnamed + + + 11 + + + 6 + + + + m_message + + + The following changes have been made to the transaction data: + + + RichText + + + + + m_details + + + true + + + + + buttonGroup1 + + + + + + + Please choose what you wish to do with the above changes + + + 1 + + + + unnamed + + + + m_discardRadio + + + Discard the changes and enter the original transaction into the register. + + + + + m_onceRadio + + + Enter these new values this one time, for this occurence only. + + + + + m_setRadio + + + Set all further occurences in this schedule to be these values. + + + + + + + layout3 + + + + unnamed + + + + Horizontal Spacing2 + + + Horizontal + + + Expanding + + + + 180 + 16 + + + + + + buttonOk + + + OK + + + true + + + true + + + + + buttonCancel + + + Cancel + + + + + + + + + buttonOk + clicked() + KConfirmManualEnterDlgDecl + accept() + + + buttonCancel + clicked() + KConfirmManualEnterDlgDecl + reject() + + + + -- cgit v1.2.1