diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmheaders.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmheaders.h')
-rw-r--r-- | kmail/kmheaders.h | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/kmail/kmheaders.h b/kmail/kmheaders.h index 40487f8d9..bb49a1440 100644 --- a/kmail/kmheaders.h +++ b/kmail/kmheaders.h @@ -12,13 +12,13 @@ using KMail::HeaderItem; #include <kfoldertree.h> // for KPaintInfo #include <kmmsgbase.h> // for KMMsgStatus -#include <qwidget.h> -#include <qstrlist.h> -#include <qmemarray.h> -#include <qmap.h> -#include <qdragobject.h> -#include <qdict.h> -#include <qguardedptr.h> +#include <tqwidget.h> +#include <tqstrlist.h> +#include <tqmemarray.h> +#include <tqmap.h> +#include <tqdragobject.h> +#include <tqdict.h> +#include <tqguardedptr.h> class KMFolder; class KMMessage; @@ -31,9 +31,9 @@ class QPixmap; class QIconSet; class QDateTime; -typedef QPtrList<KMMsgBase> KMMessageList; -typedef QValueList<Q_UINT32> SerNumList; -typedef QMap<int,KMFolder*> KMMenuToFolder; +typedef TQPtrList<KMMsgBase> KMMessageList; +typedef TQValueList<Q_UINT32> SerNumList; +typedef TQMap<int,KMFolder*> KMMenuToFolder; enum NestingPolicy { AlwaysOpen = 0, DefaultOpen, DefaultClosed, OpenUnread }; @@ -52,7 +52,7 @@ class KMHeaders : public KListView friend class ::KMail::HeaderItem; // For easy access to the pixmaps public: - KMHeaders(KMMainWidget *owner, QWidget *parent=0, const char *name=0); + KMHeaders(KMMainWidget *owner, TQWidget *parent=0, const char *name=0); virtual ~KMHeaders(); /** A new folder has been selected update the list of headers shown @@ -72,7 +72,7 @@ public: virtual void setCurrentMsg(int msgId); /** Get a list of all items in the current thread */ - QPtrList<QListViewItem> currentThread() const; + TQPtrList<TQListViewItem> currentThread() const; /** Set all messages in the current thread to status @p status or toggle it, if specified. */ @@ -108,15 +108,15 @@ public: virtual KMMessageList* selectedMsgs(bool toBeDeleted = false); /** Returns the index values of currently selected items */ - QValueList<int> selectedItems(); + TQValueList<int> selectedItems(); /** Returns the sernums of all selected items. */ - QValueList<Q_UINT32> selectedSernums(); + TQValueList<Q_UINT32> selectedSernums(); /** Returns the sernums of all visible (ie. items with expanded parent, not hidden by eg. the quick search) selected items. */ - QValueList<Q_UINT32> selectedVisibleSernums(); + TQValueList<Q_UINT32> selectedVisibleSernums(); /** Returns index of message returned by last getMsg() call */ int indexOfGetMsg (void) const { return getMsgIndex; } @@ -151,7 +151,7 @@ public: virtual void setNestedOverride( bool override ); virtual void setSubjectThreading( bool subjThreading ); /** Double force items to always be open */ - virtual void setOpen ( QListViewItem *, bool ); + virtual void setOpen ( TQListViewItem *, bool ); NestingPolicy getNestingPolicy() const { return nestingPolicy; } /** Returns true if the current header list is threaded. */ @@ -163,33 +163,33 @@ public: is unset. */ virtual int findUnread(bool findNext, int startAt=-1, bool onlyNew = false, bool acceptCurrent = false); - void highlightMessage(QListViewItem*, bool markitread); + void highlightMessage(TQListViewItem*, bool markitread); void highlightCurrentThread(); /** return a string relativ to the current time */ - static QString fancyDate( time_t otime ); + static TQString fancyDate( time_t otime ); bool noRepaint; // filter events for popup - bool eventFilter ( QObject *o, QEvent *e ); + bool eventFilter ( TQObject *o, TQEvent *e ); /** gets the message represented by the item as a KMMsgBase. */ - const KMMsgBase * getMsgBaseForItem( const QListViewItem *item ) const; + const KMMsgBase * getMsgBaseForItem( const TQListViewItem *item ) const; // accessors - QFont newFont() const { return mNewFont; } - QFont unreadFont() const { return mUnreadFont; } - QFont importantFont() const { return mImportantFont; } - QFont todoFont() const { return mTodoFont; } - QFont dateFont() const { return mDateFont; } + TQFont newFont() const { return mNewFont; } + TQFont unreadFont() const { return mUnreadFont; } + TQFont importantFont() const { return mImportantFont; } + TQFont todoFont() const { return mTodoFont; } + TQFont dateFont() const { return mDateFont; } /** Sets the list of copied/cutted messages. @param msgs A list of serial numbers. @param move if true, the messages were cutted */ - void setCopiedMessages( const QValueList<Q_UINT32> &msgs, bool move ); + void setCopiedMessages( const TQValueList<Q_UINT32> &msgs, bool move ); /** Returns true if the message with the given serial number has been cut. @@ -214,13 +214,13 @@ signals: * from the ctor of the item, at which point the building of the item * is not yet far enough along to update the quick search, which is * what is connected to this signal. */ - void msgAddedToListView( QListViewItem* ); + void msgAddedToListView( TQListViewItem* ); public slots: /** For when a list view item has been double clicked */ - void selectMessage(QListViewItem*); + void selectMessage(TQListViewItem*); /** For when a list view item has been selected */ - void highlightMessage(QListViewItem*); + void highlightMessage(TQListViewItem*); /** For when righ mouse button is pressed */ void slotRMB(); /** Refresh list view item corresponding to the messae with the given id */ @@ -234,7 +234,7 @@ public slots: /** For when the message with the given message id has been added to a folder */ void msgAdded(int); /** For when the message with the given id has been removed for a folder */ - void msgRemoved( int, QString ); + void msgRemoved( int, TQString ); /** Make the next header visible scrolling if necessary */ void nextMessage(); /** Same as nextMessage() but don't clear the current selection */ @@ -274,12 +274,12 @@ public slots: /** Select an item and if it is the parent of a closed thread, also recursively select its children. */ - virtual void setSelected(QListViewItem *item, bool selected); + virtual void setSelected(TQListViewItem *item, bool selected); /** Select several items by message index * and if they are the parent of a closed thread, also * recursively select their children. */ - void setSelectedByIndex(QValueList<int> items, bool selected); + void setSelectedByIndex(TQValueList<int> items, bool selected); /** switch a column with the given id (see KPaintInfo enum) 1 for activate, 0 for deactivate, -1 for toggle*/ @@ -289,7 +289,7 @@ public slots: void setFolderInfoStatus(); protected: - static QPixmap *pixNew, *pixUns, *pixDel, *pixRead, *pixRep, *pixSent, + static TQPixmap *pixNew, *pixUns, *pixDel, *pixRead, *pixRep, *pixSent, *pixQueued, *pixFwd, *pixFlag, *pixWatched, *pixIgnored, *pixSpam, *pixHam, *pixFullySigned, *pixPartiallySigned, *pixUndefinedSigned, *pixFullyEncrypted, *pixPartiallyEncrypted, *pixUndefinedEncrypted, @@ -298,10 +298,10 @@ protected: *pixReadFwd, *pixReadReplied, *pixReadFwdReplied,*pixTodo; /** Look for color changes */ - virtual bool event(QEvent *e); + virtual bool event(TQEvent *e); /** Overridden to support backing pixmap */ - virtual void paintEmptyArea( QPainter * p, const QRect & rect ); + virtual void paintEmptyArea( TQPainter * p, const TQRect & rect ); /** Ensure the current item is visible */ void makeHeaderVisible(); @@ -325,19 +325,19 @@ protected: virtual void writeConfig(void); /** Handle shift and control selection */ - virtual void contentsMousePressEvent(QMouseEvent*); - virtual void contentsMouseReleaseEvent(QMouseEvent* e); - virtual void keyPressEvent( QKeyEvent * e ); + virtual void contentsMousePressEvent(TQMouseEvent*); + virtual void contentsMouseReleaseEvent(TQMouseEvent* e); + virtual void keyPressEvent( TQKeyEvent * e ); /** Called when a header is clicked */ virtual void setSorting( int column, bool ascending = true); /** To initiate a drag operation */ - void contentsMouseMoveEvent( QMouseEvent *e ); + void contentsMouseMoveEvent( TQMouseEvent *e ); /** reimplemented in order to update the frame width in case of a changed GUI style */ - void styleChange( QStyle& oldStyle ); + void styleChange( TQStyle& oldStyle ); /** Set the width of the frame to a reasonable value for the current GUI style */ @@ -354,7 +354,7 @@ protected slots: /** dirties the sort order */ void dirtySortOrder(int); /** show context menu */ - void rightButtonPressed( QListViewItem *, const QPoint &, int ); + void rightButtonPressed( TQListViewItem *, const TQPoint &, int ); private slots: void slotMoveCompleted( KMCommand * ); @@ -372,7 +372,7 @@ private: bool forceJumpToUnread = false ); /** Currently associated folder */ - QGuardedPtr<KMFolder> mFolder; + TQGuardedPtr<KMFolder> mFolder; /** The KMMainWin for status bar updates */ KMMainWidget* mOwner; /** Top most visible item */ @@ -382,7 +382,7 @@ private: /** Serial number of the current item */ unsigned long mCurrentItemSerNum; /** Map messages ids into HeaderItems */ - QMemArray<HeaderItem*> mItems; + TQMemArray<HeaderItem*> mItems; // ===== threading and sorting ========== bool mNested, mNestedOverride, mSubjThreading; @@ -400,19 +400,19 @@ private: /** */ - QDict< SortCacheItem > mSortCacheItems; + TQDict< SortCacheItem > mSortCacheItems; /** */ - QDict< QPtrList< SortCacheItem > > mSubjectLists; + TQDict< TQPtrList< SortCacheItem > > mSubjectLists; /** */ - QPtrList<HeaderItem> mImperfectlyThreadedList; + TQPtrList<HeaderItem> mImperfectlyThreadedList; /** Debugging helpers for outputting the threading data structures. */ void printSubjectThreadingTree( ); void printThreadingTree( ); /** Initializes the mSortCacheItems tree with the contents of the folder */ - void buildThreadingTree( QMemArray<SortCacheItem *> sortCache ); + void buildThreadingTree( TQMemArray<SortCacheItem *> sortCache ); /** Initializes the mSubjectLists tree with the contents of the folder */ - void buildSubjectThreadingTree( QMemArray<SortCacheItem *> sortCache ); + void buildSubjectThreadingTree( TQMemArray<SortCacheItem *> sortCache ); /** Find a msg to thread item below */ SortCacheItem* findParent(SortCacheItem *item); /** Find a msg to thread item below by subject */ @@ -440,17 +440,17 @@ private: /** Current colours and backing pixmap */ KPaintInfo mPaintInfo; - QFont mNewFont, mUnreadFont, mImportantFont, mDateFont,mTodoFont; + TQFont mNewFont, mUnreadFont, mImportantFont, mDateFont,mTodoFont; /** Icons shown in header */ - static QIconSet *up, *down; + static TQIconSet *up, *down; /** Map menu id into a folder */ KMMenuToFolder mMenuToFolder; /** Drag and drop support */ bool mMousePressed; /** ditto */ - QPoint mPressPos; + TQPoint mPressPos; KMime::DateFormatter mDate; bool mReaderWindowActive; @@ -459,7 +459,7 @@ private: KPopupMenu* mPopup; // copied messages - QValueList<Q_UINT32> mCopiedMessages; + TQValueList<Q_UINT32> mCopiedMessages; bool mMoveMessages; }; // class #endif |