Fix game:addSpawnShapesByZone
[ryzomcore.git] / studio / src / plugins / example / example_settings_page.cpp
blob8b12aea0b746a9d257e3a16c0e2f9b8cf0931fa8
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/>.
20 #include "example_settings_page.h"
22 // Qt includes
23 #include <QtGui/QWidget>
25 // NeL includes
27 // Project includes
29 namespace Plugin
32 ExampleSettingsPage::ExampleSettingsPage(QObject *parent)
33 : IOptionsPage(parent),
34 m_currentPage(0)
38 QString ExampleSettingsPage::id() const
40 return QLatin1String("ExamplePage");
43 QString ExampleSettingsPage::trName() const
45 return tr("Example page");
48 QString ExampleSettingsPage::category() const
50 return QLatin1String("Example");
53 QString ExampleSettingsPage::trCategory() const
55 return tr("Example");
58 QIcon ExampleSettingsPage::categoryIcon() const
60 return QIcon();
63 QWidget *ExampleSettingsPage::createPage(QWidget *parent)
65 m_currentPage = new QWidget(parent);
66 m_ui.setupUi(m_currentPage);
67 return m_currentPage;
70 void ExampleSettingsPage::apply()
74 } /* namespace Plugin */