ckb-next  beta-v0.2.8 at branch testing
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KeyMap Class Reference

#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< Keypositions () 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
 

Detailed Description

Definition at line 49 of file keymap.h.

Member Enumeration Documentation

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.

65  {
66  NO_LAYOUT = -1,
67  DK, // Danish
68  EU, // English (EU)
69  EU_DVORAK,
70  GB, // English (UK)
71  GB_DVORAK,
72  US, // English (US)
73  US_DVORAK,
74  FR, // French
75  DE, // German
76  IT, // Italian
77  NO, // Norwegian
78  PL, // Polish (identical to US)
79  MX, // Spanish (Mexico/Latin America)
80  ES, // Spanish (Spain)
81  SE, // Swedish
83  };
Enumerator
NO_MODEL 
K65 
K70 
K95 
STRAFE 
M65 
SABRE 
SCIMITAR 
_MODEL_MAX 

Definition at line 51 of file keymap.h.

51  {
52  NO_MODEL = -1,
53  // Keyboard models
54  K65,
55  K70,
56  K95,
57  STRAFE,
58  // Mouse models
59  M65,
60  SABRE,
61  SCIMITAR,
63  };

Constructor & Destructor Documentation

KeyMap::KeyMap ( )

Definition at line 583 of file keymap.cpp.

Referenced by friendlyName(), and fromName().

583  :
584  keyWidth(0), keyHeight(0),
586 {}
short keyHeight
Definition: keymap.h:148
short keyWidth
Definition: keymap.h:148
Layout keyLayout
Definition: keymap.h:150
Model keyModel
Definition: keymap.h:149

+ Here is the caller graph for this function:

KeyMap::KeyMap ( Model  _keyModel,
Layout  _keyLayout 
)

Definition at line 577 of file keymap.cpp.

577  :
578  _keys(getMap(_keyModel, _keyLayout)),
579  keyWidth(modelWidth(_keyModel)), keyHeight(modelHeight(_keyModel)),
580  keyModel(_keyModel), keyLayout(_keyLayout)
581 {}
static QHash< QString, Key > getMap(KeyMap::Model model, KeyMap::Layout layout)
Definition: keymap.cpp:210
short keyHeight
Definition: keymap.h:148
short keyWidth
Definition: keymap.h:148
Layout keyLayout
Definition: keymap.h:150
QHash< QString, Key > _keys
Definition: keymap.h:147
Model keyModel
Definition: keymap.h:149
static int modelWidth(Model model)
Definition: keymap.cpp:542
static int modelHeight(Model model)
Definition: keymap.cpp:561

Member Function Documentation

QStringList KeyMap::byPosition ( ) const

Definition at line 588 of file keymap.cpp.

References key(), Key::x, and Key::y.

Referenced by RebindWidget::setBind().

588  {
589  // Use QMaps to order the keys
590  QMap<int, QMap<int, QString> > ordered;
591  QHashIterator<QString, Key> i(*this);
592  while(i.hasNext()){
593  i.next();
594  const Key& key = i.value();
595  ordered[key.y][key.x] = i.key();
596  }
597  // Merge them into a single list
598  QStringList result;
599  QMapIterator<int, QMap<int, QString> > y(ordered);
600  while(y.hasNext()){
601  y.next();
602  QMapIterator<int, QString> x(y.value());
603  while(x.hasNext()){
604  x.next();
605  result << x.value();
606  }
607  }
608  return result;
609 }
Key key(const QString &name) const
Definition: keymap.h:125
short x
Definition: keymap.h:16
Definition: keymap.h:8
short y
Definition: keymap.h:16

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool KeyMap::contains ( const QString &  name) const
inline

Definition at line 127 of file keymap.h.

References _keys.

Referenced by friendlyName(), and KbAnimWidget::on_keyButton_clicked().

127 { return _keys.contains(name); }
QHash< QString, Key > _keys
Definition: keymap.h:147
QString name() const
Definition: keymap.h:115

+ Here is the caller graph for this function:

uint KeyMap::count ( ) const
inline

Definition at line 118 of file keymap.h.

References _keys.

Referenced by KeyWidget::map(), KbBindWidget::on_copyButton_clicked(), and KbBindWidget::on_resetButton_clicked().

118 { return _keys.count(); }
QHash< QString, Key > _keys
Definition: keymap.h:147

+ Here is the caller graph for this function:

QString KeyMap::friendlyName ( const QString &  key,
Layout  layout = US 
)
static

Definition at line 611 of file keymap.cpp.

References contains(), K95, KeyMap(), M65, map(), SCIMITAR, and STRAFE.

Referenced by KeyAction::friendlyName(), and RebindWidget::RebindWidget().

611  {
612  // Try K95 map first
613  // FIXME: This is an odd function and probably should be refactored
614  // it would probably be best to remove the friendly names from the maps and have a completely separate name->friendlyName store
615  KeyMap map(K95, layout);
616  if(map.contains(key))
617  return map[key].friendlyName();
618 
619  // The only key missing from it should be Fn, which is found on STRAFE
620  map = KeyMap(STRAFE, layout);
621  if(map.contains(key))
622  return map[key].friendlyName();
623 
624  // Additionally, there are a handful of keys not present on any physical keyboard, but we need names for them
625  if(key == "f13" || key == "f14" || key == "f15" || key == "f16" || key == "f17" || key == "f18" || key == "f19" || key == "f20")
626  return key.toUpper();
627  else if(key == "lightup")
628  return "Screen Brightness Up";
629  else if(key == "lightdn")
630  return "Screen Brightness Down";
631  else if(key == "eject" || key == "power")
632  return key[0].toUpper() + key.mid(1); // capitalize first letter
633 
634  // All other names are found on mice
636  if(map.contains(key))
637  return map[key].friendlyName();
638  map = KeyMap(M65, layout);
639  if(map.contains(key))
640  return map[key].friendlyName();
641 
642  // Not found at all
643  return "";
644 }
KeyMap()
Definition: keymap.cpp:583
static QString friendlyName(const QString &key, Layout layout=US)
Definition: keymap.cpp:611
Key key(const QString &name) const
Definition: keymap.h:125
const QHash< QString, Key > & map() const
Definition: keymap.h:129
Layout layout() const
Definition: keymap.h:114
Definition: keymap.h:49

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

KeyMap KeyMap::fromName ( const QString &  name)
static

Definition at line 535 of file keymap.cpp.

References getLayout(), getModel(), and KeyMap().

Referenced by KbBind::load(), and KbLight::load().

535  {
536  QStringList list = name.trimmed().split(" ");
537  if(list.length() != 2)
538  return KeyMap();
539  return KeyMap(getModel(list[0]), getLayout(list[1]));
540 }
KeyMap()
Definition: keymap.cpp:583
static Model getModel(const QString &name)
Definition: keymap.cpp:495
static Layout getLayout(const QString &name)
Definition: keymap.cpp:407
QString name() const
Definition: keymap.h:115

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString KeyMap::fromStorage ( const QString &  storage)
inline

Definition at line 135 of file keymap.h.

Referenced by KbAnim::KbAnim(), KbBind::load(), and KbLight::load().

135 { QHashIterator<QString, Key> i(*this); while(i.hasNext()) { i.next(); const char* s = i.value().storageName(); if(s == storage) return i.value().name; } return storage; }

+ Here is the caller graph for this function:

KeyMap::Layout KeyMap::getLayout ( const QString &  name)
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().

407  {
408  QString lower = name.toLower();
409  if(lower == "dk")
410  return DK;
411  if(lower == "eu")
412  return EU;
413  if(lower == "eu_dvorak")
414  return EU_DVORAK;
415  if(lower == "gb_dvorak")
416  return GB_DVORAK;
417  if(lower == "us")
418  return US;
419  if(lower == "us_dvorak")
420  return US_DVORAK;
421  if(lower == "fr")
422  return FR;
423  if(lower == "de")
424  return DE;
425  if(lower == "it")
426  return IT;
427  if(lower == "no")
428  return NO;
429  if(lower == "pl")
430  return PL;
431  if(lower == "mx")
432  return MX;
433  if(lower == "es")
434  return ES;
435  if(lower == "se")
436  return SE;
437  if(lower == "gb")
438  return GB;
439  return NO_LAYOUT;
440 }
QString name() const
Definition: keymap.h:115

+ Here is the caller graph for this function:

QString KeyMap::getLayout ( KeyMap::Layout  layout)
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.

