Linux multi-monitor fullscreen support
[ryzomcore.git] / studio / src / plugins / example / example_settings_page.h
blobae698edfc9daad2c59ad7a1c18310afd0f6e825f
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 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef EXAMPLE_SETTINGS_PAGE_H
22 #define EXAMPLE_SETTINGS_PAGE_H
24 #include <QtCore/QObject>
26 #include "../core/ioptions_page.h"
28 #include "ui_example_settings_page.h"
30 class QWidget;
32 namespace Plugin
35 class ExampleSettingsPage : public Core::IOptionsPage
37 Q_OBJECT
38 public:
39 ExampleSettingsPage(QObject *parent = 0);
40 virtual ~ExampleSettingsPage() {}
42 virtual QString id() const;
43 virtual QString trName() const;
44 virtual QString category() const;
45 virtual QString trCategory() const;
46 QIcon categoryIcon() const;
47 virtual QWidget *createPage(QWidget *parent);
49 virtual void apply();
50 virtual void finish() {}
52 private:
53 QWidget *m_currentPage;
54 Ui::ExampleSettingsPage m_ui;
57 } // namespace Plugin
59 #endif // EXAMPLE_SETTINGS_H