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
layoutdialog.cpp
Go to the documentation of this file.
1 #include "layoutdialog.h"
2 #include "kb.h"
3 #include "ui_layoutdialog.h"
4 
6  QDialog(parent),
7  ui(new Ui::LayoutDialog) {
8  ui->setupUi(this);
9  // Populate layout list
10  ui->comboBox->addItems(KeyMap::layoutNames());
11  ui->comboBox->setCurrentIndex((int)Kb::layout());
12 }
13 
15  delete ui;
16 }
17 
19  return (KeyMap::Layout)ui->comboBox->currentIndex();
20 }
Layout
Definition: keymap.h:70
static KeyMap::Layout layout()
Definition: kb.h:30
static QStringList layoutNames()
Definition: keymap.cpp:757
KeyMap::Layout selected() const
LayoutDialog(QWidget *parent=0)
Definition: layoutdialog.cpp:5
QComboBox * comboBox
Ui::LayoutDialog * ui
Definition: layoutdialog.h:24
void setupUi(QDialog *LayoutDialog)