Qt 4.8
Public Functions | List of all members
KeyMap Class Reference
Inheritance diagram for KeyMap:
QHash< DFBInputDeviceKeySymbol, Qt::Key >

Public Functions

 KeyMap ()
 
- Public Functions inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key >
iterator begin ()
 Returns an STL-style iterator pointing to the first item in the hash. More...
 
const_iterator begin () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
int capacity () const
 Returns the number of buckets in the QHash's internal hash table. More...
 
void clear ()
 Removes all items from the hash. More...
 
const_iterator constBegin () const
 Returns a const STL-style iterator pointing to the first item in the hash. More...
 
const_iterator constEnd () const
 Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash. More...
 
const_iterator constFind (const DFBInputDeviceKeySymbol &key) const
 Returns an iterator pointing to the item with the key in the hash. More...
 
bool contains (const DFBInputDeviceKeySymbol &key) const
 Returns true if the hash contains an item with the key; otherwise returns false. More...
 
int count (const DFBInputDeviceKeySymbol &key) const
 Returns the number of items associated with the key. More...
 
int count () const
 Same as size(). More...
 
void detach ()
 Detaches this hash from any other hashes with which it may share data. More...
 
bool empty () const
 This function is provided for STL compatibility. More...
 
iterator end ()
 Returns an STL-style iterator pointing to the imaginary item after the last item in the hash. More...
 
const_iterator end () const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
iterator erase (iterator it)
 Removes the (key, value) pair associated with the iterator pos from the hash, and returns an iterator to the next item in the hash. More...
 
iterator find (const DFBInputDeviceKeySymbol &key)
 Returns an iterator pointing to the item with the key in the hash. More...
 
const_iterator find (const DFBInputDeviceKeySymbol &key) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
iterator insert (const DFBInputDeviceKeySymbol &key, const Qt::Key &value)
 Inserts a new item with the key and a value of value. More...
 
iterator insertMulti (const DFBInputDeviceKeySymbol &key, const Qt::Key &value)
 Inserts a new item with the key and a value of value. More...
 
bool isDetached () const
 Returns true if the hash's internal data isn't shared with any other hash object; otherwise returns false. More...
 
bool isEmpty () const
 Returns true if the hash contains no items; otherwise returns false. More...
 
bool isSharedWith (const QHash< DFBInputDeviceKeySymbol, Qt::Key > &other) const
 
const DFBInputDeviceKeySymbol key (const Qt::Key &value) const
 Returns the first key mapped to value. More...
 
const DFBInputDeviceKeySymbol key (const Qt::Key &value, const DFBInputDeviceKeySymbol &defaultKey) const
 Returns the first key mapped to value, or defaultKey if the hash contains no item mapped to value. More...
 
QList< DFBInputDeviceKeySymbol > keys () const
 Returns a list containing all the keys in the hash, in an arbitrary order. More...
 
QList< DFBInputDeviceKeySymbol > keys (const Qt::Key &value) const
 Returns a list containing all the keys associated with value value, in an arbitrary order. More...
 
bool operator!= (const QHash< DFBInputDeviceKeySymbol, Qt::Key > &other) const
 Returns true if other is not equal to this hash; otherwise returns false. More...
 
QHash< DFBInputDeviceKeySymbol, Qt::Key > & operator= (const QHash< DFBInputDeviceKeySymbol, Qt::Key > &other)
 Assigns other to this hash and returns a reference to this hash. More...
 
bool operator== (const QHash< DFBInputDeviceKeySymbol, Qt::Key > &other) const
 Returns true if other is equal to this hash; otherwise returns false. More...
 
Qt::Keyoperator[] (const DFBInputDeviceKeySymbol &key)
 Returns the value associated with the key as a modifiable reference. More...
 
const Qt::Key operator[] (const DFBInputDeviceKeySymbol &key) const
 Same as value(). More...
 
 QHash ()
 Constructs an empty hash. More...
 
 QHash (const QHash< DFBInputDeviceKeySymbol, Qt::Key > &other)
 Constructs a copy of other. More...
 
