summaryrefslogtreecommitdiffstats
path: root/src/gui/itemselector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemselector.h')
-rw-r--r--src/gui/itemselector.h66
1 files changed, 35 insertions, 31 deletions
diff --git a/src/gui/itemselector.h b/src/gui/itemselector.h
index ab9c11c..28f31b2 100644
--- a/src/gui/itemselector.h
+++ b/src/gui/itemselector.h
@@ -13,29 +13,29 @@
#include <klistview.h>
-#include <qpixmap.h>
-#include <qstring.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
class ProjectItem;
-class QStoredDrag;
+class TQStoredDrag;
namespace KateMDI { class ToolView; }
/**
@short Contains info about item for ItemSelector
@author David Saxton
*/
-class ILVItem : public QObject, public KListViewItem
+class ILVItem : public TQObject, public KListViewItem
{
public:
- ILVItem( QListView *parent, const QString &id );
- ILVItem( QListViewItem *parent, const QString &id );
+ ILVItem( TQListView *tqparent, const TQString &id );
+ ILVItem( TQListViewItem *tqparent, const TQString &id );
void setProjectItem( ProjectItem * projectItem ) { m_pProjectItem = projectItem; }
ProjectItem * projectItem() const { return m_pProjectItem; }
- QString id() const { return m_id; }
+ TQString id() const { return m_id; }
- QString key( int, bool ) const { return m_id; }
+ TQString key( int, bool ) const { return m_id; }
/**
* Set whether the item can be removed from the listview by the user
*/
@@ -46,7 +46,7 @@ class ILVItem : public QObject, public KListViewItem
bool isRemovable() const { return b_isRemovable; }
protected:
- QString m_id;
+ TQString m_id;
bool b_isRemovable;
ProjectItem * m_pProjectItem;
};
@@ -58,8 +58,9 @@ class ILVItem : public QObject, public KListViewItem
class ItemSelector : public KListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- ItemSelector( QWidget *parent, const char *name );
+ ItemSelector( TQWidget *tqparent, const char *name );
~ItemSelector();
/**
* Adds a listview item to the ListView
@@ -69,10 +70,10 @@ class ItemSelector : public KListView
* @param icon The icon to be displayed to the left of the text
* @param removable Whether the user can right-click on the item and select Remove
*/
- void addItem( const QString & caption, const QString & id, const QString & category, const QPixmap & icon = QPixmap(), bool removable = false );
+ void addItem( const TQString & caption, const TQString & id, const TQString & category, const TQPixmap & icon = TQPixmap(), bool removable = false );
public slots:
- virtual void slotContextMenuRequested( QListViewItem *item, const QPoint &pos, int col );
+ virtual void slotContextMenuRequested( TQListViewItem *item, const TQPoint &pos, int col );
virtual void clear();
void slotRemoveSelectedItem();
@@ -80,17 +81,17 @@ class ItemSelector : public KListView
/**
* Emitted when a user selects an item and removes it
*/
- void itemRemoved( const QString &id );
- void itemDoubleClicked( const QString &id );
- void itemClicked( const QString &id );
+ void itemRemoved( const TQString &id );
+ void itemDoubleClicked( const TQString &id );
+ void itemClicked( const TQString &id );
protected:
/**
* Sets the caption of the ListView (eg 'Components' or 'Files')
*/
- void setListCaption( const QString &caption );
+ void setListCaption( const TQString &caption );
/**
- * Writes the open status (folded or unfolded) of "parent" items in the view
+ * Writes the open status (folded or unfolded) of "tqparent" items in the view
* to the config file.
*/
void writeOpenStates();
@@ -98,19 +99,19 @@ class ItemSelector : public KListView
* Reads the open status (folded or unfolded) of the given item. The default
* status for non-existant items is true.
*/
- bool readOpenState( const QString &id );
+ bool readOpenState( const TQString &id );
private slots:
- void slotItemClicked( QListViewItem *item );
- void slotItemDoubleClicked( QListViewItem *item );
+ void slotItemClicked( TQListViewItem *item );
+ void slotItemDoubleClicked( TQListViewItem *item );
private:
/**
* @return a dragobject encoding the currently selected component item.
*/
- QDragObject * dragObject();
+ TQDragObject * dragObject();
- QStringList m_categories;
+ TQStringList m_categories;
};
@@ -121,12 +122,13 @@ class ItemSelector : public KListView
class ComponentSelector : public ItemSelector
{
Q_OBJECT
+ TQ_OBJECT
public:
- static ComponentSelector * self( KateMDI::ToolView * parent = 0l );
- static QString toolViewIdentifier() { return "ComponentSelector"; }
+ static ComponentSelector * self( KateMDI::ToolView * tqparent = 0l );
+ static TQString toolViewIdentifier() { return "ComponentSelector"; }
private:
- ComponentSelector( KateMDI::ToolView * parent );
+ ComponentSelector( KateMDI::ToolView * tqparent );
static ComponentSelector * m_pSelf;
};
@@ -138,12 +140,13 @@ class ComponentSelector : public ItemSelector
class FlowPartSelector : public ItemSelector
{
Q_OBJECT
+ TQ_OBJECT
public:
- static FlowPartSelector * self( KateMDI::ToolView * parent = 0l );
- static QString toolViewIdentifier() { return "FlowPartSelector"; }
+ static FlowPartSelector * self( KateMDI::ToolView * tqparent = 0l );
+ static TQString toolViewIdentifier() { return "FlowPartSelector"; }
private:
- FlowPartSelector( KateMDI::ToolView * parent );
+ FlowPartSelector( KateMDI::ToolView * tqparent );
static FlowPartSelector * m_pSelf;
};
@@ -154,12 +157,13 @@ class FlowPartSelector : public ItemSelector
class MechanicsSelector : public ItemSelector
{
Q_OBJECT
+ TQ_OBJECT
public:
- static MechanicsSelector * self( KateMDI::ToolView * parent = 0l );
- static QString toolViewIdentifier() { return "MechanicsSelector"; }
+ static MechanicsSelector * self( KateMDI::ToolView * tqparent = 0l );
+ static TQString toolViewIdentifier() { return "MechanicsSelector"; }
private:
- MechanicsSelector( QWidget *parent = 0L );
+ MechanicsSelector( TQWidget *tqparent = 0L );
static MechanicsSelector * m_pSelf;
};