2011-02-21 13:15:42 +00:00
|
|
|
// Object Viewer Qt - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
|
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
|
|
// Copyright (C) 2011 Dzmitry Kamiahin <dnk-88@tut.by>
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program 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 Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LOG_SETTINGS_PAGE_H
|
|
|
|
#define LOG_SETTINGS_PAGE_H
|
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
|
|
|
#include "../core/ioptions_page.h"
|
|
|
|
|
|
|
|
#include "ui_log_settings_page.h"
|
|
|
|
|
|
|
|
class QWidget;
|
|
|
|
|
|
|
|
namespace Plugin
|
|
|
|
{
|
2011-07-07 21:56:05 +00:00
|
|
|
class CLogPlugin;
|
|
|
|
|
2011-05-28 20:06:01 +00:00
|
|
|
/**
|
|
|
|
@class CLogSettingsPage
|
|
|
|
*/
|
|
|
|
class CLogSettingsPage : public Core::IOptionsPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2011-07-07 21:56:05 +00:00
|
|
|
CLogSettingsPage(CLogPlugin *logPlugin, QObject *parent = 0);
|
2011-05-28 20:06:01 +00:00
|
|
|
virtual ~CLogSettingsPage() {}
|
|
|
|
|
|
|
|
virtual QString id() const;
|
|
|
|
virtual QString trName() const;
|
|
|
|
virtual QString category() const;
|
|
|
|
virtual QString trCategory() const;
|
|
|
|
QIcon categoryIcon() const;
|
|
|
|
virtual QWidget *createPage(QWidget *parent);
|
|
|
|
|
|
|
|
virtual void apply();
|
|
|
|
virtual void finish() {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
void readSettings();
|
|
|
|
void writeSettings();
|
|
|
|
|
2011-07-07 21:56:05 +00:00
|
|
|
CLogPlugin *m_logPlugin;
|
2011-05-28 20:06:01 +00:00
|
|
|
QWidget *m_currentPage;
|
|
|
|
Ui::CLogSettingsPage m_ui;
|
|
|
|
|
|
|
|
bool m_error;
|
|
|
|
bool m_warning;
|
|
|
|
bool m_debug;
|
|
|
|
bool m_assert;
|
|
|
|
bool m_info;
|
|
|
|
};
|
2011-02-21 13:15:42 +00:00
|
|
|
|
|
|
|
} // namespace Core
|
|
|
|
|
|
|
|
#endif // LOG_SETTINGS_PAGE_H
|