int remove (const DFBInputDeviceKeySymbol &key)
 Removes all the items that have the key from the hash. More...
 
void reserve (int size)
 Ensures that the QHash's internal hash table consists of at least size buckets. More...
 
void setSharable (bool sharable)
 
int size () const
 Returns the number of items in the hash. More...
 
void squeeze ()
 Reduces the size of the QHash's internal hash table to save memory. More...
 
void swap (QHash< DFBInputDeviceKeySymbol, Qt::Key > &other)
 Swaps hash other with this hash. More...
 
Qt::Key take (const DFBInputDeviceKeySymbol &key)
 Removes the item with the key from the hash and returns the value associated with it. More...
 
QList< DFBInputDeviceKeySymbol > uniqueKeys () const
 Returns a list containing all the keys in the map. More...
 
QHash< DFBInputDeviceKeySymbol, Qt::Key > & unite (const QHash< DFBInputDeviceKeySymbol, Qt::Key > &other)
 Inserts all the items in the other hash into this hash. More...
 
const Qt::Key value (const DFBInputDeviceKeySymbol &key) const
 Returns the value associated with the key. More...
 
const Qt::Key value (const DFBInputDeviceKeySymbol &key, const Qt::Key &defaultValue) const
 If the hash contains no item with the given key, the function returns defaultValue. More...
 
QList< Qt::Keyvalues () const
 Returns a list containing all the values in the hash, in an arbitrary order. More...
 
QList< Qt::Keyvalues (const DFBInputDeviceKeySymbol &key) const
 Returns a list of all the values associated with the key, from the most recently inserted to the least recently inserted. More...
 
 ~QHash ()
 Destroys the hash. More...
 

Additional Inherited Members

- Public Types inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key >
typedef const_iterator ConstIterator
 Qt-style synonym for QHash::const_iterator. More...
 
typedef qptrdiff difference_type
 Typedef for ptrdiff_t. More...
 
typedef iterator Iterator
 Qt-style synonym for QHash::iterator. More...
 
typedef DFBInputDeviceKeySymbol key_type
 Typedef for Key. More...
 
typedef Qt::Key mapped_type
 Typedef for T. More...
 
typedef int size_type
 Typedef for int. More...
 
- Public Variables inherited from QHash< DFBInputDeviceKeySymbol, Qt::Key >
QHashDatad
 
QHashNode< DFBInputDeviceKeySymbol, Qt::Key > * e
 

Detailed Description

Definition at line 58 of file qdirectfbkeyboard.cpp.

Constructors and Destructors

◆ KeyMap()

KeyMap::KeyMap ( )

Definition at line 255 of file qdirectfbkeyboard.cpp.

