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
modeselectdialog.h
Go to the documentation of this file.
1 #ifndef MODESELECTDIALOG_H
2 #define MODESELECTDIALOG_H
3 
4 #include <QDialog>
5 #include "kbmode.h"
6 
7 // Dialog box that allows selection of modes
8 
9 namespace Ui {
10 class ModeSelectDialog;
11 }
12 
13 class ModeSelectDialog : public QDialog
14 {
15  Q_OBJECT
16 
17 public:
18  // Mode dialog with a list of modes and a custom text label. Use exec() to display. currentMode will not be displayed.
19  ModeSelectDialog(QWidget* parent, KbMode* currentMode, QList<KbMode*> modeList, const QString& textLabel);
21 
22  // Mode(s) selected by the user
23  QList<KbMode*> selection();
24 
25 private slots:
28 
29 private:
31  QList<KbMode*> _modeList;
32 };
33 
34 #endif // MODESELECTDIALOG_H
ModeSelectDialog(QWidget *parent, KbMode *currentMode, QList< KbMode * > modeList, const QString &textLabel)
Ui::ModeSelectDialog * ui
QList< KbMode * > _modeList
Definition: kbmode.h:36
QList< KbMode * > selection()