Files
OpenRGB/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.h
Chris 2e02f1d782 Adding ability to switch language files at runtime to resolve #2743
* Removing .qm files from Windows build as they are inbuilt as of a7adfe251
* Moving translation change code to the OpenRGBSettingsPage
* Adding a changeEvent() to applicable Widgets to facilitate language updates
* Workaround added to TabLabel to accomodate translation context origin
* Added zh_TW locale to OpenRGB.pro
* Updated all translations to include the latest untranslated strings
2022-11-27 04:07:30 +00:00

35 lines
763 B
C++

#ifndef OPENRGBPLUGINSENTRY_H
#define OPENRGBPLUGINSENTRY_H
#include "ui_OpenRGBPluginsEntry.h"
#include <QWidget>
namespace Ui
{
class OpenRGBPluginsEntry;
}
typedef void (*EnableClickCallback)(void *, void *);
class Ui::OpenRGBPluginsEntry : public QWidget
{
Q_OBJECT
public:
explicit OpenRGBPluginsEntry(QWidget *parent = nullptr);
~OpenRGBPluginsEntry();
Ui::OpenRGBPluginsEntryUi *ui;
void RegisterEnableClickCallback(EnableClickCallback new_callback, void * new_callback_arg);
private slots:
void changeEvent(QEvent *event);
void on_EnabledCheckBox_stateChanged(int checked);
private:
EnableClickCallback EnableClickCallbackVal;
void * EnableClickCallbackArg;
};
#endif // OPENRGBPLUGINSENTRY_H