~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qmldesigner/components/integration/designdocument.h

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
class QmlObjectNode;
58
58
class CrumbleBarInfo;
59
59
class ViewManager;
60
 
class QmlModelView;
 
60
class AbstractView;
61
61
 
62
62
class QMLDESIGNERCORE_EXPORT DesignDocument: public QObject
63
63
{
70
70
    QString simplfiedDisplayName() const;
71
71
 
72
72
    void loadDocument(QPlainTextEdit *edit);
73
 
    void activateDocumentModel();
 
73
    void attachRewriterToModel();
74
74
    void close();
75
75
    void updateSubcomponentManager();
76
76
 
97
97
 
98
98
    void resetToDocumentModel();
99
99
 
100
 
    void goIntoSelectedComponent();
101
 
 
102
100
    void changeToDocumentModel();
103
101
 
104
102
signals:
119
117
    void undo();
120
118
    void redo();
121
119
    void updateActiveQtVersion();
122
 
    void changeToSubComponentAndPushOnCrumblePath(const ModelNode &componentNode);
123
120
    void changeToSubComponent(const ModelNode &componentNode);
124
 
    void changeToExternalSubComponent(const QString &m_oldFileName);
 
121
    void changeToMaster();
125
122
 
126
123
private slots:
127
124
    void updateFileName(const QString &oldFileName, const QString &newFileName);
128
125
 
129
126
private: // functions
130
 
    void changeToInFileComponentModel();
131
 
    void activateCurrentModel(TextModifier *textModifier);
 
127
    void changeToInFileComponentModel(ComponentTextModifier *textModifer);
132
128
 
133
129
    QWidget *centralWidget() const;
134
130
    QString pathToQt() const;
140
136
 
141
137
    bool loadInFileComponent(const ModelNode &componentNode);
142
138
 
143
 
    QmlModelView *qmlModelView();
 
139
    AbstractView *view();
 
140
 
 
141
    Model *createInFileComponentModel();
144
142
 
145
143
private: // variables
146
 
    QScopedPointer<QStackedWidget> m_stackedWidget;
147
144
    QScopedPointer<Model> m_documentModel;
148
145
    QScopedPointer<Model> m_inFileComponentModel;
149
 
    QWeakPointer<Model> m_currentModel;
150
146
    QWeakPointer<Core::IEditor> m_textEditor;
151
147
    QScopedPointer<BaseTextEditModifier> m_documentTextModifier;
152
148
    QScopedPointer<ComponentTextModifier> m_inFileComponentTextModifier;