Changeset 81121 in vbox
- Timestamp:
- Oct 7, 2019 8:36:26 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r81110 r81121 118 118 *********************************************************************************************************************************/ 119 119 120 /** This class is used to represent the physical layout of a keyboard (in contrast to UISoftKeyboardLayout). 121 * Physical layouts are read from an xml file where keys are placed in rows. Each UISoftKeyboardLayout must refer to a 122 * refer to a UISoftKeyboardPhysicalLayout instance. An example of an UISoftKeyboardPhysicalLayout instance is 103 key ISO layout.*/ 120 123 class UISoftKeyboardPhysicalLayout 121 124 { … … 147 150 QString m_strName; 148 151 QVector<UISoftKeyboardRow> m_rows; 152 /** Scroll, Num, and Caps Lock keys' states are updated thru some API events. Thus we keep their pointers in a containter. */ 149 153 QMap<int, UISoftKeyboardKey*> m_lockKeys; 150 154 }; … … 154 158 *********************************************************************************************************************************/ 155 159 160 /** A QWidget extension thru which we can edit key captions, the physical layout of the keyboard, name of the layout etc. */ 156 161 class UIKeyboardLayoutEditor : public QIWithRetranslateUI<QWidget> 157 162 { … … 273 278 *********************************************************************************************************************************/ 274 279 275 /** UISoftKeyboardRow represents a row in the physical keyboard. */ 280 /** UISoftKeyboardRow represents a row in the physical keyboard. The rows are read from a physical layout file and contained 281 * keys are added to rows in the order they appear in that file.*/ 276 282 class UISoftKeyboardRow 277 283 { … … 306 312 *********************************************************************************************************************************/ 307 313 308 /** UISoftKeyboardKey is a place holder for a keyboard key. Graphical key represantations are drawn according to this class. */ 314 /** UISoftKeyboardKey is a place holder for a keyboard key. Graphical key represantations are drawn according to this class. 315 * The position of a key within the physical layout is read from the layout file. Note that UISoftKeyboardKey does not have 316 * caption field(s). */ 309 317 class UISoftKeyboardKey 310 318 { … … 408 416 * UISoftKeyboardLayout definition. * 409 417 *********************************************************************************************************************************/ 410 418 /** UISoftKeyboardLayout represents mainly a set of captions for the keys. It refers to a phsical layout which defines the 419 * positioning and number of keys (alongside with scan codes etc.). UISoftKeyboardLayout instances are read from xml files. An 420 * example for UISoftKeyboardLayout instance is 'US International' keyboard layout. */ 411 421 class UISoftKeyboardLayout 412 422 { … … 504 514 *********************************************************************************************************************************/ 505 515 506 /** The container widget for keyboard keys. It also handles all the keyboard related events. */ 516 /** The container widget for keyboard keys. It also handles all the keyboard related events. paintEvent of this class 517 * handles drawing of the soft keyboard. */ 507 518 class UISoftKeyboardWidget : public QIWithRetranslateUI<QWidget> 508 519 { … … 644 655 bool parseXMLFile(const QString &strFileName, UISoftKeyboardPhysicalLayout &physicalLayout); 645 656 static QVector<QPoint> computeKeyVertices(const UISoftKeyboardKey &key); 657 646 658 private: 647 659
Note:
See TracChangeset
for help on using the changeset viewer.