mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
GCS/core,map: Minor change to IOptionsPage.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@409 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
2c9ffd0195
commit
ab8ed38be8
@ -46,10 +46,13 @@ public:
|
|||||||
IOptionsPage(QObject *parent = 0) : QObject(parent) {}
|
IOptionsPage(QObject *parent = 0) : QObject(parent) {}
|
||||||
virtual ~IOptionsPage() {}
|
virtual ~IOptionsPage() {}
|
||||||
|
|
||||||
virtual QString id() const = 0;
|
/* gadget options pages can leave these 4 functions as is,
|
||||||
virtual QString trName() const = 0;
|
since they are decorated by UAVGadgetOptionsPageDecorator,
|
||||||
virtual QString category() const = 0;
|
all other options pages must override these */
|
||||||
virtual QString trCategory() const = 0;
|
virtual QString id() const { return ""; };
|
||||||
|
virtual QString trName() const { return ""; };
|
||||||
|
virtual QString category() const { return "DefaultCategory"; };
|
||||||
|
virtual QString trCategory() const { return "DefaultCategory"; };
|
||||||
|
|
||||||
virtual QWidget *createPage(QWidget *parent) = 0;
|
virtual QWidget *createPage(QWidget *parent) = 0;
|
||||||
virtual void apply() = 0;
|
virtual void apply() = 0;
|
||||||
|
@ -44,10 +44,6 @@ class MapGadgetOptionsPage : public IOptionsPage
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit MapGadgetOptionsPage(MapGadgetConfiguration *config, QObject *parent = 0);
|
explicit MapGadgetOptionsPage(MapGadgetConfiguration *config, QObject *parent = 0);
|
||||||
QString id() const { return ""; }
|
|
||||||
QString trName() const { return ""; }
|
|
||||||
QString category() const { return ""; }
|
|
||||||
QString trCategory() const { return ""; }
|
|
||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user