summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttMinimizeSplitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdgantt/KDGanttMinimizeSplitter.h')
-rw-r--r--kdgantt/KDGanttMinimizeSplitter.h62
1 files changed, 27 insertions, 35 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.h b/kdgantt/KDGanttMinimizeSplitter.h
index 15429e5a9..86b5340d1 100644
--- a/kdgantt/KDGanttMinimizeSplitter.h
+++ b/kdgantt/KDGanttMinimizeSplitter.h
@@ -26,46 +26,42 @@
** licensing are not clear to you.
**
** As a special exception, permission is given to link this program
- ** with any edition of Qt, and distribute the resulting executable,
- ** without including the source code for Qt in the source distribution.
+ ** with any edition of TQt, and distribute the resulting executable,
+ ** without including the source code for TQt in the source distribution.
**
**********************************************************************/
#ifndef KDGANTTMINIMIZESPLITTER_H
#define KDGANTTMINIMIZESPLITTER_H
-#ifndef QT_H
#include "tqframe.h"
#include "tqvaluelist.h"
-#endif // QT_H
-#ifndef QT_NO_SPLITTER
+class TQSplitterData;
+class TQSplitterLayoutStruct;
-class QSplitterData;
-class QSplitterLayoutStruct;
-
-class KDGanttMinimizeSplitter : public QFrame
+class KDGanttMinimizeSplitter : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
Q_ENUMS( Direction )
- Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
- Q_PROPERTY( Direction minimizeDirection READ minimizeDirection WRITE setMinimizeDirection )
+ TQ_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
+ TQ_PROPERTY( Direction minimizeDirection READ minimizeDirection WRITE setMinimizeDirection )
public:
enum ResizeMode { Stretch, KeepSize, FollowSizeHint };
enum Direction { Left, Right, Up, Down };
- KDGanttMinimizeSplitter( TQWidget* parent=0, const char* name=0 );
- KDGanttMinimizeSplitter( Orientation, TQWidget* parent=0, const char* name=0 );
+ KDGanttMinimizeSplitter( TQWidget* tqparent=0, const char* name=0 );
+ KDGanttMinimizeSplitter( Qt::Orientation, TQWidget* tqparent=0, const char* name=0 );
~KDGanttMinimizeSplitter();
- virtual void setOrientation( Orientation );
- Orientation orientation() const { return orient; }
+ virtual void setOrientation( Qt::Orientation );
+ Qt::Orientation orientation() const { return orient; }
void setMinimizeDirection( Direction );
Direction minimizeDirection() const;
-#if QT_VERSION >= 300
virtual void setResizeMode( TQWidget *w, ResizeMode );
virtual void setOpaqueResize( bool = TRUE );
bool opaqueResize() const;
@@ -89,9 +85,9 @@ protected:
int idAfter( TQWidget* ) const;
- void moveSplitter( QCOORD pos, int id );
- virtual void drawSplitter( TQPainter*, QCOORD x, QCOORD y,
- QCOORD w, QCOORD h );
+ void moveSplitter( TQCOORD pos, int id );
+ virtual void drawSplitter( TQPainter*, TQCOORD x, TQCOORD y,
+ TQCOORD w, TQCOORD h );
void styleChange( TQStyle& );
int adjustPos( int , int );
virtual void setRubberband( int );
@@ -103,33 +99,32 @@ private:
void doResize();
void storeSizes();
void processChildEvents();
- QSplitterLayoutStruct *addWidget( TQWidget*, bool first = FALSE );
+ TQSplitterLayoutStruct *addWidget( TQWidget*, bool first = FALSE );
void recalcId();
void moveBefore( int pos, int id, bool upLeft );
void moveAfter( int pos, int id, bool upLeft );
void setG( TQWidget *w, int p, int s, bool isSplitter = FALSE );
- QCOORD pick( const TQPoint &p ) const
+ TQCOORD pick( const TQPoint &p ) const
{ return orient == Horizontal ? p.x() : p.y(); }
- QCOORD pick( const TQSize &s ) const
+ TQCOORD pick( const TQSize &s ) const
{ return orient == Horizontal ? s.width() : s.height(); }
- QCOORD trans( const TQPoint &p ) const
+ TQCOORD trans( const TQPoint &p ) const
{ return orient == Vertical ? p.x() : p.y(); }
- QCOORD trans( const TQSize &s ) const
+ TQCOORD trans( const TQSize &s ) const
{ return orient == Vertical ? s.width() : s.height(); }
- QSplitterData *data;
-#endif
+ TQSplitterData *data;
private:
- Orientation orient;
+ Qt::Orientation orient;
Direction _direction;
#ifndef DOXYGEN_SKIP_INTERNAL
friend class KDGanttSplitterHandle;
#endif
private: // Disabled copy constructor and operator=
-#if defined(Q_DISABLE_COPY)
+#if defined(TQ_DISABLE_COPY)
KDGanttMinimizeSplitter( const KDGanttMinimizeSplitter & );
KDGanttMinimizeSplitter& operator=( const KDGanttMinimizeSplitter & );
#endif
@@ -137,16 +132,16 @@ private: // Disabled copy constructor and operator=
#ifndef DOXYGEN_SKIP_INTERNAL
// This class was continued from a verbatim copy of the
-// QSplitterHandle pertaining to the Qt Enterprise License and the
+// TQSplitterHandle pertaining to the TQt Enterprise License and the
// GPL. It has only been renamed to KDGanttSplitterHandler in order to
// avoid a symbol clash on some platforms.
-class KDGanttSplitterHandle : public QWidget
+class KDGanttSplitterHandle : public TQWidget
{
Q_OBJECT
-#if QT_VERSION >= 300
+ TQ_OBJECT
public:
KDGanttSplitterHandle( Qt::Orientation o,
- KDGanttMinimizeSplitter *parent, const char* name=0 );
+ KDGanttMinimizeSplitter *tqparent, const char* name=0 );
void setOrientation( Qt::Orientation o );
Qt::Orientation orientation() const { return orient; }
@@ -175,10 +170,7 @@ private:
int _activeButton;
bool _collapsed;
int _origPos;
-#endif
};
#endif
-#endif // QT_NO_SPLITTER
-
#endif // KDGANTTMINIMIZESPLITTER_H