Renaming workbenchintegration.h/.cpp to qtcreatorintegration.h/.cpp

This commit is contained in:
Alessandro Portale
2009-05-08 16:11:49 +02:00
parent 0ffc9ab76a
commit d971065b36
6 changed files with 20 additions and 20 deletions

View File

@@ -4381,9 +4381,9 @@ Using gdb 6.7 or later is strongly recommended.</source>
</message> </message>
</context> </context>
<context> <context>
<name>Designer::Internal::WorkbenchIntegration</name> <name>Designer::Internal::QtCreatorIntegration</name>
<message> <message>
<location filename="../../../src/plugins/designer/workbenchintegration.cpp" line="+72"/> <location filename="../../../src/plugins/designer/qtcreatorintegration.cpp" line="+72"/>
<source>The class definition of &apos;%1&apos; could not be found in %2.</source> <source>The class definition of &apos;%1&apos; could not be found in %2.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@@ -4080,9 +4080,9 @@ Using gdb 6.7 or later is strongly recommended.</source>
</message> </message>
</context> </context>
<context> <context>
<name>Designer::Internal::WorkbenchIntegration</name> <name>Designer::Internal::QtCreatorIntegration</name>
<message> <message>
<location filename="../../../src/plugins/designer/workbenchintegration.cpp" line="+72"/> <location filename="../../../src/plugins/designer/qtcreatorintegration.cpp" line="+72"/>
<source>The class definition of &apos;%1&apos; could not be found in %2.</source> <source>The class definition of &apos;%1&apos; could not be found in %2.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@@ -26,7 +26,7 @@ HEADERS += formeditorplugin.h \
formwindowfile.h \ formwindowfile.h \
formwindowhost.h \ formwindowhost.h \
formwizard.h \ formwizard.h \
workbenchintegration.h \ qtcreatorintegration.h \
designerconstants.h \ designerconstants.h \
settingspage.h \ settingspage.h \
editorwidget.h \ editorwidget.h \
@@ -41,7 +41,7 @@ SOURCES += formeditorplugin.cpp \
formwindowfile.cpp \ formwindowfile.cpp \
formwindowhost.cpp \ formwindowhost.cpp \
formwizard.cpp \ formwizard.cpp \
workbenchintegration.cpp \ qtcreatorintegration.cpp \
settingspage.cpp \ settingspage.cpp \
editorwidget.cpp \ editorwidget.cpp \
formeditorw.cpp \ formeditorw.cpp \

View File

