summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/widgets/multitabbar.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 15:27:17 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 15:27:17 -0500
commit883a1fc629f00e9a41efad8514afd1ccf259d8c2 (patch)
tree53191c33748f9cd949a2eb86a64fbedc86c5ac75 /kftpgrabber/src/widgets/multitabbar.h
parent1385303ea163214e30825730ac0fbcc27f9634aa (diff)
downloadkftpgrabber-883a1fc629f00e9a41efad8514afd1ccf259d8c2.tar.gz
kftpgrabber-883a1fc629f00e9a41efad8514afd1ccf259d8c2.zip
Convert to TDE R14 API
Diffstat (limited to 'kftpgrabber/src/widgets/multitabbar.h')
-rw-r--r--kftpgrabber/src/widgets/multitabbar.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/kftpgrabber/src/widgets/multitabbar.h b/kftpgrabber/src/widgets/multitabbar.h
index ece61bf..f5483a8 100644
--- a/kftpgrabber/src/widgets/multitabbar.h
+++ b/kftpgrabber/src/widgets/multitabbar.h
@@ -38,17 +38,17 @@
#ifndef KFTPWIDGETSMULTITABBAR_H
#define KFTPWIDGETSMULTITABBAR_H
-#include <qscrollview.h>
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qlayout.h>
-#include <qstring.h>
-#include <qptrlist.h>
-#include <qpushbutton.h>
+#include <ntqscrollview.h>
+#include <ntqvbox.h>
+#include <ntqhbox.h>
+#include <ntqlayout.h>
+#include <ntqstring.h>
+#include <ntqptrlist.h>
+#include <ntqpushbutton.h>
-class QPixmap;
-class QPainter;
-class QFrame;
+class TQPixmap;
+class TQPainter;
+class TQFrame;
namespace KFTPWidgets {
@@ -65,7 +65,7 @@ class MultiTabBarInternal;
*
* @author Joseph Wenninger
*/
-class MultiTabBar: public QWidget
+class MultiTabBar: public TQWidget
{
Q_OBJECT
friend class MultiTabBarButton;
@@ -76,13 +76,13 @@ public:
/**
* VSNET == Visual Studio .Net like (only show the text of active tabs
* KDEV3 == Kdevelop 3 like (always show the text)
- * KONQSBC == konqy's classic sidebar style (unthemed), this one is disabled
+ * KONTQSBC == konqy's classic sidebar style (unthemed), this one is disabled
* at the moment, but will be renabled soon too
* AMAROK == A nice clean style by the amaroK team
*/
- enum MultiTabBarStyle { VSNET = 0, KDEV3 = 1, KONQSBC = 2, KDEV3ICON = 3, AMAROK = 4, STYLELAST = 0xffff };
+ enum MultiTabBarStyle { VSNET = 0, KDEV3 = 1, KONTQSBC = 2, KDEV3ICON = 3, AMAROK = 4, STYLELAST = 0xffff };
- MultiTabBar(MultiTabBarMode bm, QWidget *parent = 0, const char *name = 0);
+ MultiTabBar(MultiTabBarMode bm, TQWidget *parent = 0, const char *name = 0);
virtual ~MultiTabBar();
/**
@@ -95,7 +95,7 @@ public:
* @param popup A popup menu which should be displayed if the button is clicked
* @param not_used_yet will be used for a popup text in the future
*/
- int appendButton(const QPixmap &pic, int id = -1, QPopupMenu* popup = 0, const QString& not_used_yet = QString::null);
+ int appendButton(const TQPixmap &pic, int id = -1, TQPopupMenu* popup = 0, const TQString& not_used_yet = TQString::null);
/**
* remove a button with the given ID
@@ -108,7 +108,7 @@ public:
* @param id an arbitrary ID which can be used later on to identify the tab
* @param text if a mode with text is used it will be the tab text, otherwise a mouse over hint
*/
- int appendTab( const QPixmap &pic, int id = -1, const QString& text = QString::null );
+ int appendTab( const TQPixmap &pic, int id = -1, const TQString& text = TQString::null );
/**
* remove a tab with a given ID
@@ -145,24 +145,24 @@ public:
/**
* be carefull, don't delete tabs yourself and don't delete the list itself
*/
- QPtrList<MultiTabBarTab>* tabs();
+ TQPtrList<MultiTabBarTab>* tabs();
/**
* be carefull, don't delete buttons yourself and don't delete the list itself
*/
- QPtrList<MultiTabBarButton>* buttons();
+ TQPtrList<MultiTabBarButton>* buttons();
/**
* might vanish, not sure yet
*/
void showActiveTabTexts( bool show = true );
protected:
- virtual void fontChange( const QFont& );
+ virtual void fontChange( const TQFont& );
void updateSeparator();
private:
class MultiTabBarInternal *m_internal;
- QBoxLayout *m_l;
- QFrame *m_btnTabSep;
- QPtrList<MultiTabBarButton> m_buttons;
+ TQBoxLayout *m_l;
+ TQFrame *m_btnTabSep;
+ TQPtrList<MultiTabBarButton> m_buttons;
MultiTabBarPosition m_position;
MultiTabBarPrivate *d;
};
@@ -170,14 +170,14 @@ private:
/**
* This class should never be created except with the appendButton call of MultiTabBar
*/
-class MultiTabBarButton: public QPushButton
+class MultiTabBarButton: public TQPushButton
{
Q_OBJECT
public:
- MultiTabBarButton(MultiTabBarInternal *tb, const QPixmap& pic, const QString&, QPopupMenu *popup,
- int id, QWidget *parent, MultiTabBar::MultiTabBarPosition pos, MultiTabBar::MultiTabBarStyle style);
- MultiTabBarButton(MultiTabBarInternal *tb, const QString&, QPopupMenu *popup,
- int id, QWidget *parent, MultiTabBar::MultiTabBarPosition pos, MultiTabBar::MultiTabBarStyle style);
+ MultiTabBarButton(MultiTabBarInternal *tb, const TQPixmap& pic, const TQString&, TQPopupMenu *popup,
+ int id, TQWidget *parent, MultiTabBar::MultiTabBarPosition pos, MultiTabBar::MultiTabBarStyle style);
+ MultiTabBarButton(MultiTabBarInternal *tb, const TQString&, TQPopupMenu *popup,
+ int id, TQWidget *parent, MultiTabBar::MultiTabBarPosition pos, MultiTabBar::MultiTabBarStyle style);
virtual ~MultiTabBarButton();
int id() const;
@@ -196,9 +196,9 @@ public slots:
/**
* modify the text of the button
*/
- void setText( const QString & );
+ void setText( const TQString & );
- QSize sizeHint() const;
+ TQSize sizeHint() const;
protected:
static const int ANIM_INTERVAL = 18;
static const int ANIM_MAX = 20;
@@ -208,16 +208,16 @@ protected:
MultiTabBar::MultiTabBarPosition m_position;
MultiTabBar::MultiTabBarStyle m_style;
- QString m_text;
+ TQString m_text;
int m_id;
bool m_animEnter;
int m_animCount;
- class QTimer *m_animTimer;
+ class TQTimer *m_animTimer;
- virtual void hideEvent(class QHideEvent*);
- virtual void showEvent(class QShowEvent*);
- virtual void enterEvent(class QEvent*);
- virtual void leaveEvent(class QEvent*);
+ virtual void hideEvent(class TQHideEvent*);
+ virtual void showEvent(class TQShowEvent*);
+ virtual void enterEvent(class TQEvent*);
+ virtual void leaveEvent(class TQEvent*);
private:
MultiTabBarButtonPrivate *d;
signals:
@@ -239,7 +239,7 @@ class MultiTabBarTab: public MultiTabBarButton
Q_OBJECT
friend class MultiTabBarInternal;
public:
- MultiTabBarTab(MultiTabBarInternal *tb, const QPixmap &pic, const QString&, int id, QWidget *parent,
+ MultiTabBarTab(MultiTabBarInternal *tb, const TQPixmap &pic, const TQString&, int id, TQWidget *parent,
MultiTabBar::MultiTabBarPosition pos, MultiTabBar::MultiTabBarStyle style);
virtual ~MultiTabBarTab();
/**
@@ -262,18 +262,18 @@ protected:
void setSize( int );
int neededSize();
void updateState();
- virtual void drawButton( QPainter * );
- virtual void drawButtonLabel( QPainter * );
- void drawButtonStyled( QPainter * );
- void drawButtonClassic( QPainter * );
- void drawButtonAmarok( QPainter * );
- QColor blendColors( const QColor& color1, const QColor& color2, int percent );
+ virtual void drawButton( TQPainter * );
+ virtual void drawButtonLabel( TQPainter * );
+ void drawButtonStyled( TQPainter * );
+ void drawButtonClassic( TQPainter * );
+ void drawButtonAmarok( TQPainter * );
+ TQColor blendColors( const TQColor& color1, const TQColor& color2, int percent );
protected slots:
virtual void slotClicked();
void setTabsPosition( MultiTabBar::MultiTabBarPosition );
public slots:
- virtual void setIcon( const QString& );
- virtual void setIcon( const QPixmap& );
+ virtual void setIcon( const TQString& );
+ virtual void setIcon( const TQPixmap& );
};
}