Fix game:addSpawnShapesByZone
[ryzomcore.git] / studio / src / plugins / core / general_settings_page.h
blobf62f5d82679bc7217c5bff335ca4b07ff0e12920
1 // Object Viewer Qt - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2011 Dzmitry KAMIAHIN (dnk-88) <dnk-88@tut.by>
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2010 Winch Gate Property Limited
6 // Copyright (C) 2014 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/>.
22 #ifndef GENERAL_SETTINGS_PAGE_H
23 #define GENERAL_SETTINGS_PAGE_H
25 #include <QtCore/QObject>
27 #include "ioptions_page.h"
29 #include "ui_general_settings_page.h"
31 class QWidget;
33 namespace Core
35 /**
36 @class GeneralSettingsPage
38 class GeneralSettingsPage : public Core::IOptionsPage
40 Q_OBJECT
42 public:
43 explicit GeneralSettingsPage(QObject *parent = 0);
44 ~GeneralSettingsPage();
46 QString id() const;
47 QString trName() const;
48 QString category() const;
49 QString trCategory() const;
50 QIcon categoryIcon() const;
51 QWidget *createPage(QWidget *parent);
53 void apply();
54 void finish();
56 void applyGeneralSettings();
58 private Q_SLOTS:
59 void changeLanguage(const QString &lang);
60 void setPluginsPath();
61 void setLevelDesignPath();
62 void setAssetsPath();
63 void setPrimitivesPath();
64 void setLigoConfigFile();
66 private:
67 void readSettings();
68 void writeSettings();
70 QPalette m_originalPalette;
71 QWidget *m_page;
72 Ui::GeneralSettingsPage m_ui;
75 } // namespace Core
77 #endif // GENERAL_SETTINGS_H