summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyaccounttreebase.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneyaccounttreebase.h')
-rw-r--r--kmymoney2/widgets/kmymoneyaccounttreebase.h95
1 files changed, 48 insertions, 47 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccounttreebase.h b/kmymoney2/widgets/kmymoneyaccounttreebase.h
index 4ee6a32..7b27b6a 100644
--- a/kmymoney2/widgets/kmymoneyaccounttreebase.h
+++ b/kmymoney2/widgets/kmymoneyaccounttreebase.h
@@ -21,8 +21,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qtimer.h>
-class QDragObject;
+#include <tqtimer.h>
+class TQDragObject;
// ----------------------------------------------------------------------------
// KDE Includes
@@ -45,8 +45,9 @@ class KMyMoneyAccountTreeBase : public KListView
friend class KMyMoneyAccountTreeBaseItem;
Q_OBJECT
+ TQ_OBJECT
public:
- KMyMoneyAccountTreeBase(QWidget* parent = 0, const char *name = 0);
+ KMyMoneyAccountTreeBase(TQWidget* tqparent = 0, const char *name = 0);
virtual ~KMyMoneyAccountTreeBase();
/**
@@ -54,7 +55,7 @@ public:
*
* @param txt the text to be used in the header
*/
- void setSectionHeader(const QString& txt);
+ void setSectionHeader(const TQString& txt);
/**
* overridden from base class implementation to return a pointer
@@ -73,12 +74,12 @@ public:
void emitValueChanged(void) { emit valueChanged(); };
/**
- * restores the layout from the config file
+ * restores the tqlayout from the config file
* @param group the group to be used from the config file.
* At destruction time, we will use this group name to save
- * the layout.
+ * the tqlayout.
*/
- void restoreLayout(const QString& group);
+ void restoreLayout(const TQString& group);
public slots:
/** autoscroll support */
@@ -88,21 +89,21 @@ public slots:
void slotCollapseAll(void);
protected:
- virtual bool acceptDrag (QDropEvent* event) const;
+ virtual bool acceptDrag (TQDropEvent* event) const;
virtual void startDrag(void);
- const KMyMoneyAccountTreeBaseItem* findItem(const QString& id) const;
+ const KMyMoneyAccountTreeBaseItem* findItem(const TQString& id) const;
/**
* This method checks, if account @p accFrom can be dropped onto
* account @p accTo.
*
* @param accFrom source account
- * @param accTo new parent account for @p accFrom
+ * @param accTo new tqparent account for @p accFrom
* @retval true drop is ok
- * @retval false drop is not ok (@p accTo cannot be parent of @p accFrom)
+ * @retval false drop is not ok (@p accTo cannot be tqparent of @p accFrom)
*/
bool dropAccountOnAccount(const MyMoneyAccount& accFrom, const MyMoneyAccount& accTo) const;
- // virtual void contentsDropEvent(QDropEvent*);
+ // virtual void contentsDropEvent(TQDropEvent*);
/**
* This member counts the connects to the signals
@@ -120,7 +121,7 @@ protected:
*/
void disconnectNotify(const char *);
- void contentsDragMoveEvent( QDragMoveEvent *e );
+ void contentsDragMoveEvent( TQDragMoveEvent *e );
/**
* Reimplemented for internal reasons.
@@ -129,14 +130,14 @@ protected:
*
* The API is unaffected.
*/
- virtual void viewportPaintEvent(QPaintEvent*);
+ virtual void viewportPaintEvent(TQPaintEvent*);
void expandCollapseAll(bool expand);
void queueSort(void);
protected slots:
- void slotObjectDropped(QDropEvent* event, QListViewItem* parent, QListViewItem* after);
+ void slotObjectDropped(TQDropEvent* event, TQListViewItem* tqparent, TQListViewItem* after);
/**
* Select the object pointed to by @p i. This slot emits selectObject signals
@@ -144,9 +145,9 @@ protected slots:
* to deselect current selections. If @p i points to a KMyMoneyAccountTreeItem
* object, it emits selectObject() for this item.
*
- * @param i pointer to QListViewItem of object to be selected
+ * @param i pointer to TQListViewItem of object to be selected
*/
- void slotSelectObject(QListViewItem *i);
+ void slotSelectObject(TQListViewItem *i);
/**
* This slot is connected to the accout list view's contextMenu signal
@@ -154,19 +155,19 @@ protected slots:
* and sends out the necessary signal openContextMenu.
*
* @param lv pointer to KListView
- * @param i pointer to QListViewItem
+ * @param i pointer to TQListViewItem
* @param p position information
*/
- void slotOpenContextMenu(KListView* lv, QListViewItem* i, const QPoint& p);
+ void slotOpenContextMenu(KListView* lv, TQListViewItem* i, const TQPoint& p);
/**
* This slot is connected to the accout list view's executed signal
* and checks if the item pointed to by @p i is either an account or institution
* and sends out the necessary signal openObject.
*
- * @param i pointer to QListViewItem
+ * @param i pointer to TQListViewItem
*/
- void slotOpenObject(QListViewItem* i);
+ void slotOpenObject(TQListViewItem* i);
void slotAutoScroll(void);
@@ -182,18 +183,18 @@ private:
MyMoneySecurity m_baseCurrency;
bool m_accountConnections;
bool m_institutionConnections;
- QTimer m_autoopenTimer;
- QTimer m_autoscrollTimer;
+ TQTimer m_autoopenTimer;
+ TQTimer m_autoscrollTimer;
int m_autoscrollTime;
int m_autoscrollAccel;
- QListViewItem* m_dropItem;
- QRect m_lastDropHighlighter;
+ TQListViewItem* m_dropItem;
+ TQRect m_lastDropHighlighter;
int m_queuedSort;
int m_nameColumn;
int m_typeColumn;
int m_valueColumn;
int m_balanceColumn;
- QString m_configGroup;
+ TQString m_configGroup;
public:
int typeColumn(void) const { return m_typeColumn; }
@@ -237,12 +238,12 @@ signals:
/**
* This signal is emitted, when the user selected to reparent the
- * account @p acc to be a subordinate account of @p parent.
+ * account @p acc to be a subordinate account of @p tqparent.
*
* @param acc const reference to account to be reparented
- * @param parent const reference to new parent account
+ * @param tqparent const reference to new tqparent account
*/
- void reparent(const MyMoneyAccount& acc, const MyMoneyAccount& parent);
+ void reparent(const MyMoneyAccount& acc, const MyMoneyAccount& tqparent);
/**
* This signal is emitted, when the user selected to reparent the
@@ -266,18 +267,18 @@ public:
* Constructor to be used to construct an institution entry
* object.
*
- * @param parent pointer to the KListView object this entry should be
+ * @param tqparent pointer to the KListView object this entry should be
* added to.
* @param institution const reference to MyMoneyInstitution for which
* the KListView entry is constructed
*/
- KMyMoneyAccountTreeBaseItem(KListView *parent, const MyMoneyInstitution& institution);
+ KMyMoneyAccountTreeBaseItem(KListView *tqparent, const MyMoneyInstitution& institution);
/**
* Constructor to be used to construct a standard account entry object (e.g. Asset,
* Liability, etc.).
*
- * @param parent pointer to the KListView object this entry should be
+ * @param tqparent pointer to the KListView object this entry should be
* added to.
* @param account const reference to MyMoneyAccount for which
* the KListView entry is constructed
@@ -286,13 +287,13 @@ public:
* @param name name of the account to be used instead of the one stored with @p account
* If empty, the one stored with @p account will be used. Default: empty
*/
- KMyMoneyAccountTreeBaseItem(KListView *parent, const MyMoneyAccount& account, const MyMoneySecurity& security = MyMoneySecurity(), const QString& name = QString());
+ KMyMoneyAccountTreeBaseItem(KListView *tqparent, const MyMoneyAccount& account, const MyMoneySecurity& security = MyMoneySecurity(), const TQString& name = TQString());
/**
* Constructor to be used to construct an account entry
* object.
*
- * @param parent pointer to the parent KAccountListView object this entry should be
+ * @param tqparent pointer to the tqparent KAccountListView object this entry should be
* added to.
* @param account const reference to MyMoneyAccount for which
* the KListView entry is constructed
@@ -301,7 +302,7 @@ public:
* @param security const reference to the security used to show the value. Usually
* one should pass MyMoneyFile::baseCurrency() here.
*/
- KMyMoneyAccountTreeBaseItem(KMyMoneyAccountTreeBaseItem *parent, const MyMoneyAccount& account, const QValueList<MyMoneyPrice>& price = QValueList<MyMoneyPrice>(), const MyMoneySecurity& security = MyMoneySecurity());
+ KMyMoneyAccountTreeBaseItem(KMyMoneyAccountTreeBaseItem *tqparent, const MyMoneyAccount& account, const TQValueList<MyMoneyPrice>& price = TQValueList<MyMoneyPrice>(), const MyMoneySecurity& security = MyMoneySecurity());
~KMyMoneyAccountTreeBaseItem();
@@ -342,17 +343,17 @@ public:
*
* @return const reference to id of object
*/
- const QString& id(void) const;
+ const TQString& id(void) const;
/**
* Helper method to show the right order
*/
- int compare(QListViewItem* i, int col, bool ascending) const;
+ int compare(TQListViewItem* i, int col, bool ascending) const;
/**
* If o is TRUE all child items are shown initially. The user can
* hide them by clicking the - icon to the left of the item. If
- * o is FALSE, the children of this item are initially hidden.
+ * o is FALSE, the tqchildren of this item are initially hidden.
* The user can show them by clicking the + icon to the left of the item.
*
* Overrides KListViewItem::setOpen() and exchanges the value field
@@ -364,11 +365,11 @@ public:
virtual void setOpen(bool o);
/**
- * This method is re-implemented from QListViewItem::paintCell().
- * Besides the standard implementation, the QPainter is set
+ * This method is re-implemented from TQListViewItem::paintCell().
+ * Besides the standard implementation, the TQPainter is set
* according to the applications settings.
*/
- void paintCell(QPainter *p, const QColorGroup & cg, int column, int width, int align);
+ void paintCell(TQPainter *p, const TQColorGroup & cg, int column, int width, int align);
/**
* Convenience method to return casted pointer
@@ -410,12 +411,12 @@ public:
* by @p item.
*
* @param item pointer to other KMyMoneyAccountTreeItem that
- * should be checked for parent/grand-parenthood of this
+ * should be checked for tqparent/grand-tqparenthood of this
* object
* @retval true @p this object is a decendant of @p item
* @retval false @p this object is no decendant of @p item
*/
- bool isChildOf(const QListViewItem* const item) const;
+ bool isChildOf(const TQListViewItem* const item) const;
/**
* Sets the whole item to be shown with negative colors
@@ -426,7 +427,7 @@ public:
* Sets the text of a given column. @param negative indicates whether it should
* be shown as negative number or not
*/
- void setText( int column, const QString &text, const bool &negative = false );
+ void setText( int column, const TQString &text, const bool &negative = false );
protected:
/**
@@ -446,18 +447,18 @@ protected:
* Computes and returns the current value of the account held by this item.
* This is the same as balance() but in the currency of the view.
* if value() changed since the item has been displayed, updateAccount()
- * will notify the parent.
+ * will notify the tqparent.
* @return value of the account held by this item
*/
MyMoneyMoney value() const;
protected:
MyMoneyMoney m_value;
- QValueList<MyMoneyPrice> m_price;
+ TQValueList<MyMoneyPrice> m_price;
MyMoneySecurity m_security;
MyMoneyMoney m_totalValue;
MyMoneyAccount m_account;
- QMap<int, QColor> m_columnsColor;
+ TQMap<int, TQColor> m_columnsColor;
bool m_negative;
private: