From 853575f591a41237a112f7613ac940afa3f194d4 Mon Sep 17 00:00:00 2001 From: dnk-88 Date: Sat, 15 Jan 2011 15:09:13 +0200 Subject: [PATCH] Changed: #1193 Code cleanup. --- .../src/plugins/core/main_window.h | 4 ++-- .../src/plugins/example/plugin1.cpp | 5 +++++ .../src/plugins/example/plugin1.h | 1 + .../src/plugins/log/log_plugin.cpp | 5 +++++ .../object_viewer_qt/src/plugins/log/log_plugin.h | 1 + .../ovqt_sheet_builder/ovqt_sheet_builder.h | 15 ++++++++------- 6 files changed, 22 insertions(+), 9 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/core/main_window.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/core/main_window.h index 49c668b14..e26cb4aab 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/core/main_window.h +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/core/main_window.h @@ -48,8 +48,8 @@ public: private Q_SLOTS: bool showOptionsDialog(const QString &group = QString(), - const QString &page = QString(), - QWidget *parent = 0); + const QString &page = QString(), + QWidget *parent = 0); void about(); private: diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp index c79ad079e..cf4400770 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp @@ -91,6 +91,11 @@ QString MyPlugin::description() const return "Example ovqt plugin."; } +QList MyPlugin::dependencies() const +{ + return QList(); +} + QObject* MyPlugin::objectByName(const QString &name) const { Q_FOREACH (QObject *qobj, _plugMan->allObjects()) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.h index f5a458873..cba55f5e0 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.h +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.h @@ -35,6 +35,7 @@ public: QString version() const; QString vendor() const; QString description() const; + QList dependencies() const; QObject *objectByName(const QString &name) const; ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const; diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp index c93503ad5..427f81af4 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp @@ -112,6 +112,11 @@ QString CLogPlugin::description() const return "DockWidget to display all log messages from NeL."; } +QList CLogPlugin::dependencies() const +{ + return QList(); +} + QObject* CLogPlugin::objectByName(const QString &name) const { Q_FOREACH (QObject *qobj, _plugMan->allObjects()) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.h index 7f81ec8d4..3ec4f6620 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.h +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.h @@ -65,6 +65,7 @@ namespace Plugin QString version() const; QString vendor() const; QString description() const; + QList dependencies() const; QObject *objectByName(const QString &name) const; ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const; diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/ovqt_sheet_builder/ovqt_sheet_builder.h b/code/nel/tools/3d/object_viewer_qt/src/plugins/ovqt_sheet_builder/ovqt_sheet_builder.h index d134c35fc..e444afd45 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/ovqt_sheet_builder/ovqt_sheet_builder.h +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/ovqt_sheet_builder/ovqt_sheet_builder.h @@ -46,15 +46,16 @@ namespace Plugin void setNelContext(NLMISC::INelContext *nelContext); - QString name() const; - QString version() const; - QString vendor() const; - QString description() const; + QString name() const; + QString version() const; + QString vendor() const; + QString description() const; QList dependencies() const; - QObject *objectByName(const QString &name) const; - ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const; - void buildSheet(bool clean); + QObject *objectByName(const QString &name) const; + ExtensionSystem::IPluginSpec *pluginByName(const QString &name) const; + + void buildSheet(bool clean); private Q_SLOTS: void execBuilderDialog();