442  {
443  switch(layout){
444  case DK:
445  return "dk";
446  case EU:
447  return "eu";
448  case EU_DVORAK:
449  return "eu_dvorak";
450  case GB:
451  return "gb";
452  case GB_DVORAK:
453  return "gb_dvorak";
454  case US:
455  return "us";
456  case US_DVORAK:
457  return "us_dvorak";
458  case FR:
459  return "fr";
460  case DE:
461  return "de";
462  case IT:
463  return "it";
464  case NO:
465  return "no";
466  case PL:
467  return "pl";
468  case MX:
469  return "mx";
470  case ES:
471  return "es";
472  case SE:
473  return "se";
474  default:
475  return "";
476  }
477 }
Layout layout() const
Definition: keymap.h:114
KeyMap::Model KeyMap::getModel ( const QString &  name)
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().

495  {
496  QString lower = name.toLower();
497  if(lower == "k65")
498  return K65;
499  if(lower == "k70")
500  return K70;
501  if(lower == "k95")
502  return K95;
503  if(lower == "strafe")
504  return STRAFE;
505  if(lower == "m65")
506  return M65;
507  if(lower == "sabre")
508  return SABRE;
509  if(lower == "scimitar")
510  return SCIMITAR;
511  return NO_MODEL;
512 }
QString name() const
Definition: keymap.h:115

+ Here is the caller graph for this function:

QString KeyMap::getModel ( KeyMap::Model  model)
static

Definition at line 514 of file keymap.cpp.

References K65, K70, K95, M65, SABRE, SCIMITAR, and STRAFE.

514  {
515  switch(model){
516  case K65:
517  return "k65";
518  case K70:
519  return "k70";
520  case K95:
521  return "k95";
522  case STRAFE:
523  return "strafe";
524  case M65:
525  return "m65";
526  case SABRE:
527  return "sabre";
528  case SCIMITAR:
529  return "scimitar";
530  default:
531  return "";
532  }
533 }
Model model() const
Definition: keymap.h:113
uint KeyMap::height ( ) const
inline

Definition at line 122 of file keymap.h.

References keyHeight.

Referenced by KeyWidget::drawInfo(), and KeyWidget::map().

122 { return keyHeight; }
short keyHeight
Definition: keymap.h:148

+ Here is the caller graph for this function:

static bool KeyMap::isISO ( Layout  layout)
inlinestatic

Definition at line 87 of file keymap.h.

References PL, US, and US_DVORAK.

Referenced by KbBind::isISO(), and RebindWidget::setBind().

87 { return layout != US && layout != US_DVORAK && layout != PL; }
Layout layout() const
Definition: keymap.h:114

+ Here is the caller graph for this function:

bool KeyMap::isISO ( ) const
inline

Definition at line 88 of file keymap.h.

References isISO(), and keyLayout.

Referenced by getMap(), isISO(), Kb::Kb(), and Kb::updateLayout().

88 { return isISO(keyLayout); }
Layout keyLayout
Definition: keymap.h:150
bool isISO() const
Definition: keymap.h:88

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static bool KeyMap::isKeyboard ( Model  model)
inlinestatic

Definition at line 93 of file keymap.h.

References isMouse(), and NO_MODEL.

Referenced by KbBind::isKeyboard().

93 { return !isMouse(model) && model != NO_MODEL; }
bool isMouse() const
Definition: keymap.h:96
Model model() const
Definition: keymap.h:113

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool KeyMap::isKeyboard ( ) const
inline

Definition at line 94 of file keymap.h.

References isKeyboard(), and keyModel.

Referenced by Kb::isKeyboard(), and isKeyboard().

94 { return isKeyboard(keyModel); }
bool isKeyboard() const
Definition: keymap.h:94
Model keyModel
Definition: keymap.h:149

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static bool KeyMap::isMouse ( Model  model)
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().

95 { return model == M65 || model == SABRE || model == SCIMITAR; }
Model model() const
Definition: keymap.h:113

+ Here is the caller graph for this function:

bool KeyMap::isMouse ( ) const
inline

Definition at line 96 of file keymap.h.

References isMouse(), and keyModel.

Referenced by isKeyboard(), Kb::isMouse(), isMouse(), and KeyWidget::paintEvent().

