summaryrefslogtreecommitdiffstats
path: root/kdat/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdat/Node.h')
-rw-r--r--kdat/Node.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/kdat/Node.h b/kdat/Node.h
index 84dfea8..e33f7f8 100644
--- a/kdat/Node.h
+++ b/kdat/Node.h
@@ -19,7 +19,7 @@
#ifndef _Node_h_
#define _Node_h_
-#include <qobject.h>
+#include <tqobject.h>
#include "ktreeview.h"
@@ -65,7 +65,7 @@ public:
* @param text Text label for the node.
* @param pixmap A pixmap to display to the left of the text.
*/
- Node( int type, const QString & text, const QPixmap& pixmap );
+ Node( int type, const TQString & text, const TQPixmap& pixmap );
/**
* There must be a virtual destructor in the base class so that all the
@@ -121,7 +121,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& );
+ virtual void popupMenu( const TQPoint& );
};
class ArchiveNode;
@@ -179,7 +179,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -234,7 +234,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -325,21 +325,21 @@ public:
*/
class SelectableNode : public Node {
protected:
- mutable QRect _selectRect;
+ mutable TQRect _selectRect;
enum { SelAll, SelNone, SelSome };
int _state;
void doUpdateState();
void doSetSelected( bool select );
- const QPixmap* getSelectPixmap() const;
-
- virtual bool mousePressEvent( const QPoint& point );
- virtual void paint( QPainter* p, int indent,
- const QColorGroup& cg, bool highlighted ) const;
- virtual void paintText( QPainter* p, int indent, int cellHeight,
- const QColorGroup& cg, bool highlighted ) const;
- virtual int width( int indent, const QFontMetrics& fm ) const;
- virtual QRect textBoundingRect( int indent ) const;
+ const TQPixmap* getSelectPixmap() const;
+
+ virtual bool mousePressEvent( const TQPoint& point );
+ virtual void paint( TQPainter* p, int indent,
+ const TQColorGroup& cg, bool highlighted ) const;
+ virtual void paintText( TQPainter* p, int indent, int cellHeight,
+ const TQColorGroup& cg, bool highlighted ) const;
+ virtual int width( int indent, const TQFontMetrics& fm ) const;
+ virtual TQRect textBoundingRect( int indent ) const;
public:
/**
* Create a selectable node.
@@ -349,7 +349,7 @@ public:
* @param pixmap A pixmap to display to the left of the text.
* @param state The initial selection state of the node.
*/
- SelectableNode( int type, const QString & text, const QPixmap& pixmap, int state );
+ SelectableNode( int type, const TQString & text, const TQPixmap& pixmap, int state );
/**
* Determine whether the node is an instance of the given node type.
@@ -394,13 +394,13 @@ public:
* @param pixmap A pixmap to display to the left of the text.
* @param state The initial selection state of the node.
*/
- RangeableNode( int type, const QString & text, const QPixmap& pixmap, int state );
+ RangeableNode( int type, const TQString & text, const TQPixmap& pixmap, int state );
/**
* Get a list of all the selected ranges for the subtree rooted at this
* node.
*/
- virtual const QPtrList<Range>& getRanges() = 0;
+ virtual const TQPtrList<Range>& getRanges() = 0;
/**
* Determine whether the node is an instance of the given node type.
@@ -442,7 +442,7 @@ public:
* Get a list of all the selected ranges for the subtree rooted at this
* node.
*/
- virtual const QPtrList<Range>& getRanges();
+ virtual const TQPtrList<Range>& getRanges();
/**
* Select/deselect this node and all of its children.
@@ -476,7 +476,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -484,7 +484,7 @@ public:
*/
class MountedTapeDirectoryNode : public RangeableNode {
File* _file;
- QString _fullPath;
+ TQString _fullPath;
public:
/**
* Create a tape directory node.
@@ -507,13 +507,13 @@ public:
*
* @return The full path name of the directory.
*/
- QString getFullPath();
+ TQString getFullPath();
/**
* Get a list of all the selected ranges for the subtree rooted at this
* node.
*/
- virtual const QPtrList<Range>& getRanges();
+ virtual const TQPtrList<Range>& getRanges();
/**
* Select/deselect this node and all of its children.
@@ -556,7 +556,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -564,7 +564,7 @@ public:
*/
class MountedTapeFileNode : public RangeableNode {
File* _file;
- QString _fullPath;
+ TQString _fullPath;
public:
/**
* Create a tape file node.
@@ -587,13 +587,13 @@ public:
*
* @return The full path name of the file.
*/
- QString getFullPath();
+ TQString getFullPath();
/**
* Get a list of all the selected ranges for the subtree rooted at this
* node.
*/
- virtual const QPtrList<Range>& getRanges();
+ virtual const TQPtrList<Range>& getRanges();
/**
* Select/deselect this node and all of its children.
@@ -619,7 +619,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -627,7 +627,7 @@ public:
*/
class ArchiveableNode : public SelectableNode {
protected:
- QString _fullPath;
+ TQString _fullPath;
public:
/**
* Create a new archiveable node.
@@ -637,7 +637,7 @@ public:
* @param pixmap A pixmap to display to the left of the text.
* @param state The initial selection state of the node.
*/
- ArchiveableNode( int type, const QString & text, const QPixmap& pixmap, int state );
+ ArchiveableNode( int type, const TQString & text, const TQPixmap& pixmap, int state );
/**
* Compute the full path name of this node. Nodes representing
@@ -645,7 +645,7 @@ public:
*
* @return The full path of the file that this node represents.
*/
- virtual QString getFullPath() = 0;
+ virtual TQString getFullPath() = 0;
/**
* Determine whether the node is an instance of the given node type.
@@ -672,7 +672,7 @@ public:
*
* @return The full path of the file that this node represents.
*/
- virtual QString getFullPath();
+ virtual TQString getFullPath();
/**
* Determine whether the node is an instance of the given node type.
@@ -708,7 +708,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -724,7 +724,7 @@ public:
* traversing the tree to the root node.
* @param state The initial selection state of the node.
*/
- DirectoryNode( const QString & text, int state );
+ DirectoryNode( const TQString & text, int state );
/**
* Compute the full path name of this node. Nodes representing
@@ -732,7 +732,7 @@ public:
*
* @return The full path of the file that this node represents.
*/
- virtual QString getFullPath();
+ virtual TQString getFullPath();
/**
* Determine whether the node is an instance of the given node type.
@@ -768,7 +768,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
@@ -783,7 +783,7 @@ public:
* traversing the tree to the root node.
* @param state The initial selection state of the node.
*/
- FileNode( const QString & text, int state );
+ FileNode( const TQString & text, int state );
/**
* Compute the full path name of this node. Nodes representing
@@ -791,7 +791,7 @@ public:
*
* @return The full path of the file that this node represents.
*/
- virtual QString getFullPath();
+ virtual TQString getFullPath();
/**
* Determine whether the node is an instance of the given node type.
@@ -809,13 +809,13 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
};
/**
* @short This node represents a tape drive.
*/
-class TapeDriveNode : public QObject, public Node {
+class TapeDriveNode : public TQObject, public Node {
Q_OBJECT
MountedArchiveNode* findArchiveNode( Archive* archive );
@@ -848,7 +848,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& p );
+ virtual void popupMenu( const TQPoint& p );
public slots:
/**
* This slot is called when the tape is mounted.
@@ -872,7 +872,7 @@ public slots:
/**
* @short This node represents the root of the tape index subtree.
*/
-class TapeIndexRootNode : public QObject, public Node {
+class TapeIndexRootNode : public TQObject, public Node {
Q_OBJECT
TapeNode* findTapeNode( Tape* tape );
@@ -972,13 +972,13 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& );
+ virtual void popupMenu( const TQPoint& );
};
/**
* @short This node represents the root of the backup profile subtree.
*/
-class BackupProfileRootNode : public QObject, public Node {
+class BackupProfileRootNode : public TQObject, public Node {
Q_OBJECT
BackupProfileNode* findBackupProfileNode( BackupProfile* backupProfile );
@@ -1023,7 +1023,7 @@ public:
* This method is called when the user right-clicks the mouse over the
* node.
*/
- virtual void popupMenu( const QPoint& );
+ virtual void popupMenu( const TQPoint& );
public slots:
/**
* Add a new child node for the new backup profile.