Changeset View
Changeset View
Standalone View
Standalone View
src/mainwindow.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
56 | protected: | 56 | protected: | ||
57 | void closeEvent(QCloseEvent *event); | 57 | void closeEvent(QCloseEvent *event); | ||
58 | void dragEnterEvent(QDragEnterEvent *event); | 58 | void dragEnterEvent(QDragEnterEvent *event); | ||
59 | void dropEvent(QDropEvent *event); | 59 | void dropEvent(QDropEvent *event); | ||
60 | 60 | | |||
61 | private: | 61 | private: | ||
62 | GCodeEditorWidget *m_gcodeEditor; | 62 | GCodeEditorWidget *m_gcodeEditor; | ||
63 | KTextEditor::View *m_currEditorView; | 63 | KTextEditor::View *m_currEditorView; | ||
64 | int m_currInstance; | ||||
64 | LateralArea m_lateral; | 65 | LateralArea m_lateral; | ||
65 | QList<QUrl> m_openFiles; | 66 | QList<QUrl> m_openFiles; | ||
66 | QString m_theme; | 67 | QString m_theme; | ||
67 | QTabWidget *m_instances; | 68 | QTabWidget *m_instances; | ||
68 | bool askToClose(); | 69 | bool askToClose(); | ||
69 | bool askToSave(const QVector<QUrl> &fileList); | 70 | bool askToSave(const QVector<QUrl> &fileList); | ||
70 | void atCoreInstanceNameChange(const QString &name); | 71 | void atCoreInstanceNameChange(const QString &name); | ||
71 | QString getTheme(); | 72 | QString getTheme(); | ||
72 | void initWidgets(); | 73 | void initWidgets(); | ||
73 | void loadFile(const QUrl &fileName); | 74 | void loadFile(const QUrl &fileName); | ||
74 | void newAtCoreInstance(); | 75 | void newAtCoreInstance(); | ||
75 | void openActionTriggered(); | 76 | void openActionTriggered(); | ||
76 | void processDropEvent(const QList<QUrl> &fileList); | 77 | void processDropEvent(const QList<QUrl> &fileList); | ||
77 | void setupActions(); | 78 | void setupActions(); | ||
78 | void setupLateralArea(); | 79 | void setupLateralArea(); | ||
79 | void toggleGCodeActions(); | 80 | void toggleGCodeActions(); | ||
81 | void updateBedSize(const QSize &newSize); | ||||
80 | void updateClientFactory(KTextEditor::View *view); | 82 | void updateClientFactory(KTextEditor::View *view); | ||
81 | 83 | | |||
82 | signals: | 84 | signals: | ||
83 | void extruderCountChanged(int count); | 85 | void extruderCountChanged(int count); | ||
84 | void profilesChanged(); | 86 | void profilesChanged(); | ||
85 | }; | 87 | }; |