summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/transactioneditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/transactioneditor.h')
-rw-r--r--kmymoney2/dialogs/transactioneditor.h94
1 files changed, 48 insertions, 46 deletions
diff --git a/kmymoney2/dialogs/transactioneditor.h b/kmymoney2/dialogs/transactioneditor.h
index bf47598..72ecff8 100644
--- a/kmymoney2/dialogs/transactioneditor.h
+++ b/kmymoney2/dialogs/transactioneditor.h
@@ -21,8 +21,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qobject.h>
-#include <qwidgetlist.h>
+#include <tqobject.h>
+#include <tqwidgetlist.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -38,12 +38,13 @@
class KCurrencyExchange;
class KMyMoneyCategory;
-class TransactionEditor : public QObject
+class TransactionEditor : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
TransactionEditor() {}
- TransactionEditor(TransactionEditorContainer* regForm, KMyMoneyRegister::Transaction* item, const KMyMoneyRegister::SelectedTransactions& list, const QDate& lastPostDate);
+ TransactionEditor(TransactionEditorContainer* regForm, KMyMoneyRegister::Transaction* item, const KMyMoneyRegister::SelectedTransactions& list, const TQDate& lastPostDate);
virtual ~TransactionEditor();
/**
@@ -57,12 +58,12 @@ public:
* no account so all will be shown. I have no idea anymore, what I
* tried to say with the first sentence above. :( Maybe this is crap.
*
- * @param tabOrderWidgets QWidgetList which will be filled with the pointers
+ * @param tabOrderWidgets TQWidgetList which will be filled with the pointers
* to the editWidgets in their tab order
* @param account account that is currently shown in the calling ledger view
* @param action default action (defaults to ActionNone).
*/
- void setup(QWidgetList& tabOrderWidgets, const MyMoneyAccount& account = MyMoneyAccount(), KMyMoneyRegister::Action action = KMyMoneyRegister::ActionNone);
+ void setup(TQWidgetList& tabOrderWidgets, const MyMoneyAccount& account = MyMoneyAccount(), KMyMoneyRegister::Action action = KMyMoneyRegister::ActionNone);
/**
* Enter the transactions into the ledger. In case of a newly created
@@ -73,7 +74,7 @@ public:
* (the default) a warning will be displayed when the balance crosses the minimum
* or maximum balance settings for the account.
*/
- virtual bool enterTransactions(QString& newId, bool askForSchedule = true, bool suppressBalanceWarnings = false);
+ virtual bool enterTransactions(TQString& newId, bool askForSchedule = true, bool suppressBalanceWarnings = false);
/**
* This method creates a transaction based on the contents of the current widgets,
@@ -110,7 +111,7 @@ public:
*
* @sa transactionDataSufficient()
*/
- virtual bool isComplete(QString& reason) const = 0;
+ virtual bool isComplete(TQString& reason) const = 0;
/**
* This method returns information if the editor is started with multiple transactions
@@ -130,28 +131,28 @@ public:
* Returns a pointer to the widget that should receive
* the focus after the editor has been started.
*/
- virtual QWidget* firstWidget(void) const = 0;
+ virtual TQWidget* firstWidget(void) const = 0;
/**
* Returns a pointer to a widget by name
*/
- QWidget* haveWidget(const QString& name) const;
+ TQWidget* haveWidget(const TQString& name) const;
void setTransaction(const MyMoneyTransaction& t, const MyMoneySplit& s);
- bool eventFilter(QObject* o, QEvent* e);
+ bool eventFilter(TQObject* o, TQEvent* e);
const MyMoneyAccount& account(void) const { return m_account; }
void clearFinalWidgets(void);
- void addFinalWidget(const QWidget*);
+ void addFinalWidget(const TQWidget*);
public slots:
void slotReloadEditWidgets(void);
/**
- * The default implementation returns QDialog::Rejected
+ * The default implementation returns TQDialog::Rejected
*/
virtual int slotEditSplits(void);
@@ -161,13 +162,13 @@ public slots:
*
* @param id of the account to be used
*/
- void slotUpdateAccount(const QString& id);
+ void slotUpdateAccount(const TQString& id);
protected:
virtual void createEditWidgets(void) = 0;
virtual void setupFinalWidgets(void) = 0;
virtual void loadEditWidgets(KMyMoneyRegister::Action action = KMyMoneyRegister::ActionNone) = 0;
- void setupCategoryWidget(KMyMoneyCategory* category, const QValueList<MyMoneySplit>& splits, QString& categoryId, const char* splitEditSlot, bool allowObjectCreation = true);
+ void setupCategoryWidget(KMyMoneyCategory* category, const TQValueList<MyMoneySplit>& splits, TQString& categoryId, const char* splitEditSlot, bool allowObjectCreation = true);
/**
* This method sets the precision of the value widgets to reflect
@@ -179,7 +180,7 @@ protected:
protected slots:
virtual void slotUpdateButtonState(void);
virtual void slotUpdateAccount(void);
- virtual void slotNumberChanged(const QString&);
+ virtual void slotNumberChanged(const TQString&);
signals:
/**
@@ -207,17 +208,17 @@ signals:
* @param txt The name of the payee to be created
* @param id A connected slot should store the id of the created object in this variable
*/
- void createPayee(const QString& txt, QString& id);
+ void createPayee(const TQString& txt, TQString& id);
/**
* This signal is sent out, when a new category needs to be created
- * Depending on the setting of either a payment or deposit, the parent
+ * Depending on the setting of either a payment or deposit, the tqparent
* account will be preset to Expense or Income.
*
* @param account reference to account info. Will be filled by called slot
- * @param parent reference to parent account
+ * @param tqparent reference to tqparent account
*/
- void createCategory(MyMoneyAccount& account, const MyMoneyAccount& parent);
+ void createCategory(MyMoneyAccount& account, const MyMoneyAccount& tqparent);
/**
* This signal is sent out, when a new security (e.g. stock )needs to be created
@@ -225,9 +226,9 @@ signals:
* will be created.
*
* @param account reference to account info. Will be filled by called slot
- * @param parent reference to parent account
+ * @param tqparent reference to tqparent account
*/
- void createSecurity(MyMoneyAccount& account, const MyMoneyAccount& parent);
+ void createSecurity(MyMoneyAccount& account, const MyMoneyAccount& tqparent);
/**
* Signal is emitted, if any of the widgets enters (@a state equals @a true)
@@ -237,7 +238,7 @@ signals:
*/
void objectCreation(bool state);
- void statusMsg(const QString& txt);
+ void statusMsg(const TQString& txt);
void statusProgress(int cnt, int base);
@@ -246,7 +247,7 @@ signals:
*
* @param date the post date of the newly created transaction
*/
- void lastPostDateUsed(const QDate& date);
+ void lastPostDateUsed(const TQDate& date);
/**
* This signal is sent out, if the user decides to schedule the transaction @a t
@@ -273,22 +274,22 @@ signals:
/**
* This signal is sent out, if any of the balance warning levels
* for @p account has been reached. @p msg contains the message text.
- * @p parent points to the parent widget to be used for the warning message box.
+ * @p tqparent points to the tqparent widget to be used for the warning message box.
*/
- void balanceWarning(QWidget* parent, const MyMoneyAccount& account, const QString& msg);
+ void balanceWarning(TQWidget* tqparent, const MyMoneyAccount& account, const TQString& msg);
protected:
- QValueList<MyMoneySplit> m_splits;
+ TQValueList<MyMoneySplit> m_splits;
KMyMoneyRegister::SelectedTransactions m_transactions;
- QValueList<const QWidget*> m_finalEditWidgets;
+ TQValueList<const TQWidget*> m_finalEditWidgets;
TransactionEditorContainer* m_regForm;
KMyMoneyRegister::Transaction* m_item;
- KMyMoneyRegister::QWidgetContainer m_editWidgets;
+ KMyMoneyRegister::TQWidgetContainer m_editWidgets;
MyMoneyAccount m_account;
MyMoneyTransaction m_transaction;
MyMoneySplit m_split;
- QDate m_lastPostDate;
- QMap<QString, MyMoneyMoney> m_priceInfo;
+ TQDate m_lastPostDate;
+ TQMap<TQString, MyMoneyMoney> m_priceInfo;
KMyMoneyRegister::Action m_initialAction;
bool m_openEditSplits;
};
@@ -297,15 +298,16 @@ protected:
class StdTransactionEditor : public TransactionEditor
{
Q_OBJECT
+ TQ_OBJECT
public:
StdTransactionEditor();
- StdTransactionEditor(TransactionEditorContainer* regForm, KMyMoneyRegister::Transaction* item, const KMyMoneyRegister::SelectedTransactions& list, const QDate& lastPostDate);
+ StdTransactionEditor(TransactionEditorContainer* regForm, KMyMoneyRegister::Transaction* item, const KMyMoneyRegister::SelectedTransactions& list, const TQDate& lastPostDate);
~StdTransactionEditor();
- bool isComplete(QString& reason) const;
- QWidget* firstWidget(void) const;
+ bool isComplete(TQString& reason) const;
+ TQWidget* firstWidget(void) const;
- bool eventFilter(QObject* o, QEvent* e);
+ bool eventFilter(TQObject* o, TQEvent* e);
/**
* This method creates a transaction based on the contents of the current widgets,
@@ -329,18 +331,18 @@ public:
public slots:
int slotEditSplits(void);
- void slotUpdateAmount(const QString&);
+ void slotUpdateAmount(const TQString&);
protected slots:
void slotReloadEditWidgets(void);
- void slotUpdatePayment(const QString&);
- void slotUpdateDeposit(const QString&);
- void slotUpdateCategory(const QString&);
- void slotUpdatePayee(const QString&);
+ void slotUpdatePayment(const TQString&);
+ void slotUpdateDeposit(const TQString&);
+ void slotUpdateCategory(const TQString&);
+ void slotUpdatePayee(const TQString&);
void slotUpdateCashFlow(KMyMoneyRegister::CashFlowDirection);
- void slotCreateCategory(const QString&, QString&);
+ void slotCreateCategory(const TQString&, TQString&);
void slotUpdateAction(int action);
- void slotUpdateAccount(const QString& id);
+ void slotUpdateAccount(const TQString& id);
protected:
/**
@@ -358,17 +360,17 @@ protected:
*/
void loadEditWidgets(KMyMoneyRegister::Action action = KMyMoneyRegister::ActionNone);
- void setupCategoryWidget(QString&);
+ void setupCategoryWidget(TQString&);
void updateAmount(const MyMoneyMoney& value);
- bool isTransfer(const QString& accId1, const QString& accId2) const;
+ bool isTransfer(const TQString& accId1, const TQString& accId2) const;
- void checkPayeeInSplit(MyMoneySplit& s, const QString& payeeId);
+ void checkPayeeInSplit(MyMoneySplit& s, const TQString& payeeId);
/**
* This method fills the editor widgets with the last transaction
* that can be found for payee @a payeeId in the account @a m_account.
*/
- void autoFill(const QString& payeeId);
+ void autoFill(const TQString& payeeId);
/**
* Extracts the amount of the transaction from the widgets depending