diff options
Diffstat (limited to 'kommander/editor/hierarchyview.h')
-rw-r--r-- | kommander/editor/hierarchyview.h | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/kommander/editor/hierarchyview.h b/kommander/editor/hierarchyview.h index 54889ec2..debdf6a6 100644 --- a/kommander/editor/hierarchyview.h +++ b/kommander/editor/hierarchyview.h @@ -21,10 +21,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> class FormWindow; @@ -52,18 +52,18 @@ public: EventFunction }; - HierarchyItem(Type type, QListViewItem * parent, - const QString & txt1, const QString & txt2, const QString & txt3); - HierarchyItem(Type type, QListView * parent, - const QString & txt1, const QString & txt2, const QString & txt3); + HierarchyItem(Type type, TQListViewItem * parent, + const TQString & txt1, const TQString & txt2, const TQString & txt3); + HierarchyItem(Type type, TQListView * parent, + 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 setWidget(QWidget * w); - QWidget *widget() const; + void setWidget(TQWidget * w); + TQWidget *widget() 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;} private: @@ -71,9 +71,9 @@ private: void cancelRename(int col); private: - QColor backgroundColor(); - QColor backColor; - QWidget *wid; + TQColor backgroundColor(); + TQColor backColor; + TQWidget *wid; Type typ; }; @@ -81,42 +81,42 @@ 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(QWidget * w); - void setOpen(QListViewItem * i, bool b); - void changeNameOf(QWidget * w, const QString & name); - void changeDatabaseOf(QWidget * w, const QString & info); + virtual void setCurrent(TQWidget * w); + void setOpen(TQListViewItem * i, bool b); + void changeNameOf(TQWidget * w, const TQString & name); + void changeDatabaseOf(TQWidget * w, const TQString & info); void setFormWindow(FormWindow * fw) {formWindow = fw;} - void drawContentsOffset(QPainter * p, int ox, int oy, int cx, int cy, int cw, int ch) + 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); } - void insertEntry(QListViewItem * i, const QPixmap & pix = QPixmap(), const QString & s = - QString::null); + TQListView::drawContentsOffset(p, ox, oy, cx, cy, cw, ch); } + 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); - QWidget *findWidget(QListViewItem * i); - QListViewItem *findItem(QWidget * w); - QWidget *current() const; + void insertObject(TQObject * o, TQListViewItem * parent); + TQWidget *findWidget(TQListViewItem * i); + TQListViewItem *findItem(TQWidget * w); + TQWidget *current() const; - private slots: virtual void objectClicked(QListViewItem * i); - virtual void showRMBMenu(QListViewItem *, const QPoint &); + private slots: virtual void objectClicked(TQListViewItem * i); + virtual void showRMBMenu(TQListViewItem *, const TQPoint &); protected: FormWindow * formWindow; - QPopupMenu *normalMenu, *tabWidgetMenu; + TQPopupMenu *normalMenu, *tabWidgetMenu; bool deselect; }; @@ -125,28 +125,28 @@ class HierarchyView : public QTabWidget Q_OBJECT public: - HierarchyView( QWidget *parent ); + HierarchyView( TQWidget *parent ); ~HierarchyView(); - void setFormWindow( FormWindow *fw, QWidget *w ); + void setFormWindow( FormWindow *fw, TQWidget *w ); FormWindow *formWindow() const; void clear(); - 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 tabsChanged( QToolBox *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 tabsChanged( TQToolBox *w ); + void pagesChanged( TQWizard *w ); void rebuild(); void closed( FormWindow *fw ); protected slots: protected: - void closeEvent( QCloseEvent *e ); + void closeEvent( TQCloseEvent *e ); signals: void hidden(); |