ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
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
5
LayoutDialog::LayoutDialog
(
QWidget
*parent) :
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
14
LayoutDialog::~LayoutDialog
(){
15
delete
ui
;
16
}
17
18
KeyMap::Layout
LayoutDialog::selected
()
const
{
19
return
(
KeyMap::Layout
)
ui
->
comboBox
->currentIndex();
20
}
KeyMap::Layout
Layout
Definition:
keymap.h:70
Kb::layout
static KeyMap::Layout layout()
Definition:
kb.h:30
QDialog
QWidget
KeyMap::layoutNames
static QStringList layoutNames()
Definition:
keymap.cpp:757
LayoutDialog::selected
KeyMap::Layout selected() const
Definition:
layoutdialog.cpp:18
LayoutDialog::LayoutDialog
LayoutDialog(QWidget *parent=0)
Definition:
layoutdialog.cpp:5
kb.h
LayoutDialog
Definition:
layoutdialog.h:13
Ui_LayoutDialog::comboBox
QComboBox * comboBox
Definition:
ui_layoutdialog.h:37
layoutdialog.h
LayoutDialog::~LayoutDialog
~LayoutDialog()
Definition:
layoutdialog.cpp:14
ui_layoutdialog.h
LayoutDialog::ui
Ui::LayoutDialog * ui
Definition:
layoutdialog.h:24
Ui_LayoutDialog::setupUi
void setupUi(QDialog *LayoutDialog)
Definition:
ui_layoutdialog.h:41
src
ckb
layoutdialog.cpp
Generated on Sat Jan 20 2018 16:59:28 for ckb-next by
1.8.6