From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdevdesigner/designer/command.h | 504 ++++++++++++++++++++-------------------- 1 file changed, 252 insertions(+), 252 deletions(-) (limited to 'kdevdesigner/designer/command.h') diff --git a/kdevdesigner/designer/command.h b/kdevdesigner/designer/command.h index ac5e9d5a..5aa1764f 100644 --- a/kdevdesigner/designer/command.h +++ b/kdevdesigner/designer/command.h @@ -30,15 +30,15 @@ #include "metadatabase.h" #include "layout.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include class QWizard; class QTabWidget; @@ -65,7 +65,7 @@ class ActionEditor; class Command : public Qt { public: - Command( const QString &n, FormWindow *fw ); + Command( const TQString &n, FormWindow *fw ); virtual ~Command(); enum Type { @@ -131,7 +131,7 @@ public: DeleteToolBoxPage }; - QString name() const; + TQString name() const; virtual void execute() = 0; virtual void unexecute() = 0; @@ -142,7 +142,7 @@ public: FormWindow *formWindow() const; private: - QString cmdName; + TQString cmdName; FormWindow *formWin; }; @@ -168,11 +168,11 @@ public slots: signals: void undoRedoChanged( bool undoAvailable, bool redoAvailable, - const QString &undoCmd, const QString &redoCmd ); + const TQString &undoCmd, const TQString &redoCmd ); void modificationChanged( bool m ); private: - QPtrList history; + TQPtrList history; int current, steps; bool modified; int savedAt; @@ -183,42 +183,42 @@ private: class ResizeCommand : public Command { public: - ResizeCommand( const QString &n, FormWindow *fw, - QWidget *w, const QRect &oldr, const QRect &nr ); + ResizeCommand( const TQString &n, FormWindow *fw, + TQWidget *w, const TQRect &oldr, const TQRect &nr ); void execute(); void unexecute(); Type type() const { return Resize; } private: - QWidget *widget; - QRect oldRect, newRect; + TQWidget *widget; + TQRect oldRect, newRect; }; class InsertCommand : public Command { public: - InsertCommand( const QString &n, FormWindow *fw, QWidget *w, const QRect &g ); + InsertCommand( const TQString &n, FormWindow *fw, TQWidget *w, const TQRect &g ); void execute(); void unexecute(); Type type() const { return Insert; } private: - QWidget *widget; - QRect geometry; + TQWidget *widget; + TQRect geometry; }; class MoveCommand : public Command { public: - MoveCommand( const QString &n, FormWindow *fw, - const QWidgetList &w, - const QValueList op, - const QValueList np, - QWidget *opr, QWidget *npr ); + MoveCommand( const TQString &n, FormWindow *fw, + const TQWidgetList &w, + const TQValueList op, + const TQValueList np, + TQWidget *opr, TQWidget *npr ); void execute(); void unexecute(); Type type() const { return Move; } @@ -226,35 +226,35 @@ public: bool canMerge( Command *c ); private: - QWidgetList widgets; - QValueList oldPos, newPos; - QWidget *oldParent, *newParent; + TQWidgetList widgets; + TQValueList oldPos, newPos; + TQWidget *oldParent, *newParent; }; class DeleteCommand : public Command { public: - DeleteCommand( const QString &n, FormWindow *fw, - const QWidgetList &w ); + DeleteCommand( const TQString &n, FormWindow *fw, + const TQWidgetList &w ); void execute(); void unexecute(); Type type() const { return Delete; } private: - QWidgetList widgets; - QMap< QWidget*, QValueList > connections; + TQWidgetList widgets; + TQMap< TQWidget*, TQValueList > connections; }; class SetPropertyCommand : public Command { public: - SetPropertyCommand( const QString &n, FormWindow *fw, - QObject *w, PropertyEditor *e, - const QString &pn, const QVariant &ov, - const QVariant &nv, const QString &ncut, - const QString &ocut, + SetPropertyCommand( const TQString &n, FormWindow *fw, + TQObject *w, PropertyEditor *e, + const TQString &pn, const TQVariant &ov, + const TQVariant &nv, const TQString &ncut, + const TQString &ocut, bool reset = FALSE ); void execute(); @@ -265,13 +265,13 @@ public: bool checkProperty(); private: - void setProperty( const QVariant &v, const QString ¤tItemText, bool select = TRUE ); + void setProperty( const TQVariant &v, const TQString ¤tItemText, bool select = TRUE ); - QGuardedPtr widget; + TQGuardedPtr widget; PropertyEditor *editor; - QString propName; - QVariant oldValue, newValue; - QString oldCurrentItemText, newCurrentItemText; + TQString propName; + TQVariant oldValue, newValue; + TQString oldCurrentItemText, newCurrentItemText; bool wasChanged; bool isResetCommand; @@ -280,9 +280,9 @@ private: class LayoutHorizontalCommand : public Command { public: - LayoutHorizontalCommand( const QString &n, FormWindow *fw, - QWidget *parent, QWidget *layoutBase, - const QWidgetList &wl ); + LayoutHorizontalCommand( const TQString &n, FormWindow *fw, + TQWidget *parent, TQWidget *layoutBase, + const TQWidgetList &wl ); void execute(); void unexecute(); @@ -296,9 +296,9 @@ private: class LayoutHorizontalSplitCommand : public Command { public: - LayoutHorizontalSplitCommand( const QString &n, FormWindow *fw, - QWidget *parent, QWidget *layoutBase, - const QWidgetList &wl ); + LayoutHorizontalSplitCommand( const TQString &n, FormWindow *fw, + TQWidget *parent, TQWidget *layoutBase, + const TQWidgetList &wl ); void execute(); void unexecute(); @@ -312,9 +312,9 @@ private: class LayoutVerticalCommand : public Command { public: - LayoutVerticalCommand( const QString &n, FormWindow *fw, - QWidget *parent, QWidget *layoutBase, - const QWidgetList &wl ); + LayoutVerticalCommand( const TQString &n, FormWindow *fw, + TQWidget *parent, TQWidget *layoutBase, + const TQWidgetList &wl ); void execute(); void unexecute(); @@ -328,9 +328,9 @@ private: class LayoutVerticalSplitCommand : public Command { public: - LayoutVerticalSplitCommand( const QString &n, FormWindow *fw, - QWidget *parent, QWidget *layoutBase, - const QWidgetList &wl ); + LayoutVerticalSplitCommand( const TQString &n, FormWindow *fw, + TQWidget *parent, TQWidget *layoutBase, + const TQWidgetList &wl ); void execute(); void unexecute(); @@ -344,9 +344,9 @@ private: class LayoutGridCommand : public Command { public: - LayoutGridCommand( const QString &n, FormWindow *fw, - QWidget *parent, QWidget *layoutBase, - const QWidgetList &wl, int xres, int yres ); + LayoutGridCommand( const TQString &n, FormWindow *fw, + TQWidget *parent, TQWidget *layoutBase, + const TQWidgetList &wl, int xres, int yres ); void execute(); void unexecute(); @@ -360,8 +360,8 @@ private: class BreakLayoutCommand : public Command { public: - BreakLayoutCommand( const QString &n, FormWindow *fw, - QWidget *layoutBase, const QWidgetList &wl ); + BreakLayoutCommand( const TQString &n, FormWindow *fw, + TQWidget *layoutBase, const TQWidgetList &wl ); void execute(); void unexecute(); @@ -371,84 +371,84 @@ private: Layout *layout; int spacing; int margin; - QWidget *lb; - QWidgetList widgets; + TQWidget *lb; + TQWidgetList widgets; }; class MacroCommand : public Command { public: - MacroCommand( const QString &n, FormWindow *fw, - const QPtrList &cmds ); + MacroCommand( const TQString &n, FormWindow *fw, + const TQPtrList &cmds ); void execute(); void unexecute(); Type type() const { return Macro; } private: - QPtrList commands; + TQPtrList commands; }; class AddTabPageCommand : public Command { public: - AddTabPageCommand( const QString &n, FormWindow *fw, - QTabWidget *tw, const QString &label ); + AddTabPageCommand( const TQString &n, FormWindow *fw, + TQTabWidget *tw, const TQString &label ); void execute(); void unexecute(); Type type() const { return AddTabPage; } private: - QTabWidget *tabWidget; + TQTabWidget *tabWidget; int index; - QWidget *tabPage; - QString tabLabel; + TQWidget *tabPage; + TQString tabLabel; }; class DeleteTabPageCommand : public Command { public: - DeleteTabPageCommand( const QString &n, FormWindow *fw, - QTabWidget *tw, QWidget *page ); + DeleteTabPageCommand( const TQString &n, FormWindow *fw, + TQTabWidget *tw, TQWidget *page ); void execute(); void unexecute(); Type type() const { return DeleteTabPage; } private: - QTabWidget *tabWidget; + TQTabWidget *tabWidget; int index; - QWidget *tabPage; - QString tabLabel; + TQWidget *tabPage; + TQString tabLabel; }; class MoveTabPageCommand : public Command { public: - MoveTabPageCommand(const QString &n, FormWindow *fw, - QTabWidget *tw, QWidget *page, const QString& label, int nIndex, int oIndex ); + MoveTabPageCommand(const TQString &n, FormWindow *fw, + TQTabWidget *tw, TQWidget *page, const TQString& label, int nIndex, int oIndex ); void execute(); void unexecute(); Type type() const { return MoveTabPage; } private: - QTabWidget *tabWidget; + TQTabWidget *tabWidget; int newIndex, oldIndex; - QWidget *tabPage; - QString tabLabel; + TQWidget *tabPage; + TQString tabLabel; }; class QDesignerWidgetStack; class AddWidgetStackPageCommand : public Command { public: - AddWidgetStackPageCommand( const QString &n, FormWindow *fw, + AddWidgetStackPageCommand( const TQString &n, FormWindow *fw, QDesignerWidgetStack *ws ); void execute(); @@ -458,14 +458,14 @@ public: private: QDesignerWidgetStack *widgetStack; int index; - QWidget *stackPage; + TQWidget *stackPage; }; class DeleteWidgetStackPageCommand : public Command { public: - DeleteWidgetStackPageCommand( const QString &n, FormWindow *fw, - QDesignerWidgetStack *ws, QWidget *page ); + DeleteWidgetStackPageCommand( const TQString &n, FormWindow *fw, + QDesignerWidgetStack *ws, TQWidget *page ); void execute(); void unexecute(); @@ -474,7 +474,7 @@ public: private: QDesignerWidgetStack *widgetStack; int index; - QWidget *stackPage; + TQWidget *stackPage; }; @@ -482,71 +482,71 @@ private: class AddWizardPageCommand : public Command { public: - AddWizardPageCommand( const QString &n, FormWindow *fw, - QWizard *w, const QString &label, int index = -1, bool show = TRUE ); + AddWizardPageCommand( const TQString &n, FormWindow *fw, + TQWizard *w, const TQString &label, int index = -1, bool show = TRUE ); void execute(); void unexecute(); Type type() const { return AddWizardPage; } private: - QWizard *wizard; + TQWizard *wizard; int index; bool show; - QWidget *page; - QString pageLabel; + TQWidget *page; + TQString pageLabel; }; class DeleteWizardPageCommand : public Command { public: - DeleteWizardPageCommand( const QString &n, FormWindow *fw, - QWizard *w, int index, bool show = TRUE ); + DeleteWizardPageCommand( const TQString &n, FormWindow *fw, + TQWizard *w, int index, bool show = TRUE ); void execute(); void unexecute(); Type type() const { return DeleteWizardPage; } private: - QWizard *wizard; + TQWizard *wizard; int index; bool show; - QWidget *page; - QString pageLabel; + TQWidget *page; + TQString pageLabel; }; class RenameWizardPageCommand : public Command { public: - RenameWizardPageCommand( const QString &n, FormWindow *fw, - QWizard *w, int index, const QString& name ); + RenameWizardPageCommand( const TQString &n, FormWindow *fw, + TQWizard *w, int index, const TQString& name ); void execute(); void unexecute(); Type type() const { return RenameWizardPage; } private: - QWizard *wizard; + TQWizard *wizard; int index; - QWidget *page; - QString label; + TQWidget *page; + TQString label; }; class SwapWizardPagesCommand : public Command { public: - SwapWizardPagesCommand( const QString &n, FormWindow *fw, - QWizard *w, int index1, int index2 ); + SwapWizardPagesCommand( const TQString &n, FormWindow *fw, + TQWizard *w, int index1, int index2 ); void execute(); void unexecute(); Type type() const { return SwapWizardPages; } private: - QWizard *wizard; + TQWizard *wizard; int index1, index2; }; @@ -554,15 +554,15 @@ private: class MoveWizardPageCommand : public Command { public: - MoveWizardPageCommand( const QString &n, FormWindow *fw, - QWizard *w, int index1, int index2 ); + MoveWizardPageCommand( const TQString &n, FormWindow *fw, + TQWizard *w, int index1, int index2 ); void execute(); void unexecute(); Type type() const { return MoveWizardPage; } private: - QWizard *wizard; + TQWizard *wizard; int index1, index2; }; @@ -570,7 +570,7 @@ private: class AddConnectionCommand : public Command { public: - AddConnectionCommand( const QString &name, FormWindow *fw, + AddConnectionCommand( const TQString &name, FormWindow *fw, MetaDataBase::Connection c ); void execute(); @@ -585,7 +585,7 @@ private: class RemoveConnectionCommand : public Command { public: - RemoveConnectionCommand( const QString &name, FormWindow *fw, + RemoveConnectionCommand( const TQString &name, FormWindow *fw, MetaDataBase::Connection c ); void execute(); @@ -601,160 +601,160 @@ private: class AddFunctionCommand : public Command { public: - AddFunctionCommand( const QString &name, FormWindow *fw, const QCString &f, const QString& spec, - const QString &a, const QString &t, const QString &l, const QString &rt ); + AddFunctionCommand( const TQString &name, FormWindow *fw, const TQCString &f, const TQString& spec, + const TQString &a, const TQString &t, const TQString &l, const TQString &rt ); void execute(); void unexecute(); Type type() const { return AddFunction; } private: - QCString function; - QString specifier; - QString access; - QString functionType; - QString language; - QString returnType; + TQCString function; + TQString specifier; + TQString access; + TQString functionType; + TQString language; + TQString returnType; }; class ChangeFunctionAttribCommand : public Command { public: - ChangeFunctionAttribCommand( const QString &name, FormWindow *fw, MetaDataBase::Function f, - const QString &on, const QString &os, const QString &oa, - const QString &ot, const QString &ol, const QString &ort ); + ChangeFunctionAttribCommand( const TQString &name, FormWindow *fw, MetaDataBase::Function f, + const TQString &on, const TQString &os, const TQString &oa, + const TQString &ot, const TQString &ol, const TQString &ort ); void execute(); void unexecute(); Type type() const { return ChangeFunctionAttrib; } private: - QString oldName, newName; - QString oldSpec, newSpec; - QString oldAccess, newAccess; - QString oldType, newType; - QString oldLang, newLang; - QString oldReturnType, newReturnType; + TQString oldName, newName; + TQString oldSpec, newSpec; + TQString oldAccess, newAccess; + TQString oldType, newType; + TQString oldLang, newLang; + TQString oldReturnType, newReturnType; }; class RemoveFunctionCommand : public Command { public: - RemoveFunctionCommand( const QString &name, FormWindow *fw, const QCString &f, const QString& spec, - const QString &a, const QString &t, const QString &l, const QString &rt ); + RemoveFunctionCommand( const TQString &name, FormWindow *fw, const TQCString &f, const TQString& spec, + const TQString &a, const TQString &t, const TQString &l, const TQString &rt ); void execute(); void unexecute(); Type type() const { return RemoveFunction; } private: - QCString function; - QString specifier; - QString access; - QString functionType; - QString language; - QString returnType; + TQCString function; + TQString specifier; + TQString access; + TQString functionType; + TQString language; + TQString returnType; }; class AddVariableCommand : public Command { public: - AddVariableCommand( const QString &name, FormWindow *fw, const QString &vn, const QString &a ); + AddVariableCommand( const TQString &name, FormWindow *fw, const TQString &vn, const TQString &a ); void execute(); void unexecute(); Type type() const { return AddVariable; } private: - QString varName; - QString access; + TQString varName; + TQString access; }; class SetVariablesCommand : public Command { public: - SetVariablesCommand( const QString &name, FormWindow *fw, QValueList lst ); + SetVariablesCommand( const TQString &name, FormWindow *fw, TQValueList lst ); void execute(); void unexecute(); Type type() const { return SetVariables; } private: - QValueList oldList, newList; + TQValueList oldList, newList; }; class RemoveVariableCommand : public Command { public: - RemoveVariableCommand( const QString &name, FormWindow *fw, const QString &vn ); + RemoveVariableCommand( const TQString &name, FormWindow *fw, const TQString &vn ); void execute(); void unexecute(); Type type() const { return RemoveVariable; } private: - QString varName; - QString access; + TQString varName; + TQString access; }; class EditDefinitionsCommand : public Command { public: - EditDefinitionsCommand( const QString &name, FormWindow *fw, LanguageInterface *lf, - const QString &n, const QStringList &l ); + EditDefinitionsCommand( const TQString &name, FormWindow *fw, LanguageInterface *lf, + const TQString &n, const TQStringList &l ); void execute(); void unexecute(); Type type() const { return EditDefinitions; } private: LanguageInterface *lIface; - QString defName; - QStringList newList, oldList; + TQString defName; + TQStringList newList, oldList; }; class LowerCommand : public Command { public: - LowerCommand( const QString &name, FormWindow *fw, const QWidgetList &w ); + LowerCommand( const TQString &name, FormWindow *fw, const TQWidgetList &w ); void execute(); void unexecute(); Type type() const { return Lower; } private: - QWidgetList widgets; + TQWidgetList widgets; }; class RaiseCommand : public Command { public: - RaiseCommand( const QString &name, FormWindow *fw, const QWidgetList &w ); + RaiseCommand( const TQString &name, FormWindow *fw, const TQWidgetList &w ); void execute(); void unexecute(); Type type() const { return Raise; } private: - QWidgetList widgets; + TQWidgetList widgets; }; class PasteCommand : public Command { public: - PasteCommand( const QString &n, FormWindow *fw, const QWidgetList &w ); + PasteCommand( const TQString &n, FormWindow *fw, const TQWidgetList &w ); void execute(); void unexecute(); Type type() const { return Paste; } private: - QWidgetList widgets; + TQWidgetList widgets; }; class TabOrderCommand : public Command { public: - TabOrderCommand( const QString &n, FormWindow *fw, const QWidgetList &ol, const QWidgetList &nl ); + TabOrderCommand( const TQString &n, FormWindow *fw, const TQWidgetList &ol, const TQWidgetList &nl ); void execute(); void unexecute(); @@ -763,7 +763,7 @@ public: bool canMerge( Command *c ); private: - QWidgetList oldOrder, newOrder; + TQWidgetList oldOrder, newOrder; }; @@ -772,13 +772,13 @@ class PopulateListBoxCommand : public Command public: struct Item { - QString text; - QPixmap pix; + TQString text; + TQPixmap pix; Q_DUMMY_COMPARISON_OPERATOR( Item ) }; - PopulateListBoxCommand( const QString &n, FormWindow *fw, - QListBox *lb, const QValueList &items ); + PopulateListBoxCommand( const TQString &n, FormWindow *fw, + TQListBox *lb, const TQValueList &items ); void execute(); void unexecute(); Type type() const { return PopulateListBox; } @@ -786,8 +786,8 @@ public: bool operator==( const PopulateListBoxCommand & ) const; private: - QValueList oldItems, newItems; - QListBox *listbox; + TQValueList oldItems, newItems; + TQListBox *listbox; }; @@ -796,13 +796,13 @@ class PopulateIconViewCommand : public Command public: struct Item { - QString text; - QPixmap pix; + TQString text; + TQPixmap pix; Q_DUMMY_COMPARISON_OPERATOR( Item ) }; - PopulateIconViewCommand( const QString &n, FormWindow *fw, - QIconView *iv, const QValueList &items ); + PopulateIconViewCommand( const TQString &n, FormWindow *fw, + TQIconView *iv, const TQValueList &items ); void execute(); void unexecute(); Type type() const { return PopulateIconView; } @@ -810,41 +810,41 @@ public: bool operator==( const PopulateIconViewCommand & ) const; private: - QValueList oldItems, newItems; - QIconView *iconview; + TQValueList oldItems, newItems; + TQIconView *iconview; }; class PopulateListViewCommand : public Command { public: - PopulateListViewCommand( const QString &n, FormWindow *fw, - QListView *lv, QListView *from ); + PopulateListViewCommand( const TQString &n, FormWindow *fw, + TQListView *lv, TQListView *from ); void execute(); void unexecute(); Type type() const { return PopulateListView; } - static void transferItems( QListView *from, QListView *to ); + static void transferItems( TQListView *from, TQListView *to ); bool operator==( const PopulateListViewCommand & ) const; private: - QListView *oldItems, *newItems; - QListView *listview; + TQListView *oldItems, *newItems; + TQListView *listview; }; class PopulateMultiLineEditCommand : public Command { public: - PopulateMultiLineEditCommand( const QString &n, FormWindow *fw, - QTextEdit *mle, const QString &txt ); + PopulateMultiLineEditCommand( const TQString &n, FormWindow *fw, + TQTextEdit *mle, const TQString &txt ); void execute(); void unexecute(); Type type() const { return PopulateMultiLineEdit; } private: - QString newText, oldText; - QTextEdit *mlined; + TQString newText, oldText; + TQTextEdit *mlined; bool wasChanged; }; @@ -854,46 +854,46 @@ class PopulateTableCommand : public Command public: struct Row { - QString text; - QPixmap pix; + TQString text; + TQPixmap pix; Q_DUMMY_COMPARISON_OPERATOR( Row ) }; struct Column { - QString text; - QPixmap pix; - QString field; + TQString text; + TQPixmap pix; + TQString field; Q_DUMMY_COMPARISON_OPERATOR( Column ) }; - PopulateTableCommand( const QString &n, FormWindow *fw, QTable *t, - const QValueList &rows, - const QValueList &columns ); + PopulateTableCommand( const TQString &n, FormWindow *fw, TQTable *t, + const TQValueList &rows, + const TQValueList &columns ); void execute(); void unexecute(); Type type() const { return PopulateTable; } private: - QValueList oldRows, newRows; - QValueList oldColumns, newColumns; - QTable *table; + TQValueList oldRows, newRows; + TQValueList oldColumns, newColumns; + TQTable *table; }; class AddActionToToolBarCommand : public Command { public: - AddActionToToolBarCommand( const QString &n, FormWindow *fw, - QAction *a, QDesignerToolBar *tb, int idx ); + AddActionToToolBarCommand( const TQString &n, FormWindow *fw, + TQAction *a, QDesignerToolBar *tb, int idx ); void execute(); void unexecute(); Type type() const { return AddActionToToolBar; } private: - QAction *action; + TQAction *action; QDesignerToolBar *toolBar; int index; @@ -902,8 +902,8 @@ private: class RemoveActionFromToolBarCommand : public AddActionToToolBarCommand { public: - RemoveActionFromToolBarCommand( const QString &n, FormWindow *fw, - QAction *a, QDesignerToolBar *tb, int idx ) + RemoveActionFromToolBarCommand( const TQString &n, FormWindow *fw, + TQAction *a, QDesignerToolBar *tb, int idx ) : AddActionToToolBarCommand( n, fw, a, tb, idx ) {} void execute() { AddActionToToolBarCommand::unexecute(); } @@ -917,7 +917,7 @@ public: class AddToolBarCommand : public Command { public: - AddToolBarCommand( const QString &n, FormWindow *fw, QMainWindow *mw ); + AddToolBarCommand( const TQString &n, FormWindow *fw, TQMainWindow *mw ); void execute(); void unexecute(); @@ -925,14 +925,14 @@ public: protected: QDesignerToolBar *toolBar; - QMainWindow *mainWindow; + TQMainWindow *mainWindow; }; class RemoveToolBarCommand : public AddToolBarCommand { public: - RemoveToolBarCommand( const QString &n, FormWindow *fw, QMainWindow *mw, QDesignerToolBar *tb ) + RemoveToolBarCommand( const TQString &n, FormWindow *fw, TQMainWindow *mw, QDesignerToolBar *tb ) : AddToolBarCommand( n, fw, mw ) { toolBar = tb; } void execute() { AddToolBarCommand::unexecute(); } @@ -946,8 +946,8 @@ struct QWidgetContainerInterfacePrivate; class AddContainerPageCommand : public Command { public: - AddContainerPageCommand( const QString &n, FormWindow *fw, - QWidget *c, const QString &label ); + AddContainerPageCommand( const TQString &n, FormWindow *fw, + TQWidget *c, const TQString &label ); ~AddContainerPageCommand(); @@ -956,11 +956,11 @@ public: Type type() const { return AddContainerPage; } private: - QString wClassName; - QWidget *container; + TQString wClassName; + TQWidget *container; int index; - QString pageLabel; - QWidget *page; + TQString pageLabel; + TQWidget *page; QWidgetContainerInterfacePrivate *wiface; }; @@ -968,8 +968,8 @@ private: class DeleteContainerPageCommand : public Command { public: - DeleteContainerPageCommand( const QString &n, FormWindow *fw, - QWidget *container, int index ); + DeleteContainerPageCommand( const TQString &n, FormWindow *fw, + TQWidget *container, int index ); ~DeleteContainerPageCommand(); void execute(); @@ -977,11 +977,11 @@ public: Type type() const { return DeleteContainerPage; } private: - QString wClassName; - QWidget *container; + TQString wClassName; + TQWidget *container; int index; - QString pageLabel; - QWidget *page; + TQString pageLabel; + TQWidget *page; QWidgetContainerInterfacePrivate *wiface; }; @@ -989,9 +989,9 @@ private: class RenameContainerPageCommand : public Command { public: - RenameContainerPageCommand( const QString &n, FormWindow *fw, - QWidget *container, int index, - const QString &label ); + RenameContainerPageCommand( const TQString &n, FormWindow *fw, + TQWidget *container, int index, + const TQString &label ); ~RenameContainerPageCommand(); void execute(); @@ -999,10 +999,10 @@ public: Type type() const { return RenameContainerPage; } private: - QString wClassName; - QWidget *container; + TQString wClassName; + TQWidget *container; int index; - QString oldLabel, newLabel; + TQString oldLabel, newLabel; QWidgetContainerInterfacePrivate *wiface; }; @@ -1010,7 +1010,7 @@ private: class AddActionToPopupCommand : public Command { public: - AddActionToPopupCommand( const QString &n, + AddActionToPopupCommand( const TQString &n, FormWindow *fw, PopupMenuEditor *m, PopupMenuEditorItem *i, @@ -1019,7 +1019,7 @@ public: void unexecute(); Type type() const { return AddActionToPopup; } protected: - QString constructName() const; + TQString constructName() const; PopupMenuEditor *menu; PopupMenuEditorItem *item; int index; @@ -1029,7 +1029,7 @@ private: class RemoveActionFromPopupCommand : public AddActionToPopupCommand { public: - RemoveActionFromPopupCommand( const QString &n, + RemoveActionFromPopupCommand( const TQString &n, FormWindow *fw, PopupMenuEditor *m, int idx ); @@ -1043,7 +1043,7 @@ private: class ExchangeActionInPopupCommand : public Command { public: - ExchangeActionInPopupCommand( const QString &n, + ExchangeActionInPopupCommand( const TQString &n, FormWindow *fw, PopupMenuEditor *m, int a, @@ -1061,7 +1061,7 @@ private: class MoveActionInPopupCommand : public Command { public: - MoveActionInPopupCommand( const QString &n, + MoveActionInPopupCommand( const TQString &n, FormWindow *fw, PopupMenuEditor *m, int a, @@ -1079,41 +1079,41 @@ private: class ActionCommand : public Command { public: - ActionCommand( const QString &n, + ActionCommand( const TQString &n, FormWindow *fw, - QAction *a ) + TQAction *a ) : Command( n, fw ), action( a ) { } virtual Type type() const = 0; protected: ActionEditor *actionEditor(); - QAction *action; + TQAction *action; }; class RenameActionCommand : public ActionCommand { public: - RenameActionCommand( const QString &n, + RenameActionCommand( const TQString &n, FormWindow *fw, - QAction *a, + TQAction *a, PopupMenuEditor *m, - QString nm ); + TQString nm ); void execute(); void unexecute(); Type type() const { return RenameAction; } private: PopupMenuEditor *menu; - QString newName; - QString oldName; + TQString newName; + TQString oldName; }; class SetActionIconsCommand : public ActionCommand { public: - SetActionIconsCommand( const QString &n, + SetActionIconsCommand( const TQString &n, FormWindow *fw, - QAction *a, + TQAction *a, PopupMenuEditor *m, - QIconSet &icons ); + TQIconSet &icons ); void execute(); void unexecute(); Type type() const { return SetActionIcons; } @@ -1121,23 +1121,23 @@ protected: void updateActionEditorItem(); private: PopupMenuEditor *menu; - QIconSet newIcons; - QIconSet oldIcons; + TQIconSet newIcons; + TQIconSet oldIcons; }; class AddMenuCommand : public Command { public: - AddMenuCommand( const QString &n, + AddMenuCommand( const TQString &n, FormWindow *fw, MenuBarEditor *b, MenuBarEditorItem *i, int idx = -1 ); - AddMenuCommand( const QString &n, + AddMenuCommand( const TQString &n, FormWindow *fw, - QMainWindow *mw, - const QString &nm = "Menu" ); + TQMainWindow *mw, + const TQString &nm = "Menu" ); void execute(); void unexecute(); @@ -1145,7 +1145,7 @@ public: protected: MenuBarEditor *mb; MenuBarEditorItem *item; - QString name; + TQString name; int index; private: }; @@ -1153,7 +1153,7 @@ private: class RemoveMenuCommand : public AddMenuCommand { public: - RemoveMenuCommand( const QString &n, + RemoveMenuCommand( const TQString &n, FormWindow *fw, MenuBarEditor *b, int idx ); @@ -1167,7 +1167,7 @@ private: class ExchangeMenuCommand : public Command { public: - ExchangeMenuCommand( const QString &n, + ExchangeMenuCommand( const TQString &n, FormWindow *fw, MenuBarEditor *b, int i, @@ -1186,7 +1186,7 @@ private: class MoveMenuCommand : public Command { public: - MoveMenuCommand( const QString &n, + MoveMenuCommand( const TQString &n, FormWindow *fw, MenuBarEditor *b, int i, @@ -1204,55 +1204,55 @@ private: class RenameMenuCommand : public Command { public: - RenameMenuCommand( const QString &n, + RenameMenuCommand( const TQString &n, FormWindow *fw, MenuBarEditor *m, - QString nm, + TQString nm, MenuBarEditorItem *i ); void execute(); void unexecute(); Type type() const { return RenameMenu; } - static QString makeLegal( const QString &str ); + static TQString makeLegal( const TQString &str ); private: MenuBarEditor *bar; MenuBarEditorItem *item; - QString newName; - QString oldName; + TQString newName; + TQString oldName; }; class AddToolBoxPageCommand : public Command { public: - AddToolBoxPageCommand( const QString &n, FormWindow *fw, - QToolBox *tw, const QString &label ); + AddToolBoxPageCommand( const TQString &n, FormWindow *fw, + TQToolBox *tw, const TQString &label ); void execute(); void unexecute(); Type type() const { return AddToolBoxPage; } private: - QToolBox *toolBox; + TQToolBox *toolBox; int index; - QWidget *toolBoxPage; - QString toolBoxLabel; + TQWidget *toolBoxPage; + TQString toolBoxLabel; }; class DeleteToolBoxPageCommand : public Command { public: - DeleteToolBoxPageCommand( const QString &n, FormWindow *fw, - QToolBox *tw, QWidget *page ); + DeleteToolBoxPageCommand( const TQString &n, FormWindow *fw, + TQToolBox *tw, TQWidget *page ); void execute(); void unexecute(); Type type() const { return DeleteToolBoxPage; } private: - QToolBox *toolBox; + TQToolBox *toolBox; int index; - QWidget *toolBoxPage; - QString toolBoxLabel; + TQWidget *toolBoxPage; + TQString toolBoxLabel; }; -- cgit v1.2.1