mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-13 01:27:51 -05:00
* Reorganize and clean up RGBController API functions
* Add functions to get protected RGBController member values
* Make NetworkClient, ProfileManager, and ResourceManager friend classes so they can access protected members
* Protected previously-public RGBController members
* Information strings (name, vendor, description, version, serial location)
* Device type
* Active mode
* Flags
* LEDs vector
* LED alternate names vector
* Modes vector
* Colors vector
* Zones vector
* Add CONTROLLER_FLAG_HIDDEN to allow plugins to hide controllers from control GUI
* Add update reason codes to RGBController update callback and signal updates on more RGBController events
* Add loop zone types and segmented zone type
* Add matrix map field to segments
* Rework matrix_map_type from using pointers to vector to prevent memory leaks
* Rework KeyboardLayoutManager to return new matrix_map_type
* Add access mutex to RGBController API
* Add per-zone modes ot RGBController API
* Add JSON description functions to RGBController API
53 lines
1.4 KiB
C++
53 lines
1.4 KiB
C++
/*---------------------------------------------------------*\
|
|
| OpenRGBZoneResizeDialog.h |
|
|
| |
|
|
| User interface for resizing zones |
|
|
| |
|
|
| 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 OpenRGBZoneResizeDialog;
|
|
}
|
|
|
|
class OpenRGBZoneResizeDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit OpenRGBZoneResizeDialog(RGBController* edit_dev_ptr, unsigned int edit_zone_idx_val, QWidget *parent = nullptr);
|
|
~OpenRGBZoneResizeDialog();
|
|
|
|
int show();
|
|
|
|
private slots:
|
|
void changeEvent(QEvent *event);
|
|
void on_ResizeSlider_valueChanged(int value);
|
|
|
|
void on_ResizeBox_valueChanged(int arg1);
|
|
|
|
void on_AddSegmentButton_clicked();
|
|
|
|
void on_RemoveSegmentButton_clicked();
|
|
|
|
void on_segment_slider_valueChanged(int);
|
|
|
|
void on_segment_lineedit_textChanged();
|
|
|
|
private:
|
|
Ui::OpenRGBZoneResizeDialog *ui;
|
|
RGBController* edit_dev;
|
|
unsigned int edit_zone_idx;
|
|
|
|
void AddSegmentRow(QString name, unsigned int length, zone_type type);
|
|
void CheckSegmentsValidity();
|
|
};
|