| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SETTINGSNODEJS_H |
| 4 | #define SETTINGSNODEJS_H |
| 5 | |
| 6 | #include "gui/settings/settingspanel.h" |
| 7 | |
| 8 | #include "ui_settingsnodejs.h" |
| 9 | |
| 10 | class SettingsNodejs : public SettingsPanel { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit SettingsNodejs(Settings* settings, QWidget* parent = nullptr); |
| 15 | |
| 16 | virtual QIcon icon() const; |
| 17 | virtual QString title() const; |
| 18 | virtual void loadSettings(); |
| 19 | virtual void saveSettings(); |
| 20 | |
| 21 | private slots: |
| 22 | void testNodejs(); |
| 23 | void testNpm(); |
| 24 | void testPackageFolder(); |
| 25 | |
| 26 | void changeFileFolder(LineEditWithStatus* tb, bool directory_select, const QString& file_filter = {}); |
| 27 | |
| 28 | private: |
| 29 | Ui::SettingsNodejs m_ui; |
| 30 | }; |
| 31 | |
| 32 | #endif // SETTINGSNODEJS_H |