diff options
Diffstat (limited to 'kopete/kopete/contactlist/kopetecontactlistview.h')
-rw-r--r-- | kopete/kopete/contactlist/kopetecontactlistview.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.h b/kopete/kopete/contactlist/kopetecontactlistview.h index 43c60ebe..4c5a8d37 100644 --- a/kopete/kopete/contactlist/kopetecontactlistview.h +++ b/kopete/kopete/contactlist/kopetecontactlistview.h @@ -27,12 +27,12 @@ #include "kopetelistview.h" #include "kopetemetacontact.h" -#include <qpixmap.h> -#include <qptrlist.h> -#include <qstringlist.h> -#include <qrect.h> -#include <qtimer.h> -#include <qguardedptr.h> +#include <tqpixmap.h> +#include <tqptrlist.h> +#include <tqstringlist.h> +#include <tqrect.h> +#include <tqtimer.h> +#include <tqguardedptr.h> class KopeteMetaContactLVI; class KopeteGroupViewItem; @@ -61,7 +61,7 @@ class KopeteContactListView : public Kopete::UI::ListView::ListView Q_OBJECT public: - KopeteContactListView( QWidget *parent = 0, const char *name = 0 ); + KopeteContactListView( TQWidget *parent = 0, const char *name = 0 ); ~KopeteContactListView(); /** @@ -72,7 +72,7 @@ public: /** * Add a given group name and return it */ - void addGroup( const QString &groupName ); + void addGroup( const TQString &groupName ); /** * Are we displaying as a tree view (true), or in a flat list (false)? @@ -92,26 +92,26 @@ public slots: void addGroup(); protected: - virtual void contentsMousePressEvent( QMouseEvent *e ); + virtual void contentsMousePressEvent( TQMouseEvent *e ); - virtual bool acceptDrag(QDropEvent *e) const; + virtual bool acceptDrag(TQDropEvent *e) const; /** * Start a drag operation - * @return a KMultipleDrag containing: 1) A QStoredDrag of type "application/x-qlistviewitem", 2) If the MC is associated with a KABC entry, i) a QTextDrag containing their email address, and ii) their vCard representation. + * @return a KMultipleDrag containing: 1) A TQStoredDrag of type "application/x-qlistviewitem", 2) If the MC is associated with a KABC entry, i) a TQTextDrag containing their email address, and ii) their vCard representation. */ - virtual QDragObject *dragObject(); + virtual TQDragObject *dragObject(); /** * Since KDE 3.1.1 , the original find Drop return 0L for afterme if the group is open. * This woraround allow us to keep the highlight of the item, and give always a correct position */ - virtual void findDrop(const QPoint &pos, QListViewItem *&parent, QListViewItem *&after); + virtual void findDrop(const TQPoint &pos, TQListViewItem *&parent, TQListViewItem *&after); /** * The selected items have changed; update our actions to show what's possible. */ - void updateActionsForSelection( QPtrList<Kopete::MetaContact> contacts, QPtrList<Kopete::Group> groups ); + void updateActionsForSelection( TQPtrList<Kopete::MetaContact> contacts, TQPtrList<Kopete::Group> groups ); private slots: /** @@ -126,13 +126,13 @@ private slots: void slotViewSelectionChanged(); void slotListSelectionChanged(); - void slotContextMenu(KListView*,QListViewItem *item, const QPoint &point ); - void slotExpanded( QListViewItem *item ); - void slotCollapsed( QListViewItem *item ); + void slotContextMenu(KListView*,TQListViewItem *item, const TQPoint &point ); + void slotExpanded( TQListViewItem *item ); + void slotCollapsed( TQListViewItem *item ); void slotSettingsChanged( void ); void slotUpdateAllGroupIcons(); - void slotExecuted( QListViewItem *item, const QPoint &pos, int c ); + void slotExecuted( TQListViewItem *item, const TQPoint &pos, int c ); void slotAddedToGroup( Kopete::MetaContact *mc, Kopete::Group *to ); void slotRemovedFromGroup( Kopete::MetaContact *mc, Kopete::Group *from ); @@ -149,7 +149,7 @@ private slots: void slotContactStatusChanged( Kopete::MetaContact *mc ); - void slotDropped(QDropEvent *e, QListViewItem *parent, QListViewItem*); + void slotDropped(TQDropEvent *e, TQListViewItem *parent, TQListViewItem*); void slotShowAddContactDialog(); void slotNewMessageEvent(Kopete::MessageEvent *); @@ -157,7 +157,7 @@ private slots: /** * Handle renamed items by renaming the meta contact */ - void slotItemRenamed( QListViewItem *item ); + void slotItemRenamed( TQListViewItem *item ); /** Actions related slots **/ void slotSendMessage(); @@ -180,15 +180,15 @@ private: bool mShowAsTree; // TODO: do we really need to store these? - QPtrList<KopeteMetaContactLVI> m_selectedContacts; - QPtrList<KopeteGroupViewItem> m_selectedGroups; + TQPtrList<KopeteMetaContactLVI> m_selectedContacts; + TQPtrList<KopeteGroupViewItem> m_selectedGroups; bool mSortByGroup; KRootPixmap *root; - QRect m_onItem; + TQRect m_onItem; - QPoint m_startDragPos; + TQPoint m_startDragPos; /* ACTIONS */ KAction *actionSendMessage; @@ -209,29 +209,29 @@ private: void moveDraggedContactToGroup( Kopete::MetaContact *contact, Kopete::Group *from, Kopete::Group *to ); void addDraggedContactToGroup( Kopete::MetaContact *contact, Kopete::Group *group ); void addDraggedContactToMetaContact( Kopete::Contact *contact, Kopete::MetaContact *parent ); - void addDraggedContactByInfo( const QString &protocolId, const QString &accountId, - const QString &contactId, QListViewItem *after ); + void addDraggedContactByInfo( const TQString &protocolId, const TQString &accountId, + const TQString &contactId, TQListViewItem *after ); public: struct UndoItem; UndoItem *m_undo; UndoItem *m_redo; void insertUndoItem(UndoItem *u); - QTimer undoTimer; + TQTimer undoTimer; public: // This is public so the chatwinodw can handle sub actions // FIXME: do we not believe in accessor functions any more? KActionMenu *actionAddContact; - QMap<const Kopete::Account *, KAction *> m_accountAddContactMap; + TQMap<const Kopete::Account *, KAction *> m_accountAddContactMap; }; struct KopeteContactListView::UndoItem { enum Type { MetaContactAdd, MetaContactRemove , MetaContactCopy , MetaContactRename, MetaContactChange, ContactAdd, GroupRename } type; - QStringList args; - QGuardedPtr<Kopete::MetaContact> metacontact; - QGuardedPtr<Kopete::Group> group; + TQStringList args; + TQGuardedPtr<Kopete::MetaContact> metacontact; + TQGuardedPtr<Kopete::Group> group; UndoItem *next; bool isStep; Kopete::MetaContact::PropertySource nameSource; |