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 Class Reference

#include <src/ckb/layoutdialog.h>

+ Inheritance diagram for LayoutDialog:
+ Collaboration diagram for LayoutDialog:

Public Member Functions

 LayoutDialog (QWidget *parent=0)
 
 ~LayoutDialog ()
 
KeyMap::Layout selected () const
 

Private Attributes

Ui::LayoutDialogui
 

Detailed Description

Definition at line 13 of file layoutdialog.h.

Constructor & Destructor Documentation

LayoutDialog::LayoutDialog ( QWidget parent = 0)
explicit

Definition at line 5 of file layoutdialog.cpp.

References Ui_LayoutDialog::comboBox, Kb::layout(), KeyMap::layoutNames(), Ui_LayoutDialog::setupUi(), and ui.

5  :
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 }
static KeyMap::Layout layout()
Definition: kb.h:30
static QStringList layoutNames()
Definition: keymap.cpp:757
QComboBox * comboBox
Ui::LayoutDialog * ui
Definition: layoutdialog.h:24
void setupUi(QDialog *LayoutDialog)

+ Here is the call graph for this function:

LayoutDialog::~LayoutDialog ( )

Definition at line 14 of file layoutdialog.cpp.

References ui.

14  {
15  delete ui;
16 }
Ui::LayoutDialog * ui
Definition: layoutdialog.h:24

Member Function Documentation

KeyMap::Layout LayoutDialog::selected ( ) const

Definition at line 18 of file layoutdialog.cpp.

References Ui_LayoutDialog::comboBox, and ui.

Referenced by SettingsWidget::showLayoutDialog().

18  {
19  return (KeyMap::Layout)ui->comboBox->currentIndex();
20 }
Layout
Definition: keymap.h:70
QComboBox * comboBox
Ui::LayoutDialog * ui
Definition: layoutdialog.h:24

+ Here is the caller graph for this function:

Field Documentation

Ui::LayoutDialog* LayoutDialog::ui
private

Definition at line 24 of file layoutdialog.h.

Referenced by LayoutDialog(), selected(), and ~LayoutDialog().


The documentation for this class was generated from the following files: