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
settingswidget.h
Go to the documentation of this file.
1 #ifndef SETTINGSWIDGET_H
2 #define SETTINGSWIDGET_H
3 
4 #include <QWidget>
5 #include "extrasettingswidget.h"
6 
7 namespace Ui {
8 class SettingsWidget;
9 }
10 
11 class SettingsWidget : public QWidget
12 {
13  Q_OBJECT
14 
15 public:
16  explicit SettingsWidget(QWidget *parent = 0);
18 
19  // Set text labels
20  void setVersion(const QString& version);
21  void setStatus(const QString& text);
22 
23  // Poll for setting updates and save (if necessary)
24  void pollUpdates();
25 
26 private slots:
27  void on_pushButton_clicked();
28 
29  void on_capsBox_activated(int index);
30  void on_shiftBox_activated(int index);
31  void on_ctrlBox_activated(int index);
32  void on_altBox_activated(int index);
33  void on_winBox_activated(int index);
34 
35  void on_autoFWBox_clicked(bool checked);
36  void on_loginItemBox_clicked(bool checked);
37  void on_layoutBox_activated(int index);
38  void showLayoutDialog();
39 
41 
42 private:
44  friend class MainWindow;
45 
47 
48  void updateModifiers();
49 };
50 
51 #endif // SETTINGSWIDGET_H
ExtraSettingsWidget * extra
void on_extraButton_clicked()
void on_pushButton_clicked()
void setStatus(const QString &text)
Ui::SettingsWidget * ui
void on_altBox_activated(int index)
void on_capsBox_activated(int index)
void on_autoFWBox_clicked(bool checked)
void on_ctrlBox_activated(int index)
void setVersion(const QString &version)
void on_loginItemBox_clicked(bool checked)
void on_layoutBox_activated(int index)
void on_shiftBox_activated(int index)
void on_winBox_activated(int index)
SettingsWidget(QWidget *parent=0)