Qt 4.8
Public Functions | List of all members
QDirectFbKeyMap Class Reference

#include <qdirectfbconvenience.h>

Inheritance diagram for QDirectFbKeyMap:
QHash< DFBInputDeviceKeySymbol, Qt::Key >

Public Functions

 QDirectFbKeyMap ()
 
- 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 57 of file qdirectfbconvenience.h.

Constructors and Destructors

◆ QDirectFbKeyMap()

QDirectFbKeyMap::QDirectFbKeyMap ( )

Definition at line 208 of file qdirectfbconvenience.cpp.

209 {
210  insert(DIKS_BACKSPACE , Qt::Key_Backspace);
211  insert(DIKS_TAB , Qt::Key_Tab);
212  insert(DIKS_RETURN , Qt::Key_Return);
213  insert(DIKS_ESCAPE , Qt::Key_Escape);
214  insert(DIKS_DELETE , Qt::Key_Delete);
215 
216  insert(DIKS_CURSOR_LEFT , Qt::Key_Left);
217  insert(DIKS_CURSOR_RIGHT , Qt::Key_Right);
218  insert(DIKS_CURSOR_UP , Qt::Key_Up);
219  insert(DIKS_CURSOR_DOWN , Qt::Key_Down);
220  insert(DIKS_INSERT , Qt::Key_Insert);
221  insert(DIKS_HOME , Qt::Key_Home);
222  insert(DIKS_END , Qt::Key_End);
223  insert(DIKS_PAGE_UP , Qt::Key_PageUp);
224  insert(DIKS_PAGE_DOWN , Qt::Key_PageDown);
225  insert(DIKS_PRINT , Qt::Key_Print);
226  insert(DIKS_PAUSE , Qt::Key_Pause);
227  insert(DIKS_SELECT , Qt::Key_Select);
228  insert(DIKS_GOTO , Qt::Key_OpenUrl);
229  insert(DIKS_CLEAR , Qt::Key_Clear);
230  insert(DIKS_MENU , Qt::Key_Menu);
231  insert(DIKS_HELP , Qt::Key_Help);
232 
233  insert(DIKS_INTERNET , Qt::Key_HomePage);
234  insert(DIKS_MAIL , Qt::Key_LaunchMail);
235  insert(DIKS_FAVORITES , Qt::Key_Favorites);
236 
237  insert(DIKS_BACK , Qt::Key_Back);
238  insert(DIKS_FORWARD , Qt::Key_Forward);
239  insert(DIKS_VOLUME_UP , Qt::Key_VolumeUp);
240  insert(DIKS_VOLUME_DOWN , Qt::Key_VolumeDown);
241  insert(DIKS_MUTE , Qt::Key_VolumeMute);
242  insert(DIKS_PLAYPAUSE , Qt::Key_Pause);
243  insert(DIKS_PLAY , Qt::Key_MediaPlay);
244  insert(DIKS_STOP , Qt::Key_MediaStop);
245  insert(DIKS_RECORD , Qt::Key_MediaRecord);
246  insert(DIKS_PREVIOUS , Qt::Key_MediaPrevious);
247  insert(DIKS_NEXT , Qt::Key_MediaNext);
248 
249  insert(DIKS_F1 , Qt::Key_F1);
250  insert(DIKS_F2 , Qt::Key_F2);
251  insert(DIKS_F3 , Qt::Key_F3);
252  insert(DIKS_F4 , Qt::Key_F4);
253  insert(DIKS_F5 , Qt::Key_F5);
254  insert(DIKS_F6 , Qt::Key_F6);
255  insert(DIKS_F7 , Qt::Key_F7);
256  insert(DIKS_F8 , Qt::Key_F8);
257  insert(DIKS_F9 , Qt::Key_F9);
258  insert(DIKS_F10 , Qt::Key_F10);
259  insert(DIKS_F11 , Qt::Key_F11);
260  insert(DIKS_F12 , Qt::Key_F12);
261 
262  insert(DIKS_SHIFT , Qt::Key_Shift);
263  insert(DIKS_CONTROL , Qt::Key_Control);
264  insert(DIKS_ALT , Qt::Key_Alt);
265  insert(DIKS_ALTGR , Qt::Key_AltGr);
266 
267  insert(DIKS_META , Qt::Key_Meta);
268  insert(DIKS_SUPER , Qt::Key_Super_L); // ???
269  insert(DIKS_HYPER , Qt::Key_Hyper_L); // ???
270 
271  insert(DIKS_CAPS_LOCK , Qt::Key_CapsLock);
272  insert(DIKS_NUM_LOCK , Qt::Key_NumLock);
273  insert(DIKS_SCROLL_LOCK , Qt::Key_ScrollLock);
274 
275  insert(DIKS_DEAD_ABOVEDOT , Qt::Key_Dead_Abovedot);
276  insert(DIKS_DEAD_ABOVERING , Qt::Key_Dead_Abovering);
277  insert(DIKS_DEAD_ACUTE , Qt::Key_Dead_Acute);
278  insert(DIKS_DEAD_BREVE , Qt::Key_Dead_Breve);
279  insert(DIKS_DEAD_CARON , Qt::Key_Dead_Caron);
280  insert(DIKS_DEAD_CEDILLA , Qt::Key_Dead_Cedilla);
281  insert(DIKS_DEAD_CIRCUMFLEX , Qt::Key_Dead_Circumflex);
282  insert(DIKS_DEAD_DIAERESIS , Qt::Key_Dead_Diaeresis);
283  insert(DIKS_DEAD_DOUBLEACUTE , Qt::Key_Dead_Doubleacute);
284  insert(DIKS_DEAD_GRAVE , Qt::Key_Dead_Grave);
285  insert(DIKS_DEAD_IOTA , Qt::Key_Dead_Iota);
286  insert(DIKS_DEAD_MACRON , Qt::Key_Dead_Macron);
287  insert(DIKS_DEAD_OGONEK , Qt::Key_Dead_Ogonek);
288  insert(DIKS_DEAD_SEMIVOICED_SOUND , Qt::Key_Dead_Semivoiced_Sound);
289  insert(DIKS_DEAD_TILDE , Qt::Key_Dead_Tilde);
290  insert(DIKS_DEAD_VOICED_SOUND , Qt::Key_Dead_Voiced_Sound);
291  insert(DIKS_SPACE , Qt::Key_Space);
292  insert(DIKS_EXCLAMATION_MARK , Qt::Key_Exclam);
293  insert(DIKS_QUOTATION , Qt::Key_QuoteDbl);
294  insert(DIKS_NUMBER_SIGN , Qt::Key_NumberSign);
295  insert(DIKS_DOLLAR_SIGN , Qt::Key_Dollar);
296  insert(DIKS_PERCENT_SIGN , Qt::Key_Percent);
297  insert(DIKS_AMPERSAND , Qt::Key_Ampersand);
298  insert(DIKS_APOSTROPHE , Qt::Key_Apostrophe);
299  insert(DIKS_PARENTHESIS_LEFT , Qt::Key_ParenLeft);
300  insert(DIKS_PARENTHESIS_RIGHT , Qt::Key_ParenRight);
301  insert(DIKS_ASTERISK , Qt::Key_Asterisk);
302  insert(DIKS_PLUS_SIGN , Qt::Key_Plus);
303  insert(DIKS_COMMA , Qt::Key_Comma);
304  insert(DIKS_MINUS_SIGN , Qt::Key_Minus);
305  insert(DIKS_PERIOD , Qt::Key_Period);
306  insert(DIKS_SLASH , Qt::Key_Slash);
307  insert(DIKS_0 , Qt::Key_0);
308  insert(DIKS_1 , Qt::Key_1);
309  insert(DIKS_2 , Qt::Key_2);
310  insert(DIKS_3 , Qt::Key_3);
311  insert(DIKS_4 , Qt::Key_4);
312  insert(DIKS_5 , Qt::Key_5);
313  insert(DIKS_6 , Qt::Key_6);
314  insert(DIKS_7 , Qt::Key_7);
315  insert(DIKS_8 , Qt::Key_8);
316  insert(DIKS_9 , Qt::Key_9);
317  insert(DIKS_COLON , Qt::Key_Colon);
318  insert(DIKS_SEMICOLON , Qt::Key_Semicolon);
319  insert(DIKS_LESS_THAN_SIGN , Qt::Key_Less);
320  insert(DIKS_EQUALS_SIGN , Qt::Key_Equal);
321  insert(DIKS_GREATER_THAN_SIGN , Qt::Key_Greater);
322  insert(DIKS_QUESTION_MARK , Qt::Key_Question);
323  insert(DIKS_AT , Qt::Key_At);
324  insert(DIKS_CAPITAL_A , Qt::Key_A);
325  insert(DIKS_CAPITAL_B , Qt::Key_B);
326  insert(DIKS_CAPITAL_C , Qt::Key_C);
327  insert(DIKS_CAPITAL_D , Qt::Key_D);
328  insert(DIKS_CAPITAL_E , Qt::Key_E);
329  insert(DIKS_CAPITAL_F , Qt::Key_F);
330  insert(DIKS_CAPITAL_G , Qt::Key_G);
331  insert(DIKS_CAPITAL_H , Qt::Key_H);
332  insert(DIKS_CAPITAL_I , Qt::Key_I);
333  insert(DIKS_CAPITAL_J , Qt::Key_J);
334  insert(DIKS_CAPITAL_K , Qt::Key_K);
335  insert(DIKS_CAPITAL_L , Qt::Key_L);
336  insert(DIKS_CAPITAL_M , Qt::Key_M);
337  insert(DIKS_CAPITAL_N , Qt::Key_N);
338  insert(DIKS_CAPITAL_O , Qt::Key_O);
339  insert(DIKS_CAPITAL_P , Qt::Key_P);
340  insert(DIKS_CAPITAL_Q , Qt::Key_Q);
341  insert(DIKS_CAPITAL_R , Qt::Key_R);
342  insert(DIKS_CAPITAL_S , Qt::Key_S);
343  insert(DIKS_CAPITAL_T , Qt::Key_T);
344  insert(DIKS_CAPITAL_U , Qt::Key_U);
345  insert(DIKS_CAPITAL_V , Qt::Key_V);
346  insert(DIKS_CAPITAL_W , Qt::Key_W);
347  insert(DIKS_CAPITAL_X , Qt::Key_X);
348  insert(DIKS_CAPITAL_Y , Qt::Key_Y);
349  insert(DIKS_CAPITAL_Z , Qt::Key_Z);
350  insert(DIKS_SQUARE_BRACKET_LEFT , Qt::Key_BracketLeft);
351  insert(DIKS_BACKSLASH , Qt::Key_Backslash);
352  insert(DIKS_SQUARE_BRACKET_RIGHT , Qt::Key_BracketRight);
353  insert(DIKS_CIRCUMFLEX_ACCENT , Qt::Key_AsciiCircum);
354  insert(DIKS_UNDERSCORE , Qt::Key_Underscore);
355  insert(DIKS_SMALL_A , Qt::Key_A);
356  insert(DIKS_SMALL_B , Qt::Key_B);
357  insert(DIKS_SMALL_C , Qt::Key_C);
358  insert(DIKS_SMALL_D , Qt::Key_D);
359  insert(DIKS_SMALL_E , Qt::Key_E);
360  insert(DIKS_SMALL_F , Qt::Key_F);
361  insert(DIKS_SMALL_G , Qt::Key_G);
362  insert(DIKS_SMALL_H , Qt::Key_H);
363  insert(DIKS_SMALL_I , Qt::Key_I);
364  insert(DIKS_SMALL_J , Qt::Key_J);
365  insert(DIKS_SMALL_K , Qt::Key_K);
366  insert(DIKS_SMALL_L , Qt::Key_L);
367  insert(DIKS_SMALL_M , Qt::Key_M);
368  insert(DIKS_SMALL_N , Qt::Key_N);
369  insert(DIKS_SMALL_O , Qt::Key_O);
370  insert(DIKS_SMALL_P , Qt::Key_P);
371  insert(DIKS_SMALL_Q , Qt::Key_Q);
372  insert(DIKS_SMALL_R , Qt::Key_R);
373  insert(DIKS_SMALL_S , Qt::Key_S);
374  insert(DIKS_SMALL_T , Qt::Key_T);
375  insert(DIKS_SMALL_U , Qt::Key_U);
376  insert(DIKS_SMALL_V , Qt::Key_V);
377  insert(DIKS_SMALL_W , Qt::Key_W);
378  insert(DIKS_SMALL_X , Qt::Key_X);
379  insert(DIKS_SMALL_Y , Qt::Key_Y);
380  insert(DIKS_SMALL_Z , Qt::Key_Z);
381  insert(DIKS_CURLY_BRACKET_LEFT , Qt::Key_BraceLeft);
382  insert(DIKS_VERTICAL_BAR , Qt::Key_Bar);
383  insert(DIKS_CURLY_BRACKET_RIGHT , Qt::Key_BraceRight);
384  insert(DIKS_TILDE , Qt::Key_AsciiTilde);
385 }
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 files: