-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RegionsWidget.h
42 lines (30 loc) · 853 Bytes
/
RegionsWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Created by Kamil Rojewski on 15.07.2021.
//
#ifndef OPENRGB_AMBIENT_REGIONSWIDGET_H
#define OPENRGB_AMBIENT_REGIONSWIDGET_H
#include <string>
#include <QWidget>
class ResourceManager;
class RegionWidget;
class Settings;
class RegionsWidget
: public QWidget
{
Q_OBJECT
public:
RegionsWidget(ResourceManager *resourceManager, Settings &settings, QWidget *parent = nullptr);
~RegionsWidget() override = default;
public slots:
void selectController(const QString &location);
private:
ResourceManager *resourceManager = nullptr;
Settings &settings;
RegionWidget *top = nullptr;
RegionWidget *bottom = nullptr;
RegionWidget *right = nullptr;
RegionWidget *left = nullptr;
std::string currentLocation;
void showCurrentLeds(int from, int to);
};
#endif //OPENRGB_AMBIENT_REGIONSWIDGET_H