summaryrefslogtreecommitdiffstats
path: root/src/part/radialMap/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/part/radialMap/widget.h')
-rw-r--r--src/part/radialMap/widget.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/part/radialMap/widget.h b/src/part/radialMap/widget.h
index 6fdf0e2..a0e51eb 100644
--- a/src/part/radialMap/widget.h
+++ b/src/part/radialMap/widget.h
@@ -5,7 +5,7 @@
#define WIDGET_H
#include <kurl.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "segmentTip.h"
template <class T> class Chain;
@@ -25,10 +25,10 @@ namespace RadialMap
~Map();
void make( const Directory *, bool = false );
- bool resize( const QRect& );
+ bool resize( const TQRect& );
bool isNull() const { return ( m_signature == 0 ); }
- void invalidate( const bool );
+ void tqinvalidate( const bool );
friend class Builder;
friend class Widget;
@@ -41,24 +41,25 @@ namespace RadialMap
Chain<Segment> *m_signature;
- QRect m_rect;
+ TQRect m_rect;
uint m_ringBreadth; ///ring breadth
uint m_innerRadius; ///radius of inner circle
uint m_visibleDepth; ///visible level depth of system
- QString m_centerText;
+ TQString m_centerText;
uint MAP_2MARGIN;
};
- class Widget : public QWidget
+ class Widget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- Widget( QWidget* = 0, const char* = 0 );
+ Widget( TQWidget* = 0, const char* = 0 );
~Widget() { delete m_tip; }
- QString path() const;
+ TQString path() const;
KURL url( File const * const = 0 ) const;
bool isValid() const { return m_tree != 0; }
@@ -69,7 +70,7 @@ namespace RadialMap
void zoomIn();
void zoomOut();
void create( const Directory* );
- void invalidate( const bool = true );
+ void tqinvalidate( const bool = true );
void refresh( int );
private slots:
@@ -80,31 +81,31 @@ namespace RadialMap
signals:
void activated( const KURL& );
- void invalidated( const KURL& );
+ void tqinvalidated( const KURL& );
void created( const Directory* );
- void mouseHover( const QString& );
+ void mouseHover( const TQString& );
void giveMeTreeFor( const KURL& );
protected:
- virtual void paintEvent( QPaintEvent* );
- virtual void resizeEvent( QResizeEvent* );
- virtual void mouseMoveEvent( QMouseEvent* );
- virtual void mousePressEvent( QMouseEvent* );
- virtual void dragEnterEvent( QDragEnterEvent* );
- virtual void dropEvent( QDropEvent* );
+ virtual void paintEvent( TQPaintEvent* );
+ virtual void resizeEvent( TQResizeEvent* );
+ virtual void mouseMoveEvent( TQMouseEvent* );
+ virtual void mousePressEvent( TQMouseEvent* );
+ virtual void dragEnterEvent( TQDragEnterEvent* );
+ virtual void dropEvent( TQDropEvent* );
protected:
- const Segment *segmentAt( QPoint& ) const; //FIXME const reference for a library others can use
+ const Segment *segmentAt( TQPoint& ) const; //FIXME const reference for a library others can use
const Segment *rootSegment() const { return m_rootSegment; } ///never == 0
const Segment *focusSegment() const { return m_focus; } ///0 == nothing in focus
private:
- void paintExplodedLabels( QPainter& ) const;
+ void paintExplodedLabels( TQPainter& ) const;
const Directory *m_tree;
const Segment *m_focus;
- QPoint m_offset;
- QTimer m_timer;
+ TQPoint m_offset;
+ TQTimer m_timer;
Map m_map;
SegmentTip *m_tip;
Segment *m_rootSegment;