diff options
Diffstat (limited to 'kdevdesigner/designer/hierarchyview.h')
-rw-r--r-- | kdevdesigner/designer/hierarchyview.h | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/kdevdesigner/designer/hierarchyview.h b/kdevdesigner/designer/hierarchyview.h index ffd269b7..cb75178e 100644 --- a/kdevdesigner/designer/hierarchyview.h +++ b/kdevdesigner/designer/hierarchyview.h @@ -27,10 +27,10 @@ #ifndef HIRARCHYVIEW_H #define HIRARCHYVIEW_H -#include <qvariant.h> -#include <qlistview.h> -#include <qtabwidget.h> -#include <qguardedptr.h> +#include <tqvariant.h> +#include <tqlistview.h> +#include <tqtabwidget.h> +#include <tqguardedptr.h> #include <private/qcom_p.h> #include "../interfaces/classbrowserinterface.h" @@ -68,18 +68,18 @@ public: Variable }; - HierarchyItem( Type type, QListViewItem *parent, QListViewItem *after, - const QString &txt1, const QString &txt2, const QString &txt3 ); - HierarchyItem( Type type, QListView *parent, QListViewItem *after, - const QString &txt1, const QString &txt2, const QString &txt3 ); + HierarchyItem( Type type, TQListViewItem *parent, TQListViewItem *after, + const TQString &txt1, const TQString &txt2, const TQString &txt3 ); + HierarchyItem( Type type, TQListView *parent, TQListViewItem *after, + const TQString &txt1, const TQString &txt2, const TQString &txt3 ); - void paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align ); + void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align ); void updateBackColor(); - void setObject( QObject *o ); - QObject *object() const; + void setObject( TQObject *o ); + TQObject *object() const; - void setText( int col, const QString &txt ) { if ( !txt.isEmpty() ) QListViewItem::setText( col, txt ); } + void setText( int col, const TQString &txt ) { if ( !txt.isEmpty() ) TQListViewItem::setText( col, txt ); } int rtti() const { return (int)typ; } @@ -88,9 +88,9 @@ private: void cancelRename( int col ); private: - QColor backgroundColor(); - QColor backColor; - QObject *obj; + TQColor backgroundColor(); + TQColor backColor; + TQObject *obj; Type typ; }; @@ -100,55 +100,55 @@ class HierarchyList : public QListView Q_OBJECT public: - HierarchyList( QWidget *parent, FormWindow *fw, bool doConnects = TRUE ); + HierarchyList( TQWidget *parent, FormWindow *fw, bool doConnects = TRUE ); virtual void setup(); - virtual void setCurrent( QObject *o ); - void setOpen( QListViewItem *i, bool b ); - void changeNameOf( QObject *o, const QString &name ); - void changeDatabaseOf( QObject *o, const QString &info ); + virtual void setCurrent( TQObject *o ); + void setOpen( TQListViewItem *i, bool b ); + void changeNameOf( TQObject *o, const TQString &name ); + void changeDatabaseOf( TQObject *o, const TQString &info ); void setFormWindow( FormWindow *fw ) { formWindow = fw; } - void drawContentsOffset( QPainter *p, int ox, int oy, + void drawContentsOffset( TQPainter *p, int ox, int oy, int cx, int cy, int cw, int ch ) { setUpdatesEnabled( FALSE ); triggerUpdate(); setUpdatesEnabled( TRUE ); - QListView::drawContentsOffset( p, ox, oy, cx, cy, cw, ch ); + TQListView::drawContentsOffset( p, ox, oy, cx, cy, cw, ch ); } - void insertEntry( QListViewItem *i, const QPixmap &pix = QPixmap(), const QString &s = QString::null ); + void insertEntry( TQListViewItem *i, const TQPixmap &pix = TQPixmap(), const TQString &s = TQString::null ); protected: - void keyPressEvent( QKeyEvent *e ); - void keyReleaseEvent( QKeyEvent *e ); - void viewportMousePressEvent( QMouseEvent *e ); - void viewportMouseReleaseEvent( QMouseEvent *e ); + void keyPressEvent( TQKeyEvent *e ); + void keyReleaseEvent( TQKeyEvent *e ); + void viewportMousePressEvent( TQMouseEvent *e ); + void viewportMouseReleaseEvent( TQMouseEvent *e ); public slots: void addTabPage(); void removeTabPage(); private: - void insertObject( QObject *o, QListViewItem *parent ); - QObject *findObject( QListViewItem *i ); - QListViewItem *findItem( QObject *o ); - QObject *current() const; - QObject *handleObjectClick( QListViewItem *i ); + void insertObject( TQObject *o, TQListViewItem *parent ); + TQObject *findObject( TQListViewItem *i ); + TQListViewItem *findItem( TQObject *o ); + TQObject *current() const; + TQObject *handleObjectClick( TQListViewItem *i ); private slots: - virtual void objectClicked( QListViewItem *i ); - virtual void objectDoubleClicked( QListViewItem *i ); - virtual void showRMBMenu( QListViewItem *, const QPoint & ); + virtual void objectClicked( TQListViewItem *i ); + virtual void objectDoubleClicked( TQListViewItem *i ); + virtual void showRMBMenu( TQListViewItem *, const TQPoint & ); protected: FormWindow *formWindow; - QPopupMenu *normalMenu, *tabWidgetMenu; + TQPopupMenu *normalMenu, *tabWidgetMenu; bool deselect; - QPixmap DesignerFormPix; - QPixmap DesignerLayoutPix; - QPixmap DesignerFolderPix; - QPixmap DesignerEditSlotsPix; + TQPixmap DesignerFormPix; + TQPixmap DesignerLayoutPix; + TQPixmap DesignerFolderPix; + TQPixmap DesignerEditSlotsPix; }; @@ -157,25 +157,25 @@ class FormDefinitionView : public HierarchyList Q_OBJECT public: - FormDefinitionView( QWidget *parent, FormWindow *fw ); + FormDefinitionView( TQWidget *parent, FormWindow *fw ); void setup(); void setupVariables(); void refresh(); - void setCurrent( QWidget *w ); + void setCurrent( TQWidget *w ); protected: - void contentsMouseDoubleClickEvent( QMouseEvent *e ); + void contentsMouseDoubleClickEvent( TQMouseEvent *e ); private: - void save( QListViewItem *p, QListViewItem *i ); - void execFunctionDialog( const QString &access, const QString &type, bool addFunc ); - void addVariable( const QString &varName, const QString &access ); + void save( TQListViewItem *p, TQListViewItem *i ); + void execFunctionDialog( const TQString &access, const TQString &type, bool addFunc ); + void addVariable( const TQString &varName, const TQString &access ); private slots: - void objectClicked( QListViewItem *i ); - void showRMBMenu( QListViewItem *, const QPoint & ); - void renamed( QListViewItem *i ); + void objectClicked( TQListViewItem *i ); + void showRMBMenu( TQListViewItem *, const TQPoint & ); + void renamed( TQListViewItem *i ); private: bool popupOpen; @@ -190,10 +190,10 @@ class HierarchyView : public QTabWidget Q_OBJECT public: - HierarchyView( QWidget *parent ); + HierarchyView( TQWidget *parent ); ~HierarchyView(); - void setFormWindow( FormWindow *fw, QObject *o ); + void setFormWindow( FormWindow *fw, TQObject *o ); FormWindow *formWindow() const; SourceEditor *sourceEditor() const { return editor; } void clear(); @@ -201,14 +201,14 @@ public: void showClasses( SourceEditor *se ); void updateClassBrowsers(); - void widgetInserted( QWidget *w ); - void widgetRemoved( QWidget *w ); - void widgetsInserted( const QWidgetList &l ); - void widgetsRemoved( const QWidgetList &l ); - void namePropertyChanged( QWidget *w, const QVariant &old ); - void databasePropertyChanged( QWidget *w, const QStringList& info ); - void tabsChanged( QTabWidget *w ); - void pagesChanged( QWizard *w ); + void widgetInserted( TQWidget *w ); + void widgetRemoved( TQWidget *w ); + void widgetsInserted( const TQWidgetList &l ); + void widgetsRemoved( const TQWidgetList &l ); + void namePropertyChanged( TQWidget *w, const TQVariant &old ); + void databasePropertyChanged( TQWidget *w, const TQStringList& info ); + void tabsChanged( TQTabWidget *w ); + void pagesChanged( TQWizard *w ); void rebuild(); void closed( FormWindow *fw ); void updateFormDefinitionView(); @@ -217,11 +217,11 @@ public: HierarchyList *hierarchyList() const { return listview; } protected slots: - void jumpTo( const QString &func, const QString &clss,int type ); + void jumpTo( const TQString &func, const TQString &clss,int type ); void showClassesTimeout(); protected: - void closeEvent( QCloseEvent *e ); + void closeEvent( TQCloseEvent *e ); signals: void hidden(); @@ -229,9 +229,9 @@ signals: private: struct ClassBrowser { - ClassBrowser( QListView * = 0, ClassBrowserInterface * = 0 ); + ClassBrowser( TQListView * = 0, ClassBrowserInterface * = 0 ); ~ClassBrowser(); - QListView *lv; + TQListView *lv; QInterfacePtr<ClassBrowserInterface> iface; Q_DUMMY_COMPARISON_OPERATOR( ClassBrowser ) @@ -240,8 +240,8 @@ private: HierarchyList *listview; FormDefinitionView *fView; SourceEditor *editor; - QMap<QString, ClassBrowser> *classBrowsers; - QGuardedPtr<SourceEditor> lastSourceEditor; + TQMap<TQString, ClassBrowser> *classBrowsers; + TQGuardedPtr<SourceEditor> lastSourceEditor; }; |