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
animsettingdialog.h
Go to the documentation of this file.
1 #ifndef ANIMSETTINGDIALOG_H
2 #define ANIMSETTINGDIALOG_H
3 
4 #include <QCheckBox>
5 #include <QDialog>
6 #include <QFrame>
7 #include <QSignalMapper>
8 #include <QSpinBox>
9 #include "kbanim.h"
10 
11 namespace Ui {
12 class AnimSettingDialog;
13 }
14 
15 class AnimSettingDialog : public QDialog
16 {
17  Q_OBJECT
18 
19 public:
20  // Create with the dialog parent, and the animation to edit. Use exec() to present.
21  explicit AnimSettingDialog(QWidget* parent, KbAnim* anim);
23 
24  // Name entered for the animation
25  QString name() const;
26 
27 private:
29  QCheckBox* stopCheck, *kpStopCheck;
30  bool hasRepeat;
31 
33  double lastDuration;
34  QMap<QString, QWidget*> settingWidgets;
35  QSignalMapper updateMapper;
36 
37  QMap<QString, QSpinBox*> angleSpinners;
39 
40  QFrame* hLine();
41 
42 private slots:
43  void newDuration(double duration);
44  void updateStops();
45  void angleDialChanged(QString name);
46  void angleSpinnerChanged(QString name);
47  void updateParam(QString name);
48  void on_delayBox_valueChanged(double arg1);
49  void on_repeatBox_valueChanged(double arg1);
50  void on_kpDelayBox_valueChanged(double arg1);
51  void on_kpRepeatBox_valueChanged(double arg1);
52  void on_kpReleaseBox_stateChanged(int arg1);
53 };
54 
55 #endif // ANIMSETTINGDIALOG_H
void newDuration(double duration)
Ui::AnimSettingDialog * ui
void on_kpDelayBox_valueChanged(double arg1)
AnimSettingDialog(QWidget *parent, KbAnim *anim)
QSignalMapper angleSpinnerMapper
void on_repeatBox_valueChanged(double arg1)
QMap< QString, QSpinBox * > angleSpinners
QString name() const
void on_delayBox_valueChanged(double arg1)
void on_kpRepeatBox_valueChanged(double arg1)
QMap< QString, QWidget * > settingWidgets
Definition: kbanim.h:11
void angleSpinnerChanged(QString name)
QSignalMapper angleDialMapper
void angleDialChanged(QString name)
void updateParam(QString name)
QCheckBox * kpStopCheck
void on_kpReleaseBox_stateChanged(int arg1)
QSignalMapper updateMapper
struct keyAnim * anim
Definition: main.c:55