256 {
257  insert(DIKS_BACKSPACE , Qt::Key_Backspace);
258  insert(DIKS_TAB , Qt::Key_Tab);
259  insert(DIKS_RETURN , Qt::Key_Return);
260  insert(DIKS_ESCAPE , Qt::Key_Escape);
261  insert(DIKS_DELETE , Qt::Key_Delete);
262 
263  insert(DIKS_CURSOR_LEFT , Qt::Key_Left);
264  insert(DIKS_CURSOR_RIGHT , Qt::Key_Right);
265  insert(DIKS_CURSOR_UP , Qt::Key_Up);
266  insert(DIKS_CURSOR_DOWN , Qt::Key_Down);
267  insert(DIKS_INSERT , Qt::Key_Insert);
268  insert(DIKS_HOME , Qt::Key_Home);
269  insert(DIKS_END , Qt::Key_End);
270  insert(DIKS_PAGE_UP , Qt::Key_PageUp);
271  insert(DIKS_PAGE_DOWN , Qt::Key_PageDown);
272  insert(DIKS_PRINT , Qt::Key_Print);
273  insert(DIKS_PAUSE , Qt::Key_Pause);
274  insert(DIKS_SELECT , Qt::Key_Select);
275  insert(DIKS_GOTO , Qt::Key_OpenUrl);
276  insert(DIKS_CLEAR , Qt::Key_Clear);
277  insert(DIKS_MENU , Qt::Key_Menu);
278  insert(DIKS_HELP , Qt::Key_Help);
279 
280  insert(DIKS_INTERNET , Qt::Key_HomePage);
281  insert(DIKS_MAIL , Qt::Key_LaunchMail);
282  insert(DIKS_FAVORITES , Qt::Key_Favorites);
283 
284  insert(DIKS_BACK , Qt::Key_Back);
285  insert(DIKS_FORWARD , Qt::Key_Forward);
286  insert(DIKS_VOLUME_UP , Qt::Key_VolumeUp);
287  insert(DIKS_VOLUME_DOWN , Qt::Key_VolumeDown);
288  insert(DIKS_MUTE , Qt::Key_VolumeMute);
289  insert(DIKS_PLAYPAUSE , Qt::Key_Pause);
290  insert(DIKS_PLAY , Qt::Key_MediaPlay);
291  insert(DIKS_STOP , Qt::Key_MediaStop);
292  insert(DIKS_RECORD , Qt::Key_MediaRecord);
293  insert(DIKS_PREVIOUS , Qt::Key_MediaPrevious);
294  insert(DIKS_NEXT , Qt::Key_MediaNext);
295 
296  insert(DIKS_F1 , Qt::Key_F1);
297  insert(DIKS_F2 , Qt::Key_F2);
298  insert(DIKS_F3 , Qt::Key_F3);
299  insert(DIKS_F4 , Qt::Key_F4);
300  insert(DIKS_F5 , Qt::Key_F5);
301  insert(DIKS_F6 , Qt::Key_F6);
302  insert(DIKS_F7 , Qt::Key_F7);
303  insert(DIKS_F8 , Qt::Key_F8);
304  insert(DIKS_F9 , Qt::Key_F9);
305  insert(DIKS_F10 , Qt::Key_F10);
306  insert(DIKS_F11 , Qt::Key_F11);
307  insert(DIKS_F12 , Qt::Key_F12);
308 
309  insert(DIKS_SHIFT , Qt::Key_Shift);
310  insert(DIKS_CONTROL , Qt::Key_Control);
311  insert(DIKS_ALT , Qt::Key_Alt);
312  insert(DIKS_ALTGR , Qt::Key_AltGr);
313 
314  insert(DIKS_META , Qt::Key_Meta);
315  insert(DIKS_SUPER , Qt::Key_Super_L); // ???
316  insert(DIKS_HYPER , Qt::Key_Hyper_L); // ???
317 
318  insert(DIKS_CAPS_LOCK , Qt::Key_CapsLock);
319  insert(DIKS_NUM_LOCK , Qt::Key_NumLock);
320  insert(DIKS_SCROLL_LOCK , Qt::Key_ScrollLock);
321 
322  insert(DIKS_DEAD_ABOVEDOT , Qt::Key_Dead_Abovedot);
323  insert(DIKS_DEAD_ABOVERING , Qt::Key_Dead_Abovering);
324  insert(DIKS_DEAD_ACUTE , Qt::Key_Dead_Acute);
325  insert(DIKS_DEAD_BREVE , Qt::Key_Dead_Breve);
326  insert(DIKS_DEAD_CARON , Qt::Key_Dead_Caron);
327  insert(DIKS_DEAD_CEDILLA , Qt::Key_Dead_Cedilla);
328  insert(DIKS_DEAD_CIRCUMFLEX , Qt::Key_Dead_Circumflex);
329  insert(DIKS_DEAD_DIAERESIS , Qt::Key_Dead_Diaeresis);
330  insert(DIKS_DEAD_DOUBLEACUTE , Qt::Key_Dead_Doubleacute);
331  insert(DIKS_DEAD_GRAVE , Qt::Key_Dead_Grave);
332  insert(DIKS_DEAD_IOTA , Qt::Key_Dead_Iota);
333  insert(DIKS_DEAD_MACRON , Qt::Key_Dead_Macron);
334  insert(DIKS_DEAD_OGONEK , Qt::Key_Dead_Ogonek);
335  insert(DIKS_DEAD_SEMIVOICED_SOUND , Qt::Key_Dead_Semivoiced_Sound);
336  insert(DIKS_DEAD_TILDE , Qt::Key_Dead_Tilde);
337  insert(DIKS_DEAD_VOICED_SOUND , Qt::Key_Dead_Voiced_Sound);
338  insert(DIKS_SPACE , Qt::Key_Space);
339  insert(DIKS_EXCLAMATION_MARK , Qt::Key_Exclam);
340  insert(DIKS_QUOTATION , Qt::Key_QuoteDbl);
341  insert(DIKS_NUMBER_SIGN , Qt::Key_NumberSign);
342  insert(DIKS_DOLLAR_SIGN , Qt::Key_Dollar);
343  insert(DIKS_PERCENT_SIGN , Qt::Key_Percent);
344  insert(DIKS_AMPERSAND , Qt::Key_Ampersand);
345  insert(DIKS_APOSTROPHE , Qt::Key_Apostrophe);
346  insert(DIKS_PARENTHESIS_LEFT , Qt::Key_ParenLeft);
347  insert(DIKS_PARENTHESIS_RIGHT , Qt::Key_ParenRight);
348  insert(DIKS_ASTERISK , Qt::Key_Asterisk);
349  insert(DIKS_PLUS_SIGN , Qt::Key_Plus);
350  insert(DIKS_COMMA , Qt::Key_Comma);
351  insert(DIKS_MINUS_SIGN , Qt::Key_Minus);
352  insert(DIKS_PERIOD , Qt::Key_Period);
353  insert(DIKS_SLASH , Qt::Key_Slash);
354  insert(DIKS_0 , Qt::Key_0);
355  insert(DIKS_1 , Qt::Key_1);
356  insert(DIKS_2 , Qt::Key_2);
357  insert(DIKS_3 , Qt::Key_3);
358  insert(DIKS_4 , Qt::Key_4);
359  insert(DIKS_5 , Qt::Key_5);
360  insert(DIKS_6 , Qt::Key_6);
361  insert(DIKS_7 , Qt::Key_7);
362  insert(DIKS_8 , Qt::Key_8);
363  insert(DIKS_9 , Qt::Key_9);
364  insert(DIKS_COLON , Qt::Key_Colon);
365  insert(DIKS_SEMICOLON , Qt::Key_Semicolon);
366  insert(DIKS_LESS_THAN_SIGN , Qt::Key_Less);
367  insert(DIKS_EQUALS_SIGN , Qt::Key_Equal);
368  insert(DIKS_GREATER_THAN_SIGN , Qt::Key_Greater);
369  insert(DIKS_QUESTION_MARK , Qt::Key_Question);
370  insert(DIKS_AT , Qt::Key_At);
371  insert(DIKS_CAPITAL_A , Qt::Key_A);
372  insert(DIKS_CAPITAL_B , Qt::Key_B);
373  insert(DIKS_CAPITAL_C , Qt::Key_C);
374  insert(DIKS_CAPITAL_D , Qt::Key_D);
375  insert(DIKS_CAPITAL_E , Qt::Key_E);
376  insert(DIKS_CAPITAL_F , Qt::Key_F);
377  insert(DIKS_CAPITAL_G , Qt::Key_G);
378  insert(DIKS_CAPITAL_H , Qt::Key_H);
379  insert(DIKS_CAPITAL_I , Qt::Key_I);
380  insert(DIKS_CAPITAL_J , Qt::Key_J);
381  insert(DIKS_CAPITAL_K , Qt::Key_K);
382  insert(DIKS_CAPITAL_L , Qt::Key_L);
383  insert(DIKS_CAPITAL_M , Qt::Key_M);
384  insert(DIKS_CAPITAL_N , Qt::Key_N);
385  insert(DIKS_CAPITAL_O , Qt::Key_O);
386  insert(DIKS_CAPITAL_P , Qt::Key_P);
387  insert(DIKS_CAPITAL_Q , Qt::Key_Q);
388  insert(DIKS_CAPITAL_R , Qt::Key_R);
389  insert(DIKS_CAPITAL_S , Qt::Key_S);
390  insert(DIKS_CAPITAL_T , Qt::Key_T);
391  insert(DIKS_CAPITAL_U , Qt::Key_U);
392  insert(DIKS_CAPITAL_V , Qt::Key_V);
393  insert(DIKS_CAPITAL_W , Qt::Key_W);
394  insert(DIKS_CAPITAL_X , Qt::Key_X);
395  insert(DIKS_CAPITAL_Y , Qt::Key_Y);
396  insert(DIKS_CAPITAL_Z , Qt::Key_Z);
397  insert(DIKS_SQUARE_BRACKET_LEFT , Qt::Key_BracketLeft);
398  insert(DIKS_BACKSLASH , Qt::Key_Backslash);
399  insert(DIKS_SQUARE_BRACKET_RIGHT , Qt::Key_BracketRight);
400  insert(DIKS_CIRCUMFLEX_ACCENT , Qt::Key_AsciiCircum);
401  insert(DIKS_UNDERSCORE , Qt::Key_Underscore);
402  insert(DIKS_SMALL_A , Qt::Key_A);
403  insert(DIKS_SMALL_B , Qt::Key_B);
404  insert(DIKS_SMALL_C , Qt::Key_C);
405  insert(DIKS_SMALL_D , Qt::Key_D);
406  insert(DIKS_SMALL_E , Qt::Key_E);
407  insert(DIKS_SMALL_F , Qt::Key_F);
408  insert(DIKS_SMALL_G , Qt::Key_G);
409  insert(DIKS_SMALL_H , Qt::Key_H);
410  insert(DIKS_SMALL_I , Qt::Key_I);
411  insert(DIKS_SMALL_J , Qt::Key_J);
412  insert(DIKS_SMALL_K , Qt::Key_K);
413  insert(DIKS_SMALL_L , Qt::Key_L);
414  insert(DIKS_SMALL_M , Qt::Key_M);
415  insert(DIKS_SMALL_N , Qt::Key_N);
416  insert(DIKS_SMALL_O , Qt::Key_O);
417  insert(DIKS_SMALL_P , Qt::Key_P);
418  insert(DIKS_SMALL_Q , Qt::Key_Q);
419  insert(DIKS_SMALL_R , Qt::Key_R);
420  insert(DIKS_SMALL_S , Qt::Key_S);
421  insert(DIKS_SMALL_T , Qt::Key_T);
422  insert(DIKS_SMALL_U , Qt::Key_U);
423  insert(DIKS_SMALL_V , Qt::Key_V);
424  insert(DIKS_SMALL_W , Qt::Key_W);
425  insert(DIKS_SMALL_X , Qt::Key_X);
426  insert(DIKS_SMALL_Y , Qt::Key_Y);
427  insert(DIKS_SMALL_Z , Qt::Key_Z);
428  insert(DIKS_CURLY_BRACKET_LEFT , Qt::Key_BraceLeft);
429  insert(DIKS_VERTICAL_BAR , Qt::Key_Bar);
430  insert(DIKS_CURLY_BRACKET_RIGHT , Qt::Key_BraceRight);
431  insert(DIKS_TILDE , Qt::Key_AsciiTilde);
432 }
iterator insert(const DFBInputDeviceKeySymbol &key, const Qt::Key &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753

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