96 { return isMouse(keyModel); }
bool isMouse() const
Definition: keymap.h:96
Model keyModel
Definition: keymap.h:149

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Key KeyMap::key ( const QString &  name) const
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().

125 { Key empty = {0,0,0,0,0,0,0,0,0}; return _keys.value(name, empty); }
QHash< QString, Key > _keys
Definition: keymap.h:147
Definition: keymap.h:8
QString name() const
Definition: keymap.h:115

+ Here is the caller graph for this function:

QStringList KeyMap::keys ( ) const
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().

131 { return _keys.keys(); }
QHash< QString, Key > _keys
Definition: keymap.h:147

+ Here is the caller graph for this function:

Layout KeyMap::layout ( ) const
inline

Definition at line 114 of file keymap.h.

References keyLayout.

Referenced by KeyAction::friendlyName(), KeyWidget::paintEvent(), and RebindWidget::setBind().

114 { return keyLayout; }
Layout keyLayout
Definition: keymap.h:150

+ Here is the caller graph for this function:

QStringList KeyMap::layoutNames ( )
static

Definition at line 479 of file keymap.cpp.

Referenced by LayoutDialog::LayoutDialog(), and SettingsWidget::SettingsWidget().

479  {
480  return QStringList()
481  << "Danish"
482  << "English (ISO/European)" << "English (ISO/European, Dvorak)"
483  << "English (United Kingdom)" << "English (United Kingdom, Dvorak)"
484  << "English (United States)" << "English (United States, Dvorak)"
485  << "French"
486  << "German"
487  << "Italian"
488  << "Norwegian"
489  << "Polish"
490  << "Spanish (Latin America)"
491  << "Spanish (Spain)"
492  << "Swedish";
493 }

+ Here is the caller graph for this function:

KeyMap::Layout KeyMap::locale ( )
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().

375  {
376  setlocale(LC_ALL, "");
377  QString loc = setlocale(LC_CTYPE, 0);
378  loc = loc.toLower().replace('_', '-');
379  if(loc.startsWith("dk-"))
380  return KeyMap::DK;
381  else if(loc.startsWith("fr-"))
382  return KeyMap::FR;
383  else if(loc.startsWith("de-"))
384  return KeyMap::DE;
385  else if(loc.startsWith("it-"))
386  return KeyMap::IT;
387  else if(loc.startsWith("pl-"))
388  return KeyMap::PL;
389  else if(loc.startsWith("no-"))
390  return KeyMap::NO;
391  else if(loc.startsWith("es-es"))
392  // Spain uses the ES layout
393  return KeyMap::ES;
394  else if(loc.startsWith("es-"))
395  // Other Spanish locales use MX
396  return KeyMap::MX;
397  else if(loc.startsWith("se-"))
398  return KeyMap::SE;
399  else if(loc.startsWith("en-us") || loc.startsWith("en-au") || loc.startsWith("en-ca") || loc.startsWith("en-hk") || loc.startsWith("en-in") || loc.startsWith("en-nz") || loc.startsWith("en-ph") || loc.startsWith("en-sg") || loc.startsWith("en-za"))
400  // Most English locales use US
401  return KeyMap::US;
402  else
403  // Default to GB
404  return KeyMap::GB;
405 }

+ Here is the caller graph for this function:

const QHash<QString, Key>& KeyMap::map ( ) const
inline

Definition at line 129 of file keymap.h.

References _keys.

Referenced by friendlyName().

129 { return _keys; }
QHash< QString, Key > _keys
Definition: keymap.h:147

+ Here is the caller graph for this function:

Model KeyMap::model ( ) const
inline

Definition at line 113 of file keymap.h.

References keyModel.

Referenced by KeyWidget::mouseMoveEvent(), KeyWidget::paintEvent(), and KPerfWidget::setPerf().

113 { return keyModel; }
Model keyModel
Definition: keymap.h:149

+ Here is the caller graph for this function:

int KeyMap::modelHeight ( Model  model)
staticprivate

Definition at line 561 of file keymap.cpp.

References K65, K70, K95, K95_HEIGHT, M65, M65_HEIGHT, SABRE, SCIMITAR, and STRAFE.

