open-hyperion/ORGBExamplePlugin.h

36 lines
838 B
C
Raw Normal View History

2020-12-11 23:53:32 +00:00
#pragma once
#include "ORGBPluginInterface.h"
#include "Dependencies/ResourceManager.h"
2020-12-11 23:53:32 +00:00
#include <QObject>
#include <QString>
#include <QtPlugin>
2020-12-12 17:39:01 +00:00
#include "QWidget"
#include "QLabel"
#include "QPushButton"
#include "QDialog"
#include "QAction"
2020-12-11 23:53:32 +00:00
class ORGBPlugin : public QObject, public ORGBPluginInterface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID ORGBPluginInterface_IID)
Q_INTERFACES(ORGBPluginInterface)
public:
~ORGBPlugin() override {}
bool HasCustomIcon() const override;
QLabel* TabLabel() const override;
std::string PluginName() const override;
std::string PluginDesc() const override;
std::string PluginLocal() const override;
2020-12-12 17:39:01 +00:00
QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) const override;
private slots:
void on_ExampleButton_clicked();
2020-12-11 23:53:32 +00:00
};