summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/popupmenueditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/popupmenueditor.h')
-rw-r--r--kdevdesigner/designer/popupmenueditor.h106
1 files changed, 53 insertions, 53 deletions
diff --git a/kdevdesigner/designer/popupmenueditor.h b/kdevdesigner/designer/popupmenueditor.h
index ca14205b..8adc0d68 100644
--- a/kdevdesigner/designer/popupmenueditor.h
+++ b/kdevdesigner/designer/popupmenueditor.h
@@ -27,9 +27,9 @@
#ifndef POPUPMENUEDITOR_H
#define POPUPMENUEDITOR_H
-#include <qwidget.h>
-#include <qptrlist.h>
-#include <qaction.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
+#include <tqaction.h>
class PopupMenuEditor;
class QMenuItem;
@@ -40,7 +40,7 @@ class PopupMenuEditorItem : public QObject
friend class PopupMenuEditor;
- PopupMenuEditorItem( PopupMenuEditor * menu = 0, QObject * parent = 0, const char * name = 0 );
+ PopupMenuEditorItem( PopupMenuEditor * menu = 0, TQObject * parent = 0, const char * name = 0 );
public:
enum ItemType {
@@ -49,16 +49,16 @@ public:
Action = 1
};
- PopupMenuEditorItem( QAction * action, PopupMenuEditor * menu,
- QObject * parent = 0, const char * name = 0 );
+ PopupMenuEditorItem( TQAction * action, PopupMenuEditor * menu,
+ TQObject * parent = 0, const char * name = 0 );
PopupMenuEditorItem( PopupMenuEditorItem * item, PopupMenuEditor * menu,
- QObject * parent = 0, const char * name = 0 );
+ TQObject * parent = 0, const char * name = 0 );
~PopupMenuEditorItem();
void init();
ItemType type() const;
- QAction * action() const { return a; }
+ TQAction * action() const { return a; }
void setVisible( bool enable );
bool isVisible() const;
@@ -76,7 +76,7 @@ public:
int count() const;
- bool eventFilter( QObject *, QEvent * event );
+ bool eventFilter( TQObject *, TQEvent * event );
public slots:
void selfDestruct();
@@ -84,7 +84,7 @@ public slots:
protected:
private:
- QAction * a;
+ TQAction * a;
PopupMenuEditor * s;
PopupMenuEditor * m;
uint separator : 1;
@@ -95,7 +95,7 @@ class FormWindow;
class MainWindow;
class QLineEdit;
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
class PopupMenuEditor : public QWidget
{
@@ -106,27 +106,27 @@ class PopupMenuEditor : public QWidget
friend class Resource;
public:
- PopupMenuEditor( FormWindow * fw, QWidget * parent = 0, const char * name = 0 );
- PopupMenuEditor( FormWindow * fw, PopupMenuEditor * menu, QWidget * parent, const char * name = 0 );
+ PopupMenuEditor( FormWindow * fw, TQWidget * parent = 0, const char * name = 0 );
+ PopupMenuEditor( FormWindow * fw, PopupMenuEditor * menu, TQWidget * parent, const char * name = 0 );
~PopupMenuEditor();
void init();
void insert( PopupMenuEditorItem * item, int index = -1 );
- void insert( QAction * action, int index = -1 );
- void insert( QActionGroup * actionGroup, int index = -1 );
- int find( const QAction * action );
+ void insert( TQAction * action, int index = -1 );
+ void insert( TQActionGroup * actionGroup, int index = -1 );
+ int find( const TQAction * action );
int find( PopupMenuEditor * menu );
int count();
PopupMenuEditorItem * at( int index );
- PopupMenuEditorItem * at( QPoint pos ) { return itemAt( pos.y() ); }
+ PopupMenuEditorItem * at( TQPoint pos ) { return itemAt( pos.y() ); }
void exchange( int a, int b );
void cut( int index );
void copy( int index );
void paste( int index );
- void insertedActions( QPtrList<QAction> & list );
+ void insertedActions( TQPtrList<TQAction> & list );
void show();
void choosePixmap( int index = -1 );
@@ -136,13 +136,13 @@ public:
FormWindow * formWindow() { return formWnd; }
bool isCreatingAccelerator() { return ( currentField == 2 ); }
- QPtrList<PopupMenuEditorItem> * items() { return &itemList; }
+ TQPtrList<PopupMenuEditorItem> * items() { return &itemList; }
- QWidget * parentEditor() { return parentMenu; }
+ TQWidget * parentEditor() { return parentMenu; }
signals:
- void inserted( QAction * );
- void removed( QAction * );
+ void inserted( TQAction * );
+ void removed( TQAction * );
public slots:
@@ -151,7 +151,7 @@ public slots:
void paste() { paste( currentIndex ); }
void remove( int index );
- void remove( QAction * a ) { remove( find( a ) ); }
+ void remove( TQAction * a ) { remove( find( a ) ); }
void resizeToContents();
void showSubMenu();
@@ -159,36 +159,36 @@ public slots:
void focusOnSubMenu();
protected:
- PopupMenuEditorItem * createItem( QAction * a = 0 );
+ PopupMenuEditorItem * createItem( TQAction * a = 0 );
void removeItem( int index = -1 );
PopupMenuEditorItem * currentItem();
PopupMenuEditorItem * itemAt( int y );
- void setFocusAt( const QPoint & pos );
-
- bool eventFilter( QObject * o, QEvent * e );
- void paintEvent( QPaintEvent * e );
- void mousePressEvent( QMouseEvent * e );
- void mouseDoubleClickEvent( QMouseEvent * e );
- void mouseMoveEvent( QMouseEvent * e );
- void dragEnterEvent( QDragEnterEvent * e );
- void dragLeaveEvent( QDragLeaveEvent * e );
- void dragMoveEvent( QDragMoveEvent * e );
- void dropEvent( QDropEvent * e );
- void keyPressEvent( QKeyEvent * e );
- void focusInEvent( QFocusEvent * e );
- void focusOutEvent( QFocusEvent * e );
-
- void drawItems( QPainter * p );
- void drawItem( QPainter * p, PopupMenuEditorItem * i, const QRect & r, int f ) const;
- void drawWinFocusRect( QPainter * p, const QRect & r ) const;
-
- QSize contentsSize();
+ void setFocusAt( const TQPoint & pos );
+
+ bool eventFilter( TQObject * o, TQEvent * e );
+ void paintEvent( TQPaintEvent * e );
+ void mousePressEvent( TQMouseEvent * e );
+ void mouseDoubleClickEvent( TQMouseEvent * e );
+ void mouseMoveEvent( TQMouseEvent * e );
+ void dragEnterEvent( TQDragEnterEvent * e );
+ void dragLeaveEvent( TQDragLeaveEvent * e );
+ void dragMoveEvent( TQDragMoveEvent * e );
+ void dropEvent( TQDropEvent * e );
+ void keyPressEvent( TQKeyEvent * e );
+ void focusInEvent( TQFocusEvent * e );
+ void focusOutEvent( TQFocusEvent * e );
+
+ void drawItems( TQPainter * p );
+ void drawItem( TQPainter * p, PopupMenuEditorItem * i, const TQRect & r, int f ) const;
+ void drawWinFocusRect( TQPainter * p, const TQRect & r ) const;
+
+ TQSize contentsSize();
int itemHeight( const PopupMenuEditorItem * item ) const;
int itemPos( const PopupMenuEditorItem * item ) const;
int snapToItem( int y );
void dropInPlace( PopupMenuEditorItem * i, int y );
- void dropInPlace( QActionGroup * g, int y );
+ void dropInPlace( TQActionGroup * g, int y );
void safeDec();
void safeInc();
@@ -198,19 +198,19 @@ protected:
void navigateDown( bool ctrl );
void navigateLeft();
void navigateRight();
- void enterEditMode( QKeyEvent * e );
- void leaveEditMode( QKeyEvent * e );
+ void enterEditMode( TQKeyEvent * e );
+ void leaveEditMode( TQKeyEvent * e );
- QString constructName( PopupMenuEditorItem *item );
+ TQString constructName( PopupMenuEditorItem *item );
private:
FormWindow * formWnd;
- QLineEdit * lineEdit;
- QWidget * dropLine;
- QPtrList<PopupMenuEditorItem> itemList;
+ TQLineEdit * lineEdit;
+ TQWidget * dropLine;
+ TQPtrList<PopupMenuEditorItem> itemList;
PopupMenuEditorItem addItem;
PopupMenuEditorItem addSeparator;
- QWidget * parentMenu;
+ TQWidget * parentMenu;
int iconWidth;
int textWidth;
@@ -220,7 +220,7 @@ private:
int currentField;
int currentIndex;
- QPoint mousePressPos;
+ TQPoint mousePressPos;
static PopupMenuEditorItem * draggedItem;
enum ClipboardOperation {