OpenRGB/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.h

38 lines
1.1 KiB
C++

/*---------------------------------------------------------*\
| OpenRGBLIFXSettingsEntry.h |
| |
| User interface for OpenRGB LIFX settings entry |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <QWidget>
#include "nlohmann/json.hpp"
using json = nlohmann::json;
namespace Ui
{
class OpenRGBLIFXSettingsEntry;
class OpenRGBLIFXSettingsEntryUi;
}
class Ui::OpenRGBLIFXSettingsEntry : public QWidget
{
Q_OBJECT
public:
explicit OpenRGBLIFXSettingsEntry(QWidget *parent = nullptr);
~OpenRGBLIFXSettingsEntry();
void loadFromSettings(const json& data);
json saveSettings();
const char* settingsSection();
void setName(QString name);
private:
Ui::OpenRGBLIFXSettingsEntryUi *ui;
private slots:
void changeEvent(QEvent *event);
};