diff options
Diffstat (limited to 'kdevdesigner/designer/mainwindow.h')
-rw-r--r-- | kdevdesigner/designer/mainwindow.h | 224 |
1 files changed, 112 insertions, 112 deletions
diff --git a/kdevdesigner/designer/mainwindow.h b/kdevdesigner/designer/mainwindow.h index 43a4974a..1720229e 100644 --- a/kdevdesigner/designer/mainwindow.h +++ b/kdevdesigner/designer/mainwindow.h @@ -39,12 +39,12 @@ #include "../interfaces/sourcetemplateiface.h" #include "sourceeditor.h" -#include <qaction.h> -#include <qmainwindow.h> -#include <qmap.h> -#include <qguardedptr.h> +#include <tqaction.h> +#include <tqmainwindow.h> +#include <tqmap.h> +#include <tqguardedptr.h> #include <private/qpluginmanager_p.h> -#include <qobjectlist.h> +#include <tqobjectlist.h> class QToolBox; class PropertyEditor; @@ -69,7 +69,7 @@ class QAssistantClient; class DesignerAction; #if defined(Q_FULL_TEMPLATE_INSTANTIATION) -#include <qtoolbar.h> +#include <tqtoolbar.h> #else class QToolBar; #endif @@ -84,7 +84,7 @@ class MainWindow : public QMainWindow public: enum LineMode { Error, Step, StackFrame }; - MainWindow( KDevDesignerPart *part, bool asClient, bool single = FALSE, const QString &plgDir = "/designer" ); + MainWindow( KDevDesignerPart *part, bool asClient, bool single = FALSE, const TQString &plgDir = "/designer" ); ~MainWindow(); HierarchyView *objectHierarchy() const; @@ -99,35 +99,35 @@ public: bool unregisterClient( FormWindow *w ); void editorClosed( SourceEditor *e ); - QWidget *isAFormWindowChild( QObject *o ) const; - QWidget *isAToolBarChild( QObject *o ) const; + TQWidget *isAFormWindowChild( TQObject *o ) const; + TQWidget *isAToolBarChild( TQObject *o ) const; void insertFormWindow( FormWindow *fw ); - QWorkspace *qWorkspace() const; + TQWorkspace *qWorkspace() const; - void popupFormWindowMenu( const QPoint &gp, FormWindow *fw ); - void popupWidgetMenu( const QPoint &gp, FormWindow *fw, QWidget *w ); + void popupFormWindowMenu( const TQPoint &gp, FormWindow *fw ); + void popupWidgetMenu( const TQPoint &gp, FormWindow *fw, TQWidget *w ); - QPopupMenu *setupNormalHierarchyMenu( QWidget *parent ); - QPopupMenu *setupTabWidgetHierarchyMenu( QWidget *parent, const char *addSlot, const char *removeSlot ); + TQPopupMenu *setupNormalHierarchyMenu( TQWidget *parent ); + TQPopupMenu *setupTabWidgetHierarchyMenu( TQWidget *parent, const char *addSlot, const char *removeSlot ); - FormWindow *openFormWindow( const QString &fn, bool validFileName = TRUE, FormFile *ff = 0 ); + FormWindow *openFormWindow( const TQString &fn, bool validFileName = TRUE, FormFile *ff = 0 ); bool isCustomWidgetUsed( MetaDataBase::CustomWidget *w ); - void setGrid( const QPoint &p ); + void setGrid( const TQPoint &p ); void setShowGrid( bool b ); void setSnapGrid( bool b ); - QPoint grid() const { return grd; } + TQPoint grid() const { return grd; } bool showGrid() const { return sGrid; } bool snapGrid() const { return snGrid && sGrid; } - QString documentationPath() const; + TQString documentationPath() const; static MainWindow *self; - QString templatePath() const { return templPath; } + TQString templatePath() const { return templPath; } - void editFunction( const QString &func, bool rereadSource = FALSE ); + void editFunction( const TQString &func, bool rereadSource = FALSE ); bool isPreviewing() const { return previewing; } @@ -135,25 +135,25 @@ public: FormWindow *activeForm() const { return lastActiveFormWindow; } - TemplateWizardInterface* templateWizardInterface( const QString& className ); - QStringList sourceTemplates() const; - SourceTemplateInterface* sourceTemplateInterface( const QString& templ ); + TemplateWizardInterface* templateWizardInterface( const TQString& className ); + TQStringList sourceTemplates() const; + SourceTemplateInterface* sourceTemplateInterface( const TQString& templ ); QUnknownInterface* designerInterface() const { return desInterface; } - QPtrList<DesignerProject> projectList() const; - QStringList projectNames() const; - QStringList projectFileNames() const; - Project *findProject( const QString &projectName ) const; + TQPtrList<DesignerProject> projectList() const; + TQStringList projectNames() const; + TQStringList projectFileNames() const; + Project *findProject( const TQString &projectName ) const; void setCurrentProject( Project *pro ); - void setCurrentProjectByFilename( const QString& proFilename ); + void setCurrentProjectByFilename( const TQString& proFilename ); OutputWindow *outputWindow() const { return oWindow; } - void addPreferencesTab( QWidget *tab, const QString &title, QObject *receiver, const char *init_slot, const char *accept_slot ); - void addProjectTab( QWidget *tab, const QString &title, QObject *receiver, const char *init_slot, const char *accept_slot ); - void setModified( bool b, QWidget *window ); + void addPreferencesTab( TQWidget *tab, const TQString &title, TQObject *receiver, const char *init_slot, const char *accept_slot ); + void addProjectTab( TQWidget *tab, const TQString &title, TQObject *receiver, const char *init_slot, const char *accept_slot ); + void setModified( bool b, TQWidget *window ); void functionsChanged(); void updateFunctionList(); void updateWorkspace(); void runProjectPrecondition(); - void runProjectPostcondition( QObjectList *l ); + void runProjectPostcondition( TQObjectList *l ); void formNameChanged( FormWindow *fw ); @@ -164,15 +164,15 @@ public: void resetBreakPoints(); SourceFile *sourceFile(); - void createNewProject( const QString &lang ); + void createNewProject( const TQString &lang ); - void popupProjectMenu( const QPoint &pos ); - QObject *findRealObject( QObject *o ); + void popupProjectMenu( const TQPoint &pos ); + TQObject *findRealObject( TQObject *o ); void setSingleProject( Project *pro ); bool singleProjectMode() const { return singleProject; } - void showSourceLine( QObject *o, int line, LineMode lm ); + void showSourceLine( TQObject *o, int line, LineMode lm ); void shuttingDown(); void showGUIStuff( bool b ); @@ -182,26 +182,26 @@ public: bool showSignalHandlers() const { return sSignalHandlers; } void writeConfig(); - void openProject( const QString &fn ); - void setPluginDirectory( const QString &pd ); - QString pluginDirectory() const { return pluginDir; } + void openProject( const TQString &fn ); + void setPluginDirectory( const TQString &pd ); + TQString pluginDirectory() const { return pluginDir; } QAssistantClient* assistantClient() const { return assistant; } - void addRecentlyOpenedFile( const QString &fn ) { addRecentlyOpened( fn, recentlyFiles ); } + void addRecentlyOpenedFile( const TQString &fn ) { addRecentlyOpened( fn, recentlyFiles ); } - void statusMessage(const QString &msg); + void statusMessage(const TQString &msg); //integration KDevDesignerPart *part() const { return m_part; } public slots: - void showProperties( QObject *w ); - void updateProperties( QObject *w ); + void showProperties( TQObject *w ); + void updateProperties( TQObject *w ); void showDialogHelp(); - void showDebugStep( QObject *o, int line ); - void showStackFrame( QObject *o, int line ); - void showErrorMessage( QObject *o, int line, const QString &errorMessage ); + void showDebugStep( TQObject *o, int line ); + void showStackFrame( TQObject *o, int line ); + void showErrorMessage( TQObject *o, int line, const TQString &errorMessage ); void finishedRun(); void breakPointsChanged(); @@ -218,8 +218,8 @@ signals: void editorChanged(); protected: - bool eventFilter( QObject *o, QEvent *e ); - void closeEvent( QCloseEvent *e ); + bool eventFilter( TQObject *o, TQEvent *e ); + void closeEvent( TQCloseEvent *e ); public slots: void fileNew(); @@ -229,7 +229,7 @@ public slots: void fileQuit(); void fileCloseProject(); // not visible in menu, called from fileClose void fileOpen(); - void fileOpen( const QString &filter, const QString &extension, const QString &filename = "" , bool inProject = TRUE ); + void fileOpen( const TQString &filter, const TQString &extension, const TQString &filename = "" , bool inProject = TRUE ); bool fileSave(); bool fileSaveForm(); // not visible in menu, called from fileSave bool fileSaveProject(); // not visible in menu, called from fileSaveProject @@ -263,9 +263,9 @@ public slots: SourceEditor *editSource(); SourceEditor *editSource( SourceFile *f ); SourceEditor *openSourceEditor(); - SourceEditor *createSourceEditor( QObject *object, Project *project, - const QString &lang = QString::null, - const QString &func = QString::null, + SourceEditor *createSourceEditor( TQObject *object, Project *project, + const TQString &lang = TQString::null, + const TQString &func = TQString::null, bool rereadSource = FALSE ); void editFormSettings(); void editProjectSettings(); @@ -283,7 +283,7 @@ public slots: void searchGotoLine(); void previewForm(); - void previewForm( const QString& ); + void previewForm( const TQString& ); void toolsCustomWidget(); void toolsConfigure(); @@ -295,11 +295,11 @@ public slots: void helpRegister(); private slots: - void activeWindowChanged( QWidget *w ); - void updateUndoRedo( bool, bool, const QString &, const QString & ); + void activeWindowChanged( TQWidget *w ); + void updateUndoRedo( bool, bool, const TQString &, const TQString & ); void updateEditorUndoRedo(); - void toolSelected( QAction* ); + void toolSelected( TQAction* ); void clipboardChanged(); void selectionChanged(); @@ -308,7 +308,7 @@ private slots: void setupWindowActions(); void createNewTemplate(); - void projectSelected( QAction *a ); + void projectSelected( TQAction *a ); void setupRecentlyFilesMenu(); void setupRecentlyProjectsMenu(); @@ -344,24 +344,24 @@ private: void enableAll( bool enable ); - QWidget* previewFormInternal( QStyle* style = 0, QPalette* pal = 0 ); + TQWidget* previewFormInternal( TQStyle* style = 0, TQPalette* pal = 0 ); void readConfig(); - void setupRMBProperties( QValueList<uint> &ids, QMap<QString, int> &props, QWidget *w ); - void handleRMBProperties( int id, QMap<QString, int> &props, QWidget *w ); - void setupRMBSpecialCommands( QValueList<uint> &ids, QMap<QString, int> &commands, QWidget *w ); - void handleRMBSpecialCommands( int id, QMap<QString, int> &commands, QWidget *w ); - void setupRMBSpecialCommands( QValueList<uint> &ids, QMap<QString, int> &commands, FormWindow *w ); - void handleRMBSpecialCommands( int id, QMap<QString, int> &commands, FormWindow *w ); - bool openEditor( QWidget *w, FormWindow *fw ); + void setupRMBProperties( TQValueList<uint> &ids, TQMap<TQString, int> &props, TQWidget *w ); + void handleRMBProperties( int id, TQMap<TQString, int> &props, TQWidget *w ); + void setupRMBSpecialCommands( TQValueList<uint> &ids, TQMap<TQString, int> &commands, TQWidget *w ); + void handleRMBSpecialCommands( int id, TQMap<TQString, int> &commands, TQWidget *w ); + void setupRMBSpecialCommands( TQValueList<uint> &ids, TQMap<TQString, int> &commands, FormWindow *w ); + void handleRMBSpecialCommands( int id, TQMap<TQString, int> &commands, FormWindow *w ); + bool openEditor( TQWidget *w, FormWindow *fw ); void rebuildCustomWidgetGUI(); void rebuildCommonWidgetsToolBoxPage(); void checkTempFiles(); - void addRecentlyOpened( const QString &fn, QStringList &lst ); + void addRecentlyOpened( const TQString &fn, TQStringList &lst ); - QString whatsThisFrom( const QString &key ); + TQString whatsThisFrom( const TQString &key ); private slots: void doFunctionsChanged(); @@ -370,9 +370,9 @@ private slots: private: struct Tab { - QWidget *w; - QString title; - QObject *receiver; + TQWidget *w; + TQString title; + TQObject *receiver; const char *init_slot, *accept_slot; Q_DUMMY_COMPARISON_OPERATOR( Tab ) }; @@ -381,19 +381,19 @@ private: PropertyEditor *propertyEditor; HierarchyView *hierarchyView; Workspace *wspace; - QWidget *lastPressWidget; - QWorkspace *qworkspace; - QMenuBar *menubar; - QGuardedPtr<FormWindow> lastActiveFormWindow; + TQWidget *lastPressWidget; + TQWorkspace *qworkspace; + TQMenuBar *menubar; + TQGuardedPtr<FormWindow> lastActiveFormWindow; bool breakLayout, layoutChilds, layoutSelected; - QPoint grd; + TQPoint grd; bool sGrid, snGrid; bool restoreConfig; bool backPix; bool splashScreen; - QString fileFilter; + TQString fileFilter; - QMap<QAction*, Project*> projects; + TQMap<TQAction*, Project*> projects; DesignerAction *actionEditUndo, *actionEditRedo, *actionEditCut, *actionEditCopy, *actionEditPaste, *actionEditDelete, *actionEditAdjustSize, @@ -401,10 +401,10 @@ private: *actionEditSplitHorizontal, *actionEditSplitVertical, *actionEditSelectAll, *actionEditBreakLayout, *actionEditFunctions, *actionEditConnections, *actionEditLower, *actionEditRaise; - QAction *actionInsertSpacer; - QActionGroup *actionGroupTools, *actionGroupProjects; - QAction* actionPointerTool, *actionConnectTool, *actionOrderTool, *actionBuddyTool; - QAction* actionCurrentTool; + TQAction *actionInsertSpacer; + TQActionGroup *actionGroupTools, *actionGroupProjects; + TQAction* actionPointerTool, *actionConnectTool, *actionOrderTool, *actionBuddyTool; + TQAction* actionCurrentTool; DesignerAction *actionHelpContents, *actionHelpAbout, *actionHelpAboutQt, *actionHelpWhatsThis; DesignerAction *actionHelpManual; #if defined(QT_NON_COMMERCIAL) @@ -419,20 +419,20 @@ private: DesignerAction *actionSearchFind, *actionSearchIncremetal, *actionSearchReplace, *actionSearchGotoLine; DesignerAction *actionProjectAddFile, *actionEditPixmapCollection, *actionEditDatabaseConnections, *actionEditProjectSettings, *actionPreview; - QActionGroup *actionGroupNew; + TQActionGroup *actionGroupNew; - QPopupMenu *rmbWidgets; - QPopupMenu *rmbFormWindow; - QPopupMenu *customWidgetMenu, *windowMenu, *fileMenu, *recentlyFilesMenu, *recentlyProjectsMenu; - QPopupMenu *toolsMenu, *layoutMenu, *previewMenu; - QToolBar *customWidgetToolBar, *layoutToolBar, *projectToolBar, *customWidgetToolBar2, *toolsToolBar; - QToolBar *commonWidgetsToolBar; - QPtrList<QToolBar> widgetToolBars; + TQPopupMenu *rmbWidgets; + TQPopupMenu *rmbFormWindow; + TQPopupMenu *customWidgetMenu, *windowMenu, *fileMenu, *recentlyFilesMenu, *recentlyProjectsMenu; + TQPopupMenu *toolsMenu, *layoutMenu, *previewMenu; + TQToolBar *customWidgetToolBar, *layoutToolBar, *projectToolBar, *customWidgetToolBar2, *toolsToolBar; + TQToolBar *commonWidgetsToolBar; + TQPtrList<TQToolBar> widgetToolBars; Preferences *prefDia; - QMap<QString,QString> propertyDocumentation; + TQMap<TQString,TQString> propertyDocumentation; bool client; - QString templPath; + TQString templPath; ActionEditor *actionEditor; Project *currentProject; QPluginManager<ActionInterface> *actionPluginManager; @@ -442,47 +442,47 @@ private: QPluginManager<PreferenceInterface> *preferencePluginManager; QPluginManager<ProjectSettingsInterface> *projectSettingsPluginManager; QPluginManager<SourceTemplateInterface> *sourceTemplatePluginManager; - QPtrList<SourceEditor> sourceEditors; + TQPtrList<SourceEditor> sourceEditors; bool previewing; QUnknownInterface *desInterface; - QStringList recentlyFiles; - QStringList recentlyProjects; + TQStringList recentlyFiles; + TQStringList recentlyProjects; OutputWindow *oWindow; - QValueList<Tab> preferenceTabs; - QValueList<Tab> projectTabs; + TQValueList<Tab> preferenceTabs; + TQValueList<Tab> projectTabs; bool databaseAutoEdit; - QTimer *updateFunctionsTimer; - QTimer *autoSaveTimer; + TQTimer *updateFunctionsTimer; + TQTimer *autoSaveTimer; bool autoSaveEnabled; int autoSaveInterval; - QLineEdit *incrementalSearch; - QGuardedPtr<FindDialog> findDialog; - QGuardedPtr<ReplaceDialog> replaceDialog; - QGuardedPtr<GotoLineDialog> gotoLineDialog; + TQLineEdit *incrementalSearch; + TQGuardedPtr<FindDialog> findDialog; + TQGuardedPtr<ReplaceDialog> replaceDialog; + TQGuardedPtr<GotoLineDialog> gotoLineDialog; Project *eProject; bool inDebugMode; - QObjectList debuggingForms; - QString lastOpenFilter; - QGuardedPtr<QWidget> previewedForm; - QPopupMenu *projectMenu; - QString menuHelpFile; + TQObjectList debuggingForms; + TQString lastOpenFilter; + TQGuardedPtr<TQWidget> previewedForm; + TQPopupMenu *projectMenu; + TQString menuHelpFile; bool singleProject; - QToolBox *toolBox; + TQToolBox *toolBox; int toolsMenuId, toolsMenuIndex; uint guiStuffVisible : 1; uint editorsReadOnly : 1; uint savePluginPaths : 1; QAssistantClient *assistant; bool shStartDialog; - QString pluginDir; + TQString pluginDir; bool sSignalHandlers; KDevDesignerPart *m_part; public: - QString lastSaveFilter; - QPtrList<QAction> toolActions; - QPtrList<QAction> commonWidgetsPage; + TQString lastSaveFilter; + TQPtrList<TQAction> toolActions; + TQPtrList<TQAction> commonWidgetsPage; friend class KDevDesignerPart; }; |