561  {
562  switch(model){
563  case K65:
564  case K70:
565  case K95:
566  case STRAFE:
567  return K95_HEIGHT;
568  case M65:
569  case SABRE:
570  case SCIMITAR:
571  return M65_HEIGHT;
572  default:
573  return 0;
574  }
575 }
#define K95_HEIGHT
Definition: keymap.cpp:134
Model model() const
Definition: keymap.h:113
#define M65_HEIGHT
Definition: keymap.cpp:173
int KeyMap::modelWidth ( Model  model)
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.

542  {
543  switch(model){
544  case K65:
545  return K65_WIDTH;
546  case K70:
547  return K70_WIDTH;
548  case K95:
549  return K95_WIDTH;
550  case STRAFE:
551  return KSTRAFE_WIDTH;
552  case M65:
553  case SABRE:
554  case SCIMITAR:
555  return M65_WIDTH;
556  default:
557  return 0;
558  }
559 }
#define K70_WIDTH
Definition: keymap.cpp:138
#define KSTRAFE_WIDTH
Definition: keymap.cpp:152
#define K95_WIDTH
Definition: keymap.cpp:133
#define K65_WIDTH
Definition: keymap.cpp:142
#define M65_WIDTH
Definition: keymap.cpp:172
Model model() const
Definition: keymap.h:113
QString KeyMap::name ( ) const
inline

Definition at line 115 of file keymap.h.

References strLayout(), and strModel().

Referenced by KbBind::save(), KbLight::save(), and toStorage().

115 { return (strModel() + " " + strLayout()).toUpper(); }
QString strLayout() const
Definition: keymap.h:106
QString strModel() const
Definition: keymap.h:110

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

KeyMap::operator const QHash< QString, Key > & ( ) const
inline

Definition at line 130 of file keymap.h.

References _keys.

130 { return _keys; }
QHash< QString, Key > _keys
Definition: keymap.h:147
Key KeyMap::operator[] ( const QString &  name) const
inline

Definition at line 126 of file keymap.h.

References key().

126 { return key(name); }
Key key(const QString &name) const
Definition: keymap.h:125
QString name() const
Definition: keymap.h:115

+ Here is the call graph for this function:

QList<Key> KeyMap::positions ( ) const
inline

Definition at line 132 of file keymap.h.

References _keys.

Referenced by ColorMap::init(), and KeyWidget::selectAll().

132 { return _keys.values(); }
QHash< QString, Key > _keys
Definition: keymap.h:147

+ Here is the caller graph for this function:

QString KeyMap::strLayout ( ) const
inline

Definition at line 106 of file keymap.h.

References getLayout(), and keyLayout.

Referenced by name().

106 { return getLayout(keyLayout); }
Layout keyLayout
Definition: keymap.h:150
static Layout getLayout(const QString &name)
Definition: keymap.cpp:407

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString KeyMap::strModel ( ) const
inline

Definition at line 110 of file keymap.h.

References getModel(), and keyModel.

Referenced by name().

110 { return getModel(keyModel); }
static Model getModel(const QString &name)
Definition: keymap.cpp:495
Model keyModel
Definition: keymap.h:149

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString KeyMap::toStorage ( const QString &  name)
inline

Definition at line 134 of file keymap.h.

References key(), name(), and Key::storageName().

134 { const char* storage = key(name).storageName(); if(!storage) return name; return storage; }
Key key(const QString &name) const
Definition: keymap.h:125
const char * storageName() const
Definition: keymap.h:11
QString name() const
Definition: keymap.h:115

+ Here is the call graph for this function:

uint KeyMap::width ( ) const
inline

Definition at line 120 of file keymap.h.

References keyWidth.

Referenced by KeyWidget::drawInfo(), and KeyWidget::map().

120 { return keyWidth; }
short keyWidth
Definition: keymap.h:148

+ Here is the caller graph for this function:

Field Documentation

QHash<QString, Key> KeyMap::_keys
private
short KeyMap::keyHeight
private

Definition at line 148 of file keymap.h.

Referenced by height().

Layout KeyMap::keyLayout
private

Definition at line 150 of file keymap.h.

Referenced by isISO(), layout(), and strLayout().

Model KeyMap::keyModel
private

Definition at line 149 of file keymap.h.

Referenced by isKeyboard(), isMouse(), model(), and strModel().

short KeyMap::keyWidth
private

Definition at line 148 of file keymap.h.

Referenced by width().


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