diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.cpp new file mode 100644 index 000000000..83cfdc979 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.cpp @@ -0,0 +1,80 @@ +// 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 . + +#include "log_settings_page.h" + +// Qt includes +#include + +// NeL includes + +// Project includes +namespace ExtensionSystem +{ + class IPluginManager; +} + +namespace Plugin +{ + + CLogSettingsPage::CLogSettingsPage(QObject *parent) + : IOptionsPage(parent), + _currentPage(NULL) + { + } + + QString CLogSettingsPage::id() const + { + return QLatin1String("Log"); + } + + QString CLogSettingsPage::trName() const + { + return tr("Log"); + } + + QString CLogSettingsPage::category() const + { + return QLatin1String("General"); + } + + QString CLogSettingsPage::trCategory() const + { + return tr("General"); + } + + QWidget *CLogSettingsPage::createPage(QWidget *parent) + { + _currentPage = new QWidget(parent); + _ui.setupUi(_currentPage); + return _currentPage; + } + + void CLogSettingsPage::apply() + { + //ExtensionSystem::IPluginSpec *spec, _plugMan->plugins() + //ExtensionSystem::IPluginManager; + //if (_ui.errorCheck->isChecked()) { + //displayer(); + //} + //if (_ui.warningCheck->isChecked()); + //if (_ui.debugCheck->isChecked()); + //if (_ui.assertCheck->isChecked()); + //if (_ui.infoCheck->isChecked()); + } + +} /* namespace Plugin */ \ No newline at end of file diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.h new file mode 100644 index 000000000..396afcdd3 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.h @@ -0,0 +1,58 @@ +// 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 CLogSettingsPage +*/ +class CLogSettingsPage : public Core::IOptionsPage +{ + Q_OBJECT +public: + CLogSettingsPage(QObject *parent = 0); + virtual ~CLogSettingsPage() {} + + virtual QString id() const; + virtual QString trName() const; + virtual QString category() const; + virtual QString trCategory() const; + virtual QWidget *createPage(QWidget *parent); + + virtual void apply(); + virtual void finish() {} + +private: + QWidget *_currentPage; + Ui::CLogSettingsPage _ui; +}; + +} // namespace Core + +#endif // LOG_SETTINGS_PAGE_H diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.ui b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.ui new file mode 100644 index 000000000..92faef8b6 --- /dev/null +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_settings_page.ui @@ -0,0 +1,95 @@ + + + CLogSettingsPage + + + + 0 + 0 + 256 + 207 + + + + Form + + + + + + NeL Displayers + + + + + + Error Log + + + true + + + + + + + Warning Log + + + true + + + + + + + Debug Log + + + true + + + + + + + Assert Log + + + true + + + + + + + Info Log + + + true + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + +