diff --git a/ORGBExamplePlugin.cpp b/ORGBExamplePlugin.cpp index 750d5de..722571a 100644 --- a/ORGBExamplePlugin.cpp +++ b/ORGBExamplePlugin.cpp @@ -1,6 +1,18 @@ #include "ORGBExamplePlugin.h" #include "Dependencies/ResourceManager.h" +bool ORGBPlugin::HasCustomIcon() const +{ + return false; +} + +QLabel* ORGBPlugin::TabLabel() const +{ + QLabel *TLabel = new QLabel(); + TLabel->setText("Example"); + return TLabel; +} + std::string ORGBPlugin::PluginName() const { return "ExamplePlugin"; diff --git a/ORGBExamplePlugin.h b/ORGBExamplePlugin.h index 681b6f8..3c1b858 100644 --- a/ORGBExamplePlugin.h +++ b/ORGBExamplePlugin.h @@ -1,6 +1,6 @@ #pragma once -#include "ORGBExamplePluginInterface.h" +#include "ORGBPluginInterface.h" #include "Dependencies/ResourceManager.h" #include @@ -21,9 +21,12 @@ class ORGBPlugin : public QObject, public ORGBPluginInterface public: ~ORGBPlugin() override {} - std::string PluginName() const override; - std::string PluginDesc() const override; - std::string PluginLocal() const override; + bool HasCustomIcon() const override; + QLabel* TabLabel() const override; + + std::string PluginName() const override; + std::string PluginDesc() const override; + std::string PluginLocal() const override; QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) const override; diff --git a/ORGBExamplePlugin.pro b/ORGBExamplePlugin.pro index 5ede55f..358b396 100644 --- a/ORGBExamplePlugin.pro +++ b/ORGBExamplePlugin.pro @@ -16,7 +16,6 @@ SOURCES += \ ORGBExamplePlugin.cpp HEADERS += \ - ORGBExamplePluginInterface.h \ ORGBExamplePlugin.h \ Dependencies/ResourceManager.h \ Dependencies/RGBController.h \ @@ -26,6 +25,7 @@ HEADERS += \ Dependencies/NetworkProtocol.h \ Dependencies/net_port.h \ Dependencies/json.hpp \ + ORGBPluginInterface.h # Default rules for deployment. unix { diff --git a/ORGBPluginInterface.h b/ORGBPluginInterface.h index 99b554d..3185560 100644 --- a/ORGBPluginInterface.h +++ b/ORGBPluginInterface.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include "Dependencies/ResourceManager.h" class QString; @@ -11,9 +12,12 @@ class ORGBPluginInterface public: virtual ~ORGBPluginInterface() {} - virtual std::string PluginName() const = 0; - virtual std::string PluginDesc() const = 0; - virtual std::string PluginLocal() const = 0; + virtual bool HasCustomIcon() const = 0; + virtual QLabel* TabLabel() const = 0; + + virtual std::string PluginName() const = 0; + virtual std::string PluginDesc() const = 0; + virtual std::string PluginLocal() const = 0; virtual QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) const = 0; };