// Object Viewer Qt - MMORPG Framework // Copyright (C) 2010 Winch Gate Property Limited // Copyright (C) 2011 Dzmitry Kamiahin // // 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 . #ifndef LOG_SETTINGS_PAGE_H #define LOG_SETTINGS_PAGE_H #include #include "../core/ioptions_page.h" #include "ui_log_settings_page.h" class QWidget; namespace Plugin { class CLogPlugin; /** @class CLogSettingsPage */ class CLogSettingsPage : public Core::IOptionsPage { Q_OBJECT public: CLogSettingsPage(CLogPlugin *logPlugin, QObject *parent = 0); 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(); CLogPlugin *m_logPlugin; QWidget *m_currentPage; Ui::CLogSettingsPage m_ui; bool m_error; bool m_warning; bool m_debug; bool m_assert; bool m_info; }; } // namespace Core #endif // LOG_SETTINGS_PAGE_H