@@ -33,7 +33,7 @@
#include "settingsmanager.h" #include "settingsmanager.h"
#include "settingspage.h" #include "settingspage.h"
#include "editorwidget.h" #include "editorwidget.h"
#include "workbenchintegration.h" #include "qtcreatorintegration.h"
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -238,7 +238,7 @@ void FormEditorW::fullInit()
QDesignerComponents::initializePlugins(designerEditor()); QDesignerComponents::initializePlugins(designerEditor());
QDesignerComponents::initializeResources(); QDesignerComponents::initializeResources();
initDesignerSubWindows(); initDesignerSubWindows();
m_integration = new WorkbenchIntegration(m_formeditor, this); m_integration = new QtCreatorIntegration(m_formeditor, this);
m_formeditor->setIntegration(m_integration); m_formeditor->setIntegration(m_integration);
/** /**

View File

@@ -28,7 +28,7 @@
**************************************************************************/ **************************************************************************/
#include "formeditorplugin.h" #include "formeditorplugin.h"
#include "workbenchintegration.h" #include "qtcreatorintegration.h"
#include "formeditorw.h" #include "formeditorw.h"
#include "formwindoweditor.h" #include "formwindoweditor.h"
@@ -69,7 +69,7 @@ static QString msgClassNotFound(const QString &uiClassName, const QList<Document
files += QLatin1String(", "); files += QLatin1String(", ");
files += doc->fileName(); files += doc->fileName();
} }
return WorkbenchIntegration::tr("The class definition of '%1' could not be found in %2.").arg(uiClassName, files); return QtCreatorIntegration::tr("The class definition of '%1' could not be found in %2.").arg(uiClassName, files);
} }
static inline CppTools::CppModelManagerInterface *cppModelManagerInstance() static inline CppTools::CppModelManagerInterface *cppModelManagerInstance()
@@ -78,7 +78,7 @@ static inline CppTools::CppModelManagerInterface *cppModelManagerInstance()
->getObject<CppTools::CppModelManagerInterface>(); ->getObject<CppTools::CppModelManagerInterface>();
} }
WorkbenchIntegration::WorkbenchIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent) : QtCreatorIntegration::QtCreatorIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent) :
qdesigner_internal::QDesignerIntegration(core, ::qobject_cast<QObject*>(parent)), qdesigner_internal::QDesignerIntegration(core, ::qobject_cast<QObject*>(parent)),
m_few(parent) m_few(parent)
{ {
@@ -89,14 +89,14 @@ WorkbenchIntegration::WorkbenchIntegration(QDesignerFormEditorInterface *core, F
this, SLOT(slotNavigateToSlot(QString, QString, QStringList))); this, SLOT(slotNavigateToSlot(QString, QString, QStringList)));
} }
void WorkbenchIntegration::updateSelection() void QtCreatorIntegration::updateSelection()
{ {
if (FormWindowEditor *afww = m_few->activeFormWindow()) if (FormWindowEditor *afww = m_few->activeFormWindow())
afww->updateFormWindowSelectionHandles(true); afww->updateFormWindowSelectionHandles(true);
qdesigner_internal::QDesignerIntegration::updateSelection(); qdesigner_internal::QDesignerIntegration::updateSelection();
} }
QWidget *WorkbenchIntegration::containerWindow(QWidget * /*widget*/) const QWidget *QtCreatorIntegration::containerWindow(QWidget * /*widget*/) const
{ {
FormWindowEditor *fw = m_few->activeFormWindow(); FormWindowEditor *fw = m_few->activeFormWindow();
if (!fw) if (!fw)
@@ -526,7 +526,7 @@ static ClassDocumentPtrPair
return ClassDocumentPtrPair(0, Document::Ptr()); return ClassDocumentPtrPair(0, Document::Ptr());
} }
void WorkbenchIntegration::slotNavigateToSlot(const QString &objectName, const QString &signalSignature, void QtCreatorIntegration::slotNavigateToSlot(const QString &objectName, const QString &signalSignature,
const QStringList &parameterNames) const QStringList &parameterNames)
{ {
QString errorMessage; QString errorMessage;
@@ -549,7 +549,7 @@ static inline QString uiClassName(QString formObjectName)
// Goto slot invoked by the designer context menu. Either navigates // Goto slot invoked by the designer context menu. Either navigates
// to an existing slot function or create a new one. // to an existing slot function or create a new one.
bool WorkbenchIntegration::navigateToSlot(const QString &objectName, bool QtCreatorIntegration::navigateToSlot(const QString &objectName,
const QString &signalSignature, const QString &signalSignature,
const QStringList &parameterNames, const QStringList &parameterNames,
QString *errorMessage) QString *errorMessage)

View File

@@ -27,8 +27,8 @@
** **
**************************************************************************/ **************************************************************************/
#ifndef WORKBENCHINTEGRATION_H #ifndef QTCREATORINTEGRATION_H
#define WORKBENCHINTEGRATION_H #define QTCREATORINTEGRATION_H
#include <cpptools/cppmodelmanagerinterface.h> #include <cpptools/cppmodelmanagerinterface.h>
@@ -39,10 +39,10 @@ namespace Internal {
class FormEditorW; class FormEditorW;
class WorkbenchIntegration : public qdesigner_internal::QDesignerIntegration { class QtCreatorIntegration : public qdesigner_internal::QDesignerIntegration {
Q_OBJECT Q_OBJECT
public: public:
WorkbenchIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent = 0); QtCreatorIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent = 0);
QWidget *containerWindow(QWidget *widget) const; QWidget *containerWindow(QWidget *widget) const;
@@ -63,4 +63,4 @@ private:
} // namespace Internal } // namespace Internal
} // namespace Designer } // namespace Designer
#endif // WORKBENCHINTEGRATION_H #endif // QTCREATORINTEGRATION_H