![]() |
ckb-next
beta-v0.2.8 at branch testing
ckb-next driver for corsair devices
|
#include <src/ckb/keymap.h>
Collaboration diagram for KeyMap:Public Types | |
| enum | Model { NO_MODEL = -1, K65, K70, K95, STRAFE, M65, SABRE, SCIMITAR, _MODEL_MAX } |
| enum | Layout { NO_LAYOUT = -1, DK, EU, EU_DVORAK, GB, GB_DVORAK, US, US_DVORAK, FR, DE, IT, NO, PL, MX, ES, SE, _LAYOUT_MAX } |
Public Member Functions | |
| bool | isISO () const |
| bool | isKeyboard () const |
| bool | isMouse () const |
| KeyMap () | |
| KeyMap (Model _keyModel, Layout _keyLayout) | |
| QString | strLayout () const |
| QString | strModel () const |
| Model | model () const |
| Layout | layout () const |
| QString | name () const |
| uint | count () const |
| uint | width () const |
| uint | height () const |
| Key | key (const QString &name) const |
| Key | operator[] (const QString &name) const |
| bool | contains (const QString &name) const |
| const QHash< QString, Key > & | map () const |
| operator const QHash< QString, Key > & () const | |
| QStringList | keys () const |
| QList< Key > | positions () const |
| QString | toStorage (const QString &name) |
| QString | fromStorage (const QString &storage) |
| QStringList | byPosition () const |
Static Public Member Functions | |
| static QStringList | layoutNames () |
| static bool | isISO (Layout layout) |
| static Layout | locale () |
| static bool | isKeyboard (Model model) |
| static bool | isMouse (Model model) |
| static KeyMap | fromName (const QString &name) |
| static Layout | getLayout (const QString &name) |
| static QString | getLayout (Layout layout) |
| static Model | getModel (const QString &name) |
| static QString | getModel (Model model) |
| static QString | friendlyName (const QString &key, Layout layout=US) |
Static Private Member Functions | |
| static int | modelWidth (Model model) |
| static int | modelHeight (Model model) |
Private Attributes | |
| QHash< QString, Key > | _keys |
| short | keyWidth |
| short | keyHeight |
| Model | keyModel:8 |
| Layout | keyLayout:8 |
| enum KeyMap::Layout |
| Enumerator | |
|---|---|
| NO_LAYOUT | |
| DK | |
| EU | |
| EU_DVORAK | |
| GB | |
| GB_DVORAK | |
| US | |
| US_DVORAK | |
| FR | |
| DE | |
| IT | |
| NO | |
| PL | |
| MX | |
| ES | |
| SE | |
| _LAYOUT_MAX | |
Definition at line 65 of file keymap.h.
| enum KeyMap::Model |
| Enumerator | |
|---|---|
| NO_MODEL | |
| K65 | |
| K70 | |
| K95 | |
| STRAFE | |
| M65 | |
| SABRE | |
| SCIMITAR | |
| _MODEL_MAX | |
Definition at line 51 of file keymap.h.
| KeyMap::KeyMap | ( | ) |
Definition at line 583 of file keymap.cpp.
Referenced by friendlyName(), and fromName().
Here is the caller graph for this function:Definition at line 577 of file keymap.cpp.
| QStringList KeyMap::byPosition | ( | ) | const |
Definition at line 588 of file keymap.cpp.
References key(), Key::x, and Key::y.
Referenced by RebindWidget::setBind().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 127 of file keymap.h.
References _keys.
Referenced by friendlyName(), and KbAnimWidget::on_keyButton_clicked().
Here is the caller graph for this function:
|
inline |
Definition at line 118 of file keymap.h.
References _keys.
Referenced by KeyWidget::map(), KbBindWidget::on_copyButton_clicked(), and KbBindWidget::on_resetButton_clicked().
Here is the caller graph for this function:Definition at line 611 of file keymap.cpp.
References contains(), K95, KeyMap(), M65, map(), SCIMITAR, and STRAFE.
Referenced by KeyAction::friendlyName(), and RebindWidget::RebindWidget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 535 of file keymap.cpp.
References getLayout(), getModel(), and KeyMap().
Referenced by KbBind::load(), and KbLight::load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 135 of file keymap.h.
Referenced by KbAnim::KbAnim(), KbBind::load(), and KbLight::load().
Here is the caller graph for this function:
|
static |
Definition at line 407 of file keymap.cpp.
References DE, DK, ES, EU, EU_DVORAK, FR, GB, GB_DVORAK, IT, MX, NO, NO_LAYOUT, PL, SE, US, and US_DVORAK.
Referenced by fromName(), SettingsWidget::on_layoutBox_activated(), SettingsWidget::SettingsWidget(), and strLayout().
Here is the caller graph for this function:
|
static |
Definition at line 442 of file keymap.cpp.
References DE, DK, ES, EU, EU_DVORAK, FR, GB, GB_DVORAK, IT, MX, NO, PL, SE, US, and US_DVORAK.
|
static |
Definition at line 495 of file keymap.cpp.
References K65, K70, K95, M65, NO_MODEL, SABRE, SCIMITAR, and STRAFE.
Referenced by fromName(), Kb::Kb(), and strModel().
Here is the caller graph for this function:
|
static |
Definition at line 514 of file keymap.cpp.
References K65, K70, K95, M65, SABRE, SCIMITAR, and STRAFE.
|
inline |
Definition at line 122 of file keymap.h.
References keyHeight.
Referenced by KeyWidget::drawInfo(), and KeyWidget::map().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 87 of file keymap.h.
References PL, US, and US_DVORAK.
Referenced by KbBind::isISO(), and RebindWidget::setBind().
Here is the caller graph for this function:
|
inline |
|
inlinestatic |
Definition at line 93 of file keymap.h.
References isMouse(), and NO_MODEL.
Referenced by KbBind::isKeyboard().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 94 of file keymap.h.
References isKeyboard(), and keyModel.
Referenced by Kb::isKeyboard(), and isKeyboard().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 95 of file keymap.h.
References M65, SABRE, and SCIMITAR.
Referenced by KbBind::isMouse(), KeyWidget::map(), KbLightWidget::newSelection(), and KeyWidget::paintEvent().
Here is the caller graph for this function:
|
inline |
Definition at line 96 of file keymap.h.
References isMouse(), and keyModel.
Referenced by isKeyboard(), Kb::isMouse(), isMouse(), and KeyWidget::paintEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 125 of file keymap.h.
References _keys.
Referenced by AnimScript::begin(), byPosition(), AnimScript::keypress(), KbBind::noAction(), operator[](), KbBind::setAction(), and toStorage().
Here is the caller graph for this function:
|
inline |
Definition at line 131 of file keymap.h.
References _keys.
Referenced by KeyWidget::mouseReleaseEvent(), KbBindWidget::on_copyButton_clicked(), KbBindWidget::on_resetButton_clicked(), KeyWidget::setAnimation(), KeyWidget::setSelection(), and KbBindWidget::updateBind().
Here is the caller graph for this function:
|
inline |
Definition at line 114 of file keymap.h.
References keyLayout.
Referenced by KeyAction::friendlyName(), KeyWidget::paintEvent(), and RebindWidget::setBind().
Here is the caller graph for this function:
|
static |
Definition at line 479 of file keymap.cpp.
Referenced by LayoutDialog::LayoutDialog(), and SettingsWidget::SettingsWidget().
Here is the caller graph for this function:
|
static |
Definition at line 375 of file keymap.cpp.
References DE, DK, ES, FR, GB, IT, MX, NO, PL, SE, and US.
Referenced by SettingsWidget::SettingsWidget().
Here is the caller graph for this function:
|
inline |
Definition at line 129 of file keymap.h.
References _keys.
Referenced by friendlyName().
Here is the caller graph for this function:
|
inline |
Definition at line 113 of file keymap.h.
References keyModel.
Referenced by KeyWidget::mouseMoveEvent(), KeyWidget::paintEvent(), and KPerfWidget::setPerf().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 561 of file keymap.cpp.
References K65, K70, K95, K95_HEIGHT, M65, M65_HEIGHT, SABRE, SCIMITAR, and STRAFE.
|
staticprivate |
Definition at line 542 of file keymap.cpp.
References K65, K65_WIDTH, K70, K70_WIDTH, K95, K95_WIDTH, KSTRAFE_WIDTH, M65, M65_WIDTH, SABRE, SCIMITAR, and STRAFE.
|
inline |
Definition at line 115 of file keymap.h.
References strLayout(), and strModel().
Referenced by KbBind::save(), KbLight::save(), and toStorage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Definition at line 132 of file keymap.h.
References _keys.
Referenced by ColorMap::init(), and KeyWidget::selectAll().
Here is the caller graph for this function:
|
inline |
Definition at line 106 of file keymap.h.
References getLayout(), and keyLayout.
Referenced by name().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 110 of file keymap.h.
References getModel(), and keyModel.
Referenced by name().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 134 of file keymap.h.
References key(), name(), and Key::storageName().
Here is the call graph for this function:
|
inline |
Definition at line 120 of file keymap.h.
References keyWidth.
Referenced by KeyWidget::drawInfo(), and KeyWidget::map().
Here is the caller graph for this function:
|
private |
Definition at line 147 of file keymap.h.
Referenced by contains(), count(), key(), keys(), map(), operator const QHash< QString, Key > &(), and positions().
|
private |
Definition at line 150 of file keymap.h.
Referenced by isISO(), layout(), and strLayout().
|
private |
Definition at line 149 of file keymap.h.
Referenced by isKeyboard(), isMouse(), model(), and strModel().