Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/gcodeeditorwidget.h
Show All 31 Lines | |||||
32 | public: | 32 | public: | ||
33 | explicit GCodeEditorWidget(QWidget *parent = nullptr); | 33 | explicit GCodeEditorWidget(QWidget *parent = nullptr); | ||
34 | void loadFile(const QUrl &file); | 34 | void loadFile(const QUrl &file); | ||
35 | 35 | | |||
36 | private: | 36 | private: | ||
37 | QMap<QUrl, KTextEditor::Document *> urlDoc; | 37 | QMap<QUrl, KTextEditor::Document *> urlDoc; | ||
38 | QMap<QUrl, QWidget *> urlTab; | 38 | QMap<QUrl, QWidget *> urlTab; | ||
39 | KTextEditor::ConfigInterface *m_interface; | 39 | KTextEditor::ConfigInterface *m_interface; | ||
40 | KTextEditor::Document *newDoc(); | 40 | KTextEditor::Document *newDoc(const QUrl &file); | ||
41 | KTextEditor::Editor *m_editor; | 41 | KTextEditor::Editor *m_editor; | ||
42 | KTextEditor::View *newView(KTextEditor::Document *doc); | 42 | KTextEditor::View *newView(KTextEditor::Document *doc); | ||
43 | QTabWidget *m_tabwidget; | 43 | QTabWidget *m_tabwidget; | ||
44 | void closeTab(int index); | 44 | void closeTab(int index); | ||
45 | void currentIndexChanged(int index); | 45 | void currentIndexChanged(int index); | ||
46 | void setupInterface(const KTextEditor::View *view); | 46 | void setupInterface(const KTextEditor::View *view); | ||
47 | void setupTabWidget(); | 47 | void setupTabWidget(); | ||
48 | 48 | | |||
49 | signals: | 49 | signals: | ||
50 | void currentFileChanged(const QUrl &file); | ||||
50 | void updateClientFactory(KTextEditor::View *view); | 51 | void updateClientFactory(KTextEditor::View *view); | ||
51 | void fileClosed(const QUrl &file); | 52 | void fileClosed(const QUrl &file); | ||
52 | }; | 53 | }; |