summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/investactivities.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/investactivities.h')
-rw-r--r--kmymoney2/dialogs/investactivities.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kmymoney2/dialogs/investactivities.h b/kmymoney2/dialogs/investactivities.h
index 91b474d..49a33e3 100644
--- a/kmymoney2/dialogs/investactivities.h
+++ b/kmymoney2/dialogs/investactivities.h
@@ -37,7 +37,7 @@ class Activity
public:
virtual MyMoneySplit::investTransactionTypeE type(void) const = 0;
virtual void showWidgets(void) const = 0;
- virtual bool isComplete(QString& reason) const = 0;
+ virtual bool isComplete(TQString& reason) const = 0;
/**
* Create a transaction @p t based on the split @p s0 and the data contained
@@ -47,30 +47,30 @@ public:
*
* @return @p true if creation was successful, @p false otherwise
*/
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency) = 0;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency) = 0;
virtual void preloadAssetAccount(void);
virtual ~Activity() {}
protected:
Activity(InvestTransactionEditor* editor) { m_parent = editor; }
- QWidget* haveWidget(const QString& name) const { return m_parent->haveWidget(name); }
+ TQWidget* haveWidget(const TQString& name) const { return m_parent->haveWidget(name); }
bool haveAssetAccount(void) const;
bool haveFees(bool optional = false) const { return haveCategoryAndAmount("fee-account", "fee-amount", optional); }
bool haveInterest(bool optional = false) const { return haveCategoryAndAmount("interest-account", "interest-amount", optional); }
bool haveShares(void) const;
bool havePrice(void) const;
bool isMultiSelection(void) const { return m_parent->isMultiSelection(); }
- bool createCategorySplits(const MyMoneyTransaction& t, KMyMoneyCategory* cat, kMyMoneyEdit* amount, MyMoneyMoney factor, QValueList<MyMoneySplit>&splits, const QValueList<MyMoneySplit>& osplits ) const;
+ bool createCategorySplits(const MyMoneyTransaction& t, KMyMoneyCategory* cat, kMyMoneyEdit* amount, MyMoneyMoney factor, TQValueList<MyMoneySplit>&splits, const TQValueList<MyMoneySplit>& osplits ) const;
void createAssetAccountSplit(MyMoneySplit& split, const MyMoneySplit& stockSplit) const;
- MyMoneyMoney sumSplits(const MyMoneySplit& s0, const QValueList<MyMoneySplit>& feeSplits, const QValueList<MyMoneySplit>& interestSplits) const;
- bool haveCategoryAndAmount(const QString& category, const QString& amount, bool optional) const;
- void setLabelText(const QString& idx, const QString& txt) const;
+ MyMoneyMoney sumSplits(const MyMoneySplit& s0, const TQValueList<MyMoneySplit>& feeSplits, const TQValueList<MyMoneySplit>& interestSplits) const;
+ bool haveCategoryAndAmount(const TQString& category, const TQString& amount, bool optional) const;
+ void setLabelText(const TQString& idx, const TQString& txt) const;
InvestTransactionEditor::priceModeE priceMode(void) const { return m_parent->priceMode(); }
protected:
InvestTransactionEditor* m_parent;
- QMap<QString, MyMoneyMoney> m_priceInfo;
+ TQMap<TQString, MyMoneyMoney> m_priceInfo;
};
class Buy : public Activity
@@ -80,8 +80,8 @@ public:
virtual ~Buy() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::BuyShares; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
class Sell : public Activity
@@ -91,8 +91,8 @@ public:
virtual ~Sell() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::SellShares; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
class Div : public Activity
@@ -102,8 +102,8 @@ public:
virtual ~Div() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::Dividend; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
class Reinvest : public Activity
@@ -113,8 +113,8 @@ public:
virtual ~Reinvest() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::ReinvestDividend; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
class Add : public Activity
@@ -124,8 +124,8 @@ public:
virtual ~Add() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::AddShares; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
class Remove : public Activity
@@ -135,8 +135,8 @@ public:
virtual ~Remove() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::RemoveShares; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
class Split : public Activity
@@ -146,8 +146,8 @@ public:
virtual ~Split() {}
virtual MyMoneySplit::investTransactionTypeE type(void) const { return MyMoneySplit::SplitShares; }
virtual void showWidgets(void) const;
- virtual bool isComplete(QString& reason) const;
- virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& m_feeSplits, QValueList<MyMoneySplit>& interestSplits, QValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
+ virtual bool isComplete(TQString& reason) const;
+ virtual bool createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& m_feeSplits, TQValueList<MyMoneySplit>& interestSplits, TQValueList<MyMoneySplit>& m_interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency);
};
} // namespace Invest