ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kblightwidget.h
Go to the documentation of this file.
1 #ifndef KBLIGHTWIDGET_H
2 #define KBLIGHTWIDGET_H
3 
4 #include <QWidget>
5 #include <QColor>
6 #include <QFile>
7 #include <QResizeEvent>
8 #include "kblight.h"
9 #include "keywidget.h"
10 
11 namespace Ui {
12 class KbLightWidget;
13 }
14 
15 class KbLightWidget : public QWidget
16 {
17  Q_OBJECT
18 
19 public:
20  explicit KbLightWidget(QWidget *parent = 0);
22 
23  void setLight(KbLight* newLight);
24  void setMonochrome();
25 
26 private slots:
27  void updateLight();
28  void newSelection(QStringList selection);
29  void changeColor(QColor newColor);
30  void changeAnim(KbAnim* newAnim);
31  void changeAnimKeys(QStringList keys);
32 
33  void on_brightnessBox_activated(int index);
34  void on_animButton_clicked();
35 
36  void on_bgButton_clicked();
37 
38  void on_showAnimBox_clicked(bool checked);
39 
40  void toggleSidelight(); //strafe
41 
42 private:
44  QStringList currentSelection;
45 
47 };
48 
49 #endif // KBLIGHTWIDGET_H
void changeAnimKeys(QStringList keys)
void toggleSidelight()
void setMonochrome()
void on_brightnessBox_activated(int index)
void on_animButton_clicked()
KbLightWidget(QWidget *parent=0)
void changeAnim(KbAnim *newAnim)
void on_showAnimBox_clicked(bool checked)
void on_bgButton_clicked()
void newSelection(QStringList selection)
KbLight * light
Definition: kblightwidget.h:43
void setLight(KbLight *newLight)
Ui::KbLightWidget * ui
Definition: kblightwidget.h:46
void changeColor(QColor newColor)
Definition: kbanim.h:11
QStringList currentSelection
Definition: kblightwidget.h:44