Changeset View
Changeset View
Standalone View
Standalone View
plugins/meson/settings/mesonconfigpage.h
Show All 15 Lines | 1 | /* This file is part of KDevelop | |||
---|---|---|---|---|---|
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #pragma once | 20 | #pragma once | ||
21 | 21 | | |||
22 | #include <interfaces/configpage.h> | 22 | #include <interfaces/configpage.h> | ||
23 | #include "mesonconfig.h" | 23 | #include "mesonconfig.h" | ||
24 | #include "mesonoptions.h" | ||||
24 | 25 | | |||
25 | namespace KDevelop | 26 | namespace KDevelop | ||
26 | { | 27 | { | ||
27 | class IPlugin; | 28 | class IPlugin; | ||
28 | class IProject; | 29 | class IProject; | ||
29 | } | 30 | } | ||
30 | 31 | | |||
31 | namespace Ui { | 32 | namespace Ui { | ||
Show All 16 Lines | 46 | public Q_SLOTS: | |||
48 | void reset() override; | 49 | void reset() override; | ||
49 | 50 | | |||
50 | void addBuildDir(); | 51 | void addBuildDir(); | ||
51 | void removeBuildDir(); | 52 | void removeBuildDir(); | ||
52 | void changeBuildDirIndex(int index); | 53 | void changeBuildDirIndex(int index); | ||
53 | void emitChanged(); | 54 | void emitChanged(); | ||
54 | 55 | | |||
55 | private: | 56 | private: | ||
57 | void checkStatus(); | ||||
56 | void updateUI(); | 58 | void updateUI(); | ||
57 | void readUI(); | 59 | void readUI(); | ||
58 | void writeConfig(); | 60 | void writeConfig(); | ||
59 | void setWidgetsDisabled(bool disabled); | 61 | void setWidgetsDisabled(bool disabled); | ||
60 | 62 | | |||
61 | private: | 63 | private: | ||
62 | KDevelop::IProject *m_project = nullptr; | 64 | KDevelop::IProject *m_project = nullptr; | ||
63 | Ui::MesonConfigPage *m_ui = nullptr; | 65 | Ui::MesonConfigPage *m_ui = nullptr; | ||
64 | Meson::MesonConfig m_config; | 66 | Meson::MesonConfig m_config; | ||
65 | Meson::BuildDir m_current; | 67 | Meson::BuildDir m_current; | ||
66 | bool m_configChanged = false; | 68 | bool m_configChanged = false; | ||
69 | | ||||
70 | MESON_OPT_PTR m_options = nullptr; | ||||
67 | }; | 71 | }; |