summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/kpopupbox_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'arts/gui/kde/kpopupbox_private.h')
-rw-r--r--arts/gui/kde/kpopupbox_private.h114
1 files changed, 57 insertions, 57 deletions
diff --git a/arts/gui/kde/kpopupbox_private.h b/arts/gui/kde/kpopupbox_private.h
index 6b032912..a5072b05 100644
--- a/arts/gui/kde/kpopupbox_private.h
+++ b/arts/gui/kde/kpopupbox_private.h
@@ -30,13 +30,13 @@ class KArtsWidget;
class OwnWidget;
class QBoxLayout;
-#include <qframe.h>
+#include <tqframe.h>
class KPopupBox_widget : public QFrame
{
Q_OBJECT
public:
- KPopupBox_widget( QWidget* =0, const char* =0);
+ KPopupBox_widget( TQWidget* =0, const char* =0);
~KPopupBox_widget();
Arts::Direction direction();
@@ -50,10 +50,10 @@ private slots:
void hide( bool );
void own( bool );
private:
- QBoxLayout *_layout;
+ TQBoxLayout *_layout;
- QFrame *_titlebar;
- QBoxLayout *_titlebarlayout;
+ TQFrame *_titlebar;
+ TQBoxLayout *_titlebarlayout;
HandleDrag *_drag;
ShowButton *_showbutton;
OwnButton *_ownbutton;
@@ -63,34 +63,34 @@ private:
// See kpopupbox_impl.h - The eventmapper isn't needed at present, but perhaps in the future...
-/*class KPopupBoxEventMapper : public QObject {
+/*class KPopupBoxEventMapper : public TQObject {
Q_OBJECT
public:
KPopupBoxEventMapper( KPopupBox_widget *widget, Arts::KPopupBox_impl *impl )
- : QObject( widget,"" ), _widget( widget ), _impl( impl )
+ : TQObject( widget,"" ), _widget( widget ), _impl( impl )
{}
private:
KPopupBox_widget *_widget;
Arts::KPopupBox_impl *_impl;
};*/
-#include <qpainter.h>
-#include <qstyle.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
-class HandleDrag : public QWidget {
+class HandleDrag : public TQWidget {
Q_OBJECT
public:
- HandleDrag( QWidget *parent, const char* name=0 ) : QWidget( parent,name ) {}
- void paintEvent( QPaintEvent * ) {
- QPainter p( this );
- QStyle::SFlags flags = QStyle::Style_Default;
- if( width() < height() ) flags |= QStyle::Style_Horizontal;
- style().drawPrimitive( QStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
+ HandleDrag( TQWidget *parent, const char* name=0 ) : TQWidget( parent,name ) {}
+ void paintEvent( TQPaintEvent * ) {
+ TQPainter p( this );
+ TQStyle::SFlags flags = TQStyle::Style_Default;
+ if( width() < height() ) flags |= TQStyle::Style_Horizontal;
+ style().drawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
}
signals:
void clicked();
protected:
- virtual void mouseDoubleClickEvent( QMouseEvent * ) {
+ virtual void mouseDoubleClickEvent( TQMouseEvent * ) {
emit clicked();
}
};
@@ -103,76 +103,76 @@ static const char* const right_xpm[] = { "5 5 2 1", "# c black", ". c None", ".
static const char* const inside_xpm[] = { "5 5 2 1", "# c black", ". c None", "#####", "#...#", "#...#", "#...#", "#####"};
static const char* const own_xpm[] = { "5 5 2 1", "# c black", ". c None", "###..", "#.###", "###.#", ".#..#", ".####"};
-#include <qpushbutton.h>
-#include <qlayout.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
-class ShowButton : public QPushButton {
+class ShowButton : public TQPushButton {
Q_OBJECT
private:
- QBoxLayout::Direction _dir;
- QPixmap _pmleft, _pmright, _pmup, _pmdown;
+ TQBoxLayout::Direction _dir;
+ TQPixmap _pmleft, _pmright, _pmup, _pmdown;
public:
- ShowButton( QWidget *parent, const char* name=0 ) : QPushButton( parent,name ), _dir( QBoxLayout::LeftToRight )
+ ShowButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name ), _dir( TQBoxLayout::LeftToRight )
{
- connect( this, SIGNAL( toggled( bool ) ), this, SLOT( owntoggle( bool ) ) );
+ connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( owntoggle( bool ) ) );
setToggleButton( true );
- _pmleft = QPixmap( const_cast<const char**>( left_xpm ) );
- _pmright = QPixmap( const_cast<const char**>( right_xpm ) );
- _pmup = QPixmap( const_cast<const char**>( up_xpm ) );
- _pmdown = QPixmap( const_cast<const char**>( down_xpm ) );
+ _pmleft = TQPixmap( const_cast<const char**>( left_xpm ) );
+ _pmright = TQPixmap( const_cast<const char**>( right_xpm ) );
+ _pmup = TQPixmap( const_cast<const char**>( up_xpm ) );
+ _pmdown = TQPixmap( const_cast<const char**>( down_xpm ) );
setPixmap( _pmright );
}
- void direction( QBoxLayout::Direction n ) { _dir=n; }
+ void direction( TQBoxLayout::Direction n ) { _dir=n; }
public slots:
void owntoggle( bool b ) {
switch( _dir )
{
- case QBoxLayout::BottomToTop:
+ case TQBoxLayout::BottomToTop:
if( b ) setPixmap( _pmdown );
else setPixmap( _pmup );
break;
- case QBoxLayout::TopToBottom:
+ case TQBoxLayout::TopToBottom:
if( b ) setPixmap( _pmup );
else setPixmap( _pmdown );
break;
- case QBoxLayout::LeftToRight:
+ case TQBoxLayout::LeftToRight:
if( b ) setPixmap( _pmright );
else setPixmap( _pmleft );
break;
- case QBoxLayout::RightToLeft:
+ case TQBoxLayout::RightToLeft:
if( b ) setPixmap( _pmleft );
else setPixmap( _pmright );
break;
}
}
public:
- QSize minimumSizeHint() const {
- int wh = style().pixelMetric( QStyle::PM_DockWindowHandleExtent, this );
- return QSize( wh, wh );
+ TQSize minimumSizeHint() const {
+ int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
+ return TQSize( wh, wh );
}
- QSizePolicy sizePolicy() const { return QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); }
- QSize minimumSize() const { return minimumSizeHint(); }
- QSize sizeHint() const { return minimumSize(); }
+ TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
+ TQSize minimumSize() const { return minimumSizeHint(); }
+ TQSize sizeHint() const { return minimumSize(); }
- void drawButton( QPainter * p )
+ void drawButton( TQPainter * p )
{
- p->fillRect( 0,0, width(), height(), QBrush( colorGroup().brush( QColorGroup::Background ) ) );
+ p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) );
p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() );
}
};
-class OwnButton : public QPushButton {
+class OwnButton : public TQPushButton {
Q_OBJECT
private:
- QPixmap _pmown, _pminside;
+ TQPixmap _pmown, _pminside;
public:
- OwnButton( QWidget *parent, const char* name=0 ) : QPushButton( parent,name )
+ OwnButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name )
{
- connect( this, SIGNAL( toggled( bool ) ), this, SLOT( toggle( bool ) ) );
+ connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggle( bool ) ) );
setToggleButton( true );
- _pmown = QPixmap( const_cast<const char**>( own_xpm ) );
- _pminside = QPixmap( const_cast<const char**>( inside_xpm ) );
+ _pmown = TQPixmap( const_cast<const char**>( own_xpm ) );
+ _pminside = TQPixmap( const_cast<const char**>( inside_xpm ) );
setPixmap( _pmown );
}
@@ -182,17 +182,17 @@ public slots:
else setPixmap( _pmown );
}
public:
- QSize minimumSizeHint() const {
- int wh = style().pixelMetric( QStyle::PM_DockWindowHandleExtent, this );
- return QSize( wh, wh );
+ TQSize minimumSizeHint() const {
+ int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
+ return TQSize( wh, wh );
}
- QSizePolicy sizePolicy() const { return QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); }
- QSize minimumSize() const { return minimumSizeHint(); }
- QSize sizeHint() const { return minimumSize(); }
+ TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
+ TQSize minimumSize() const { return minimumSizeHint(); }
+ TQSize sizeHint() const { return minimumSize(); }
- void drawButton( QPainter * p )
+ void drawButton( TQPainter * p )
{
- p->fillRect( 0,0, width(), height(), QBrush( colorGroup().brush( QColorGroup::Background ) ) );
+ p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) );
p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() );
}
};
@@ -204,10 +204,10 @@ class OwnWidget : public KArtsWidget
Q_OBJECT
ShowButton *_b;
public:
- OwnWidget( ShowButton* b, QWidget* p, const char* n=0, WFlags f=0 ) : KArtsWidget( p,n,f ) { _b = b; }
+ OwnWidget( ShowButton* b, TQWidget* p, const char* n=0, WFlags f=0 ) : KArtsWidget( p,n,f ) { _b = b; }
~OwnWidget() {}
public slots:
- void closeEvent( QCloseEvent * ) { _b->toggle(); }
+ void closeEvent( TQCloseEvent * ) { _b->toggle(); }
};
#endif