summaryrefslogtreecommitdiffstats
path: root/kmail/kmfoldertree.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmfoldertree.h')
-rw-r--r--kmail/kmfoldertree.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/kmail/kmfoldertree.h b/kmail/kmfoldertree.h
index e24f939b3..3db70d3bf 100644
--- a/kmail/kmfoldertree.h
+++ b/kmail/kmfoldertree.h
@@ -23,10 +23,10 @@
#include <klocale.h>
#include <kdepimmacros.h>
-#include <qguardedptr.h>
-#include <qwidget.h>
-#include <qtimer.h>
-#include <qheader.h>
+#include <tqguardedptr.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
+#include <tqheader.h>
class QDropEvent;
class QPixmap;
@@ -39,42 +39,42 @@ class KMFolderImap;
class KMFolderTree;
class KMAccount;
// duplication from kmcommands.h, to avoid the include
-typedef QMap<int,KMFolder*> KMMenuToFolder;
+typedef TQMap<int,KMFolder*> KMMenuToFolder;
template <typename T> class QGuardedPtr;
-class KDE_EXPORT KMFolderTreeItem : public QObject, public KFolderTreeItem
+class KDE_EXPORT KMFolderTreeItem : public TQObject, public KFolderTreeItem
{
Q_OBJECT
public:
/** Construct a root item _without_ folder */
- KMFolderTreeItem( KFolderTree *parent, const QString & name,
+ KMFolderTreeItem( KFolderTree *parent, const TQString & name,
KFolderTreeItem::Protocol protocol=KFolderTreeItem::NONE );
/** Construct a root item _with_ folder */
- KMFolderTreeItem( KFolderTree *parent, const QString & name,
+ KMFolderTreeItem( KFolderTree *parent, const TQString & name,
KMFolder* folder );
/** Construct a child item */
- KMFolderTreeItem( KFolderTreeItem* parent, const QString & name,
+ KMFolderTreeItem( KFolderTreeItem* parent, const TQString & name,
KMFolder* folder );
virtual ~KMFolderTreeItem();
- QPixmap normalIcon( int size ) const;
- QPixmap unreadIcon( int size ) const;
+ TQPixmap normalIcon( int size ) const;
+ TQPixmap unreadIcon( int size ) const;
void setNeedsRepaint( bool value ) { mNeedsRepaint = value; }
bool needsRepaint() const { return mNeedsRepaint; }
/** associated folder */
KMFolder* folder() const { return mFolder; }
- QListViewItem* parent() const { return KFolderTreeItem::parent(); }
+ TQListViewItem* parent() const { return KFolderTreeItem::parent(); }
/** Adjust the unread count from the folder and update the
* pixmaps accordingly. */
void adjustUnreadCount( int newUnreadCount );
/** dnd */
- virtual bool acceptDrag(QDropEvent* e) const;
+ virtual bool acceptDrag(TQDropEvent* e) const;
signals:
/** Our icon changed */
@@ -109,7 +109,7 @@ class KMFolderTree : public KMail::FolderTreeBase
Q_OBJECT
public:
- KMFolderTree( KMMainWidget *mainWidget, QWidget *parent=0,
+ KMFolderTree( KMMainWidget *mainWidget, TQWidget *parent=0,
const char *name=0 );
/** Save config options */
@@ -122,8 +122,8 @@ public:
virtual void addDirectory( KMFolderDir *fdir, KMFolderTreeItem* parent );
/** create a folderlist */
- void createFolderList( QStringList *str,
- QValueList<QGuardedPtr<KMFolder> > *folders,
+ void createFolderList( TQStringList *str,
+ TQValueList<TQGuardedPtr<KMFolder> > *folders,
bool localFolders=true,
bool imapFolders=true,
bool dimapFolders=true,
@@ -145,7 +145,7 @@ public:
KMFolder *currentFolder() const;
- QValueList<QGuardedPtr<KMFolder> > selectedFolders();
+ TQValueList<TQGuardedPtr<KMFolder> > selectedFolders();
enum ColumnMode {unread=15, total=16, foldersize=17};
@@ -168,8 +168,8 @@ public:
};
/** Generate a popup menu that contains all folders that can have content */
- void folderToPopupMenu( MenuAction action, QObject *receiver, KMMenuToFolder *,
- QPopupMenu *menu, QListViewItem *start = 0 );
+ void folderToPopupMenu( MenuAction action, TQObject *receiver, KMMenuToFolder *,
+ TQPopupMenu *menu, TQListViewItem *start = 0 );
signals:
/** The selected folder has changed */
@@ -210,17 +210,17 @@ public slots:
void slotAccountRemoved(KMAccount*);
/** Select the item and switch to the folder */
- void doFolderSelected(QListViewItem *qlvi, bool keepSelection = false);
+ void doFolderSelected(TQListViewItem *qlvi, bool keepSelection = false);
/**
* Reset current folder and all childs
* If no item is given we take the current one
* If startListing is true a folder listing is started
*/
- void slotResetFolderList( QListViewItem* item = 0, bool startList = true );
+ void slotResetFolderList( TQListViewItem* item = 0, bool startList = true );
/** Create a child folder */
- void addChildFolder( KMFolder *folder = 0, QWidget * parent = 0 );
+ void addChildFolder( KMFolder *folder = 0, TQWidget * parent = 0 );
/** Copies the currently selected folder. */
void copyFolder();
@@ -249,13 +249,13 @@ protected slots:
void openFolder();
/** Expand an IMAP folder */
- void slotFolderExpanded( QListViewItem * item );
+ void slotFolderExpanded( TQListViewItem * item );
/** Tell the folder to refresh the contents on the next expansion */
- void slotFolderCollapsed( QListViewItem * item );
+ void slotFolderCollapsed( TQListViewItem * item );
/** Check if the new name is valid and confirm the new name */
- void slotRenameFolder( QListViewItem * item, int col, const QString& text);
+ void slotRenameFolder( TQListViewItem * item, int col, const TQString& text);
/** Update the total and unread columns but delayed */
void slotUpdateCountsDelayed(KMFolder * folder);
@@ -267,7 +267,7 @@ protected slots:
void slotToggleTotalColumn();
void slotToggleSizeColumn();
- void slotContextMenuRequested( QListViewItem *, const QPoint & );
+ void slotContextMenuRequested( TQListViewItem *, const TQPoint & );
/** Fires a new-mail-check of the account that is accociated with currentItem */
void slotCheckMail();
@@ -283,35 +283,35 @@ protected slots:
void updateCopyActions();
protected:
- virtual void contentsMousePressEvent( QMouseEvent *e );
- virtual void contentsMouseReleaseEvent(QMouseEvent* me);
+ virtual void contentsMousePressEvent( TQMouseEvent *e );
+ virtual void contentsMouseReleaseEvent(TQMouseEvent* me);
/** Updates the number of unread messages for all folders */
virtual void updateUnreadAll( );
- virtual void resizeEvent(QResizeEvent*);
+ virtual void resizeEvent(TQResizeEvent*);
/** Read/Save open/close state indicator for an item in folderTree list view */
bool readIsListViewItemOpen(KMFolderTreeItem *fti);
void writeIsListViewItemOpen(KMFolderTreeItem *fti);
- QTimer mUpdateTimer;
+ TQTimer mUpdateTimer;
/** Drag and drop methods */
- void contentsDragEnterEvent( QDragEnterEvent *e );
- void contentsDragMoveEvent( QDragMoveEvent *e );
- void contentsDragLeaveEvent( QDragLeaveEvent *e );
- void contentsDropEvent( QDropEvent *e );
- virtual QDragObject* dragObject();
+ void contentsDragEnterEvent( TQDragEnterEvent *e );
+ void contentsDragMoveEvent( TQDragMoveEvent *e );
+ void contentsDragLeaveEvent( TQDragLeaveEvent *e );
+ void contentsDropEvent( TQDropEvent *e );
+ virtual TQDragObject* dragObject();
/** Drag and drop variables */
- QListViewItem *oldCurrent, *oldSelected;
- QListViewItem *dropItem;
+ TQListViewItem *oldCurrent, *oldSelected;
+ TQListViewItem *dropItem;
KMFolderTreeItem *mLastItem;
- QTimer autoopen_timer;
+ TQTimer autoopen_timer;
// filter some rmb-events
- bool eventFilter(QObject*, QEvent*);
+ bool eventFilter(TQObject*, TQEvent*);
/** open ancestors and ensure item is visible */
void prepareItem( KMFolderTreeItem* );
@@ -320,7 +320,7 @@ protected:
void connectSignals();
/** Move or copy the folder @p source to @p destination. */
- void moveOrCopyFolder( QValueList<QGuardedPtr<KMFolder> > sources, KMFolder* destination, bool move=false );
+ void moveOrCopyFolder( TQValueList<TQGuardedPtr<KMFolder> > sources, KMFolder* destination, bool move=false );
private slots:
void slotAddToFavorites();
@@ -328,7 +328,7 @@ private slots:
private:
/** total column */
- QListViewItemIterator mUpdateIterator;
+ TQListViewItemIterator mUpdateIterator;
/** popup for unread/total */
KPopupMenu* mPopup;
@@ -337,11 +337,11 @@ private:
int mSizePop;
bool mReloading;
- QValueList<QGuardedPtr<KMFolder> > mCopySourceFolders;
+ TQValueList<TQGuardedPtr<KMFolder> > mCopySourceFolders;
bool mCutFolder;
- QTimer *mUpdateCountTimer;
- QMap<QString,KMFolder*> mFolderToUpdateCount;
+ TQTimer *mUpdateCountTimer;
+ TQMap<TQString,KMFolder*> mFolderToUpdateCount;
/** Map menu id into a folder */
KMMenuToFolder mMenuToFolder;