Files
OpenRGB/qt/OpenRGBDeviceEditorDialog/OpenRGBDeviceEditorDialog.h
Adam Honse 072d27d9dd Settings Rework
* Add JSON string configuration field to RGBController to store device-specific configurations
    * This JSON string holds both configuration and schema
    * Add settings schema tracking to SettingsManager
    * Implement dynamic settings widget that generates a settings UI based on a JSON schema
    * Implement SettingsManager callback for notifying of settings changes and settings schema updates
    * Always enable Entire Device zone option and use it to enable Edit Device
    * Rename SaveSizes to SaveConfiguration in ProfileManager and Sizes.json to Configuration.json
    * Add zone flag for indicating that a zone's geometry may change, informing profile manager to ignore this check
    * Remove Theme setting and Theme Manager, as this didn't work on most setups anyways and Qt6 has proper Windows dark theming
2026-05-14 17:25:35 -05:00

49 lines
1.7 KiB
C++

/*---------------------------------------------------------*\
| OpenRGBDeviceEditorDialog.h |
| |
| User interface for OpenRGB device editor dialog |
| |
| Adam Honse <calcprogrammer1@gmail.com> 15 Apr 2026 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <QDialog>
#include "RGBController.h"
namespace Ui
{
class OpenRGBDeviceEditorDialog;
}
class OpenRGBDeviceEditorDialog : public QDialog
{
Q_OBJECT
public:
explicit OpenRGBDeviceEditorDialog(RGBController *dev, QWidget *parent = nullptr);
~OpenRGBDeviceEditorDialog();
int show();
void OnSettingChanged(std::string key, nlohmann::json settings);
private:
/*-----------------------------------------------------*\
| UI Pointer |
\*-----------------------------------------------------*/
Ui::OpenRGBDeviceEditorDialog* ui;
/*-----------------------------------------------------*\
| Device pointer |
\*-----------------------------------------------------*/
RGBController* edit_dev;
/*-----------------------------------------------------*\
| Device configuration |
\*-----------------------------------------------------*/
nlohmann::json device_configuration;
};