|
|
@ -44,8 +44,8 @@ class CodeEditorExtensionManager: public QObject |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
Q_PROPERTY(QQuickItem* editor MEMBER m_editor WRITE setEditor) |
|
|
|
Q_PROPERTY(QQuickItem* tabView MEMBER m_tabView WRITE setTabView) |
|
|
|
Q_PROPERTY(QQuickItem* rightTabView MEMBER m_rightTabView WRITE setRightTabView) |
|
|
|
Q_PROPERTY(QQuickItem* headerView MEMBER m_headerView WRITE setHeaderView) |
|
|
|
Q_PROPERTY(QQuickItem* rightView MEMBER m_rightView WRITE setRightView) |
|
|
|
|
|
|
|
public: |
|
|
|
CodeEditorExtensionManager(); |
|
|
@ -57,15 +57,15 @@ public: |
|
|
|
/// Set current text editor.
|
|
|
|
void setEditor(QQuickItem*); |
|
|
|
/// Set current tab view
|
|
|
|
void setTabView(QQuickItem*); |
|
|
|
void setHeaderView(QQuickItem*); |
|
|
|
/// Set current right tab view.
|
|
|
|
void setRightTabView(QQuickItem*); |
|
|
|
void setRightView(QQuickItem*); |
|
|
|
|
|
|
|
private: |
|
|
|
QQuickItem* m_editor; |
|
|
|
QVector<std::shared_ptr<Extension>> m_features; |
|
|
|
QQuickItem* m_tabView; |
|
|
|
QQuickItem* m_rightTabView; |
|
|
|
QQuickItem* m_headerView; |
|
|
|
QQuickItem* m_rightView; |
|
|
|
QTextDocument* m_doc; |
|
|
|
AppContext* m_appContext; |
|
|
|
void loadEditor(QQuickItem* _editor); |
|
|
|