summaryrefslogtreecommitdiffstats
path: root/krecipes/src/widgets/kremenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/widgets/kremenu.h')
-rw-r--r--krecipes/src/widgets/kremenu.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/krecipes/src/widgets/kremenu.h b/krecipes/src/widgets/kremenu.h
index 24cdc74..0903b6c 100644
--- a/krecipes/src/widgets/kremenu.h
+++ b/krecipes/src/widgets/kremenu.h
@@ -12,12 +12,12 @@
#ifndef KREMENU_H
#define KREMENU_H
-#include <qbuttongroup.h>
-#include <qevent.h>
-#include <qiconset.h>
-#include <qmap.h>
-#include <qpushbutton.h>
-#include <qstring.h>
+#include <ntqbuttongroup.h>
+#include <ntqevent.h>
+#include <ntqiconset.h>
+#include <ntqmap.h>
+#include <ntqpushbutton.h>
+#include <ntqstring.h>
#include "krecipesview.h" //for KrePanel enum
@@ -30,7 +30,7 @@
class Menu;
class KreMenu;
class KreMenuButton;
-typedef QValueList <Menu>::Iterator MenuId;
+typedef TQValueList <Menu>::Iterator MenuId;
class Menu
@@ -46,26 +46,26 @@ public:
// Variables
- QMap <KreMenuButton*, int> positionList; // Stores the indexes for the widgets
- QMap <int, KreMenuButton*> widgetList; // Stores the widgets for each position (just the inverse mapping)
+ TQMap <KreMenuButton*, int> positionList; // Stores the indexes for the widgets
+ TQMap <int, KreMenuButton*> widgetList; // Stores the widgets for each position (just the inverse mapping)
KreMenuButton* activeButton; // Indicates which button is highlighted
int childPos;
int widgetNumber;
private:
// Methods
- void copyMap( QMap <int, KreMenuButton*> &destMap, const QMap <int, KreMenuButton*> &origMap );
- void copyMap( QMap <KreMenuButton*, int> &destMap, const QMap <KreMenuButton*, int> &origMap );
+ void copyMap( TQMap <int, KreMenuButton*> &destMap, const TQMap <int, KreMenuButton*> &origMap );
+ void copyMap( TQMap <KreMenuButton*, int> &destMap, const TQMap <KreMenuButton*, int> &origMap );
};
-class KreMenu : public QWidget
+class KreMenu : public TQWidget
{
Q_OBJECT
public:
- KreMenu( QWidget *parent = 0, const char *name = 0 );
+ KreMenu( TQWidget *parent = 0, const char *name = 0 );
~KreMenu();
- MenuId createSubMenu( const QString &title, const QString &icon );
+ MenuId createSubMenu( const TQString &title, const TQString &icon );
MenuId mainMenu( void )
{
return mainMenuId;
@@ -74,21 +74,21 @@ public:
{
return currentMenuId;
}
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
- void resizeEvent( QResizeEvent* e );
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+ void resizeEvent( TQResizeEvent* e );
void highlightButton( KreMenuButton *button );
protected:
- virtual void paintEvent ( QPaintEvent *e );
- virtual void childEvent ( QChildEvent *e );
- virtual void keyPressEvent( QKeyEvent *e );
+ virtual void paintEvent ( TQPaintEvent *e );
+ virtual void childEvent ( TQChildEvent *e );
+ virtual void keyPressEvent( TQKeyEvent *e );
private:
//Variables
- QValueList <Menu> menus;
+ TQValueList <Menu> menus;
MenuId mainMenuId;
MenuId currentMenuId;
Menu *m_currentMenu;
@@ -103,7 +103,7 @@ private slots:
};
-class KreMenuButton: public QWidget
+class KreMenuButton: public TQWidget
{
Q_OBJECT
public:
@@ -111,10 +111,10 @@ public:
~KreMenuButton();
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
- QString title( void )
+ TQString title( void )
{
return text;
}
@@ -122,7 +122,7 @@ public:
{
highlighted = active;
}
- void setIconSet( const QIconSet &is );
+ void setIconSet( const TQIconSet &is );
MenuId menuId;
MenuId subMenuId;
@@ -138,13 +138,13 @@ signals:
void clicked( MenuId ); // sent together with clicked()
public slots:
- void setTitle( const QString &s );
+ void setTitle( const TQString &s );
void rescale( void );
private:
// Button parts
- QPixmap* icon;
- QString text;
+ TQPixmap* icon;
+ TQString text;
bool highlighted;
KrePanel panel;
@@ -160,8 +160,8 @@ private slots:
protected:
- virtual void paintEvent( QPaintEvent *e );
- virtual void mousePressEvent ( QMouseEvent * e );
+ virtual void paintEvent( TQPaintEvent *e );
+ virtual void mousePressEvent ( TQMouseEvent * e );
};