Merge branch 'ryzom/rites' into main/gingo-test
[ryzomcore.git] / studio / src / startup_settings_dlg.h
blob25b9a089232b0b403769d69c770bbd826cceaaf5
1 // Ryzom Core - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2014 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
6 // Copyright (C) 2015 Laszlo KIS-ADAM (dfighter) <dfighter1985@gmail.com>
7 //
8 // This program is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU Affero General Public License as
10 // published by the Free Software Foundation, either version 3 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU Affero General Public License for more details.
18 // You should have received a copy of the GNU Affero General Public License
19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef STARTUP_SETTINGS_DIALOG_H
22 #define STARTUP_SETTINGS_DIALOG_H
24 #include "ui_startup_settings_dlg.h"
26 class QSettings;
28 class StartupSettingsDlg : public QDialog, public Ui::StartupSettingsDlg
30 Q_OBJECT
31 public:
32 StartupSettingsDlg( QDialog *parent = NULL );
33 ~StartupSettingsDlg();
35 void setSettings( QSettings *s ){ settings = s; }
37 void load();
39 public Q_SLOTS:
40 void accept();
41 void reject();
43 void onOKClicked();
44 void onCancelClicked();
46 void onPluginBClicked();
47 void onSheetsBClicked();
48 void onAssetsBClicked();
49 void onPrimitivesBClicked();
50 void onLigoBClicked();
52 void onPathAddClicked();
53 void onPathRemoveClicked();
54 void onRecursiveAddClicked();
55 void onRecursiveRemoveClicked();
57 private:
58 void setupConnections();
59 void save();
60 void saveSearchPaths();
61 void saveRecursivePaths();
63 QSettings *settings;
66 #endif