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/mainwindow.h | 224 ++++++++++++++++++------------------- 1 file changed, 112 insertions(+), 112 deletions(-) (limited to 'kdevdesigner/designer/mainwindow.h') 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 -#include -#include -#include +#include +#include +#include +#include #include -#include +#include class QToolBox; class PropertyEditor; @@ -69,7 +69,7 @@ class QAssistantClient; class DesignerAction; #if defined(Q_FULL_TEMPLATE_INSTANTIATION) -#include +#include #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 projectList() const; - QStringList projectNames() const; - QStringList projectFileNames() const; - Project *findProject( const QString &projectName ) const; + TQPtrList 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 &ids, QMap &props, QWidget *w ); - void handleRMBProperties( int id, QMap &props, QWidget *w ); - void setupRMBSpecialCommands( QValueList &ids, QMap &commands, QWidget *w ); - void handleRMBSpecialCommands( int id, QMap &commands, QWidget *w ); - void setupRMBSpecialCommands( QValueList &ids, QMap &commands, FormWindow *w ); - void handleRMBSpecialCommands( int id, QMap &commands, FormWindow *w ); - bool openEditor( QWidget *w, FormWindow *fw ); + void setupRMBProperties( TQValueList &ids, TQMap &props, TQWidget *w ); + void handleRMBProperties( int id, TQMap &props, TQWidget *w ); + void setupRMBSpecialCommands( TQValueList &ids, TQMap &commands, TQWidget *w ); + void handleRMBSpecialCommands( int id, TQMap &commands, TQWidget *w ); + void setupRMBSpecialCommands( TQValueList &ids, TQMap &commands, FormWindow *w ); + void handleRMBSpecialCommands( int id, TQMap &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 lastActiveFormWindow; + TQWidget *lastPressWidget; + TQWorkspace *qworkspace; + TQMenuBar *menubar; + TQGuardedPtr lastActiveFormWindow; bool breakLayout, layoutChilds, layoutSelected; - QPoint grd; + TQPoint grd; bool sGrid, snGrid; bool restoreConfig; bool backPix; bool splashScreen; - QString fileFilter; + TQString fileFilter; - QMap projects; + TQMap 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 widgetToolBars; + TQPopupMenu *rmbWidgets; + TQPopupMenu *rmbFormWindow; + TQPopupMenu *customWidgetMenu, *windowMenu, *fileMenu, *recentlyFilesMenu, *recentlyProjectsMenu; + TQPopupMenu *toolsMenu, *layoutMenu, *previewMenu; + TQToolBar *customWidgetToolBar, *layoutToolBar, *projectToolBar, *customWidgetToolBar2, *toolsToolBar; + TQToolBar *commonWidgetsToolBar; + TQPtrList widgetToolBars; Preferences *prefDia; - QMap propertyDocumentation; + TQMap propertyDocumentation; bool client; - QString templPath; + TQString templPath; ActionEditor *actionEditor; Project *currentProject; QPluginManager *actionPluginManager; @@ -442,47 +442,47 @@ private: QPluginManager *preferencePluginManager; QPluginManager *projectSettingsPluginManager; QPluginManager *sourceTemplatePluginManager; - QPtrList sourceEditors; + TQPtrList sourceEditors; bool previewing; QUnknownInterface *desInterface; - QStringList recentlyFiles; - QStringList recentlyProjects; + TQStringList recentlyFiles; + TQStringList recentlyProjects; OutputWindow *oWindow; - QValueList preferenceTabs; - QValueList projectTabs; + TQValueList preferenceTabs; + TQValueList projectTabs; bool databaseAutoEdit; - QTimer *updateFunctionsTimer; - QTimer *autoSaveTimer; + TQTimer *updateFunctionsTimer; + TQTimer *autoSaveTimer; bool autoSaveEnabled; int autoSaveInterval; - QLineEdit *incrementalSearch; - QGuardedPtr findDialog; - QGuardedPtr replaceDialog; - QGuardedPtr gotoLineDialog; + TQLineEdit *incrementalSearch; + TQGuardedPtr findDialog; + TQGuardedPtr replaceDialog; + TQGuardedPtr gotoLineDialog; Project *eProject; bool inDebugMode; - QObjectList debuggingForms; - QString lastOpenFilter; - QGuardedPtr previewedForm; - QPopupMenu *projectMenu; - QString menuHelpFile; + TQObjectList debuggingForms; + TQString lastOpenFilter; + TQGuardedPtr 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 toolActions; - QPtrList commonWidgetsPage; + TQString lastSaveFilter; + TQPtrList toolActions; + TQPtrList commonWidgetsPage; friend class KDevDesignerPart; }; -- cgit v1.2.1