forked from qt-creator/qt-creator
Export FormWindowEditor from the designer plugin.
The Qt4ProjectManagerPlugin needs that for the dynamic ui completion. Reviewed-By: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
TARGET = Designer
|
TARGET = Designer
|
||||||
|
DEFINES += DESIGNER_LIBRARY
|
||||||
|
|
||||||
include(../../qtcreatorplugin.pri)
|
include(../../qtcreatorplugin.pri)
|
||||||
include(../../shared/designerintegrationv2/designerintegration.pri)
|
include(../../shared/designerintegrationv2/designerintegration.pri)
|
||||||
@@ -33,7 +34,8 @@ HEADERS += formeditorplugin.h \
|
|||||||
formeditorw.h \
|
formeditorw.h \
|
||||||
settingsmanager.h \
|
settingsmanager.h \
|
||||||
formtemplatewizardpage.h \
|
formtemplatewizardpage.h \
|
||||||
formwizarddialog.h
|
formwizarddialog.h \
|
||||||
|
designer_export.h
|
||||||
|
|
||||||
SOURCES += formeditorplugin.cpp \
|
SOURCES += formeditorplugin.cpp \
|
||||||
formeditorfactory.cpp \
|
formeditorfactory.cpp \
|
||||||
|
|||||||
@@ -356,3 +356,10 @@ QString FormWindowEditor::contextHelpId() const
|
|||||||
return className;
|
return className;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString FormWindowEditor::contents() const
|
||||||
|
{
|
||||||
|
if (m_host && m_host->formWindow())
|
||||||
|
return m_host->formWindow()->contents();
|
||||||
|
return QString::null;
|
||||||
|
}
|
||||||
|
|||||||
@@ -35,6 +35,8 @@
|
|||||||
#include <QtCore/QByteArray>
|
#include <QtCore/QByteArray>
|
||||||
#include <QtCore/QStringList>
|
#include <QtCore/QStringList>
|
||||||
|
|
||||||
|
#include "designer_export.h"
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QDesignerFormWindowInterface;
|
class QDesignerFormWindowInterface;
|
||||||
class QDesignerFormWindowManagerInterface;
|
class QDesignerFormWindowManagerInterface;
|
||||||
@@ -56,7 +58,7 @@ class EditorWidget;
|
|||||||
// Master class maintaining a form window editor,
|
// Master class maintaining a form window editor,
|
||||||
// containing file and widget host
|
// containing file and widget host
|
||||||
|
|
||||||
class FormWindowEditor : public Core::IEditor
|
class DESIGNER_EXPORT FormWindowEditor : public Core::IEditor
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -88,6 +90,8 @@ public:
|
|||||||
void updateFormWindowSelectionHandles(bool state);
|
void updateFormWindowSelectionHandles(bool state);
|
||||||
void setSuggestedFileName(const QString &fileName);
|
void setSuggestedFileName(const QString &fileName);
|
||||||
|
|
||||||
|
QString contents() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
// Internal
|
// Internal
|
||||||
void opened(const QString &fileName);
|
void opened(const QString &fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user