/*************************************************************************** * This file is part of netctl-gui * * * * netctl-gui is free software: you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * * published by the Free Software Foundation, either version 3 of the * * License, or (at your option) any later version. * * * * netctl-gui is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with netctl-gui. If not, see http://www.gnu.org/licenses/ * ***************************************************************************/ #ifndef SETTINGSWINDOW_H #define SETTINGSWINDOW_H #include #include class MainWindow; namespace Ui { class SettingsWindow; } class SettingsWindow : public QMainWindow { Q_OBJECT public: explicit SettingsWindow(MainWindow *wid = 0, const bool debugCmd = false, const QString configFile = QString("")); ~SettingsWindow(); QMap getDefault(); QMap getSettings(); public slots: void setDefault(); void showWindow(); private slots: void addLanguages(); void saveSettings(); // buttons void selectIfaceDir(); void selectNetctlPath(); void selectNetctlAutoPath(); void selectProfileDir(); void selectRfkillDir(); void selectSudoPath(); void selectSystemctlPath(); void selectWpaActiondPath(); void selectWpaCliPath(); void selectWpaSupPath(); private: MainWindow *parent; bool debug; QString file; Ui::SettingsWindow *ui; void createActions(); // ESC pressed event void keyPressEvent(QKeyEvent *pressedKey); QMap readSettings(); void setSettings(const QMap settings); }; #endif /* SETTINGSWINDOW_H */