Changed: #1206 Update core plugin.

This commit is contained in:
dnk-88 2011-01-18 12:03:29 +02:00
parent 9bc57cd810
commit 48ea68f701
5 changed files with 14 additions and 13 deletions

View file

@ -9,9 +9,7 @@ SET(OVQT_EXT_SYS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin.
${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_spec.h) ${CMAKE_CURRENT_SOURCE_DIR}/../../extension_system/iplugin_spec.h)
SET(OVQT_CORE_PLUGIN_HDR SET(OVQT_CORE_PLUGIN_HDR
ioptions_page.h
core_plugin.h core_plugin.h
core_constants.h
main_window.h main_window.h
settings_dialog.h settings_dialog.h
qnel_widget.h qnel_widget.h

View file

@ -34,6 +34,7 @@ namespace Core
class IOptionsPage class IOptionsPage
{ {
public: public:
virtual ~IOptionsPage() {}
/// id() is a unique identifier for referencing this page /// id() is a unique identifier for referencing this page
virtual QString id() const = 0; virtual QString id() const = 0;

View file

@ -32,22 +32,22 @@ namespace Core
/** /**
@class CSearchPathsSettingsPage @class CSearchPathsSettingsPage
*/ */
class CSearchPathsSettingsPage : public QObject, public IOptionsPage class CSearchPathsSettingsPage : public QObject, public Core::IOptionsPage
{ {
Q_OBJECT Q_OBJECT
Q_INTERFACES(IOptionsPage) Q_INTERFACES(Core::IOptionsPage)
public: public:
CSearchPathsSettingsPage(QObject *parent = 0); CSearchPathsSettingsPage(QObject *parent = 0);
virtual ~CSearchPathsSettingsPage() {} ~CSearchPathsSettingsPage() {}
virtual QString id() const; QString id() const;
virtual QString trName() const; QString trName() const;
virtual QString category() const; QString category() const;
virtual QString trCategory() const; QString trCategory() const;
virtual QWidget *createPage(QWidget *parent); QWidget *createPage(QWidget *parent);
virtual void apply(); void apply();
virtual void finish() {} void finish() {}
private: private:
QWidget *_currentPage; QWidget *_currentPage;

View file

@ -14,6 +14,9 @@
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>9</number>
</property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QGroupBox" name="searchPathsGroupBox"> <widget class="QGroupBox" name="searchPathsGroupBox">
<property name="title"> <property name="title">

View file

@ -18,7 +18,6 @@
#include "settings_dialog.h" #include "settings_dialog.h"
#include "nel/misc/debug.h"
// Qt includes // Qt includes
#include <QtGui/QHeaderView> #include <QtGui/QHeaderView>
#include <QtGui/QPushButton> #include <QtGui/QPushButton>