Changeset 81254 in vbox
- Timestamp:
- Oct 14, 2019 11:48:51 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
-
src/softkeyboard/UISoftKeyboard.cpp (modified) (8 diffs)
-
xml/multimedia_keys.xml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r81217 r81254 327 327 int spaceHeightAfter() const; 328 328 329 int leftMargin() const; 330 void setLeftMargin(int iMargin); 331 329 332 private: 330 333 … … 336 339 QVector<UISoftKeyboardKey> m_keys; 337 340 int m_iSpaceHeightAfter; 341 /* The width of the empty space before the 1st key. */ 342 int m_iLeftMargin; 338 343 }; 339 344 … … 1375 1380 , m_iDefaultHeight(0) 1376 1381 , m_iSpaceHeightAfter(0) 1382 , m_iLeftMargin(0) 1377 1383 { 1378 1384 } … … 1416 1422 { 1417 1423 return m_iSpaceHeightAfter; 1424 } 1425 1426 int UISoftKeyboardRow::leftMargin() const 1427 { 1428 return m_iLeftMargin; 1429 } 1430 1431 void UISoftKeyboardRow::setLeftMargin(int iMargin) 1432 { 1433 m_iLeftMargin = iMargin; 1418 1434 } 1419 1435 … … 1494 1510 } 1495 1511 1512 int UISoftKeyboardKey::spaceWidthAfter() const 1513 { 1514 return m_iSpaceWidthAfter; 1515 } 1516 1496 1517 void UISoftKeyboardKey::setUsageId(LONG usageId) 1497 1518 { … … 1507 1528 { 1508 1529 return QPair<LONG, LONG>(m_iUsageId, m_iUsagePage); 1509 }1510 1511 int UISoftKeyboardKey::spaceWidthAfter() const1512 {1513 return m_iSpaceWidthAfter;1514 1530 } 1515 1531 … … 2649 2665 } 2650 2666 2651 int iX = m_iLeftMargin ;2667 int iX = m_iLeftMargin + row.leftMargin(); 2652 2668 int iXNoNumPad = m_iLeftMargin; 2653 2669 int iRowHeight = row.defaultHeight(); … … 3058 3074 m_xmlReader.skipCurrentElement(); 3059 3075 } 3060 if (row.keys().size() <= 0) 3061 return; 3062 row.keys().back().setSpaceWidthAfter(iWidth); 3076 /* If we have keys add the parsed space to the last key as the 'space after': */ 3077 if (!row.keys().empty()) 3078 row.keys().back().setSpaceWidthAfter(iWidth); 3079 /* If we have no keys than this is the initial space left to first key: */ 3080 else 3081 row.setLeftMargin(iWidth); 3063 3082 } 3064 3083 -
trunk/src/VBox/Frontends/VirtualBox/xml/multimedia_keys.xml
r81244 r81254 4 4 <id>80b4c26e-43fc-44f8-b515-351cff9269ce</id> 5 5 <row> 6 <space>7 <width>50</width>8 </space>9 10 6 <key><!-- WWW back --> 11 7 <position>300</position> 12 8 <usageid>0x0224</usageid> 13 9 <usagepage>0x0C</usagepage> 14 <scancode>0x20</scancode> 10 <scancodeprefix>0xE0</scancodeprefix> 11 <scancode>0x6A</scancode> 15 12 <staticcaption>đĄ</staticcaption> 16 13 </key> … … 19 16 <usageid>0x0223</usageid> 20 17 <usagepage>0x0C</usagepage> 21 <scancode>0x20</scancode> 18 <scancodeprefix>0xE0</scancodeprefix> 19 <scancode>0x32</scancode> 22 20 <staticcaption>ī</staticcaption> 23 21 </key> 24 25 22 <key><!-- WWW forward --> 26 23 <position>302</position> 27 24 <usageid>0x0225</usageid> 28 25 <usagepage>0x0C</usagepage> 29 <scancodeprefix>0x e0</scancodeprefix>30 <scancode>0x 35</scancode>26 <scancodeprefix>0xE0</scancodeprefix> 27 <scancode>0x69</scancode> 31 28 <staticcaption>đĄ</staticcaption> 29 </key> 30 <key><!-- Bookmarks --> 31 <position>313</position> 32 <usageid>0x022A</usageid> 33 <usagepage>0x0C</usagepage> 34 <scancodeprefix>0xE0</scancodeprefix> 35 <scancode>0x66</scancode> 36 <staticcaption>đ</staticcaption> 32 37 </key> 33 38 <key><!-- Mail --> … … 35 40 <usageid>0x018A</usageid> 36 41 <usagepage>0x0C</usagepage> 37 <scancodeprefix>0x e0</scancodeprefix>38 <scancode>0x 35</scancode>42 <scancodeprefix>0xE0</scancodeprefix> 43 <scancode>0x6C</scancode> 39 44 <staticcaption>â</staticcaption> 40 45 </key> 46 <space> 47 <width>25</width> 48 </space> 41 49 <key><!-- Mute --> 42 50 <position>304</position> 43 51 <usageid>0xE2</usageid> 44 52 <usagepage>0x0C</usagepage> 45 <scancode>0x4a</scancode> 53 <scancodeprefix>0xE0</scancodeprefix> 54 <scancode>0x20</scancode> 46 55 <staticcaption>đ</staticcaption> 47 56 </key> … … 50 59 <usageid>0xEA</usageid> 51 60 <usagepage>0x0C</usagepage> 52 <scancode>0x4a</scancode> 61 <scancodeprefix>0xE0</scancodeprefix> 62 <scancode>0x2E</scancode> 53 63 <staticcaption>đ</staticcaption> 54 64 </key> … … 57 67 <usageid>0xE9</usageid> 58 68 <usagepage>0x0C</usagepage> 59 <scancode>0x4a</scancode> 69 <scancodeprefix>0xE0</scancodeprefix> 70 <scancode>0x30</scancode> 60 71 <staticcaption>đ</staticcaption> 61 72 </key> 73 74 <space> 75 <width>25</width> 76 </space> 77 <key><!-- Previous --> 78 <position>307</position> 79 <usageid>0xB6</usageid> 80 <usagepage>0x0C</usagepage> 81 <scancodeprefix>0xE0</scancodeprefix> 82 <scancode>0x10</scancode> 83 <staticcaption>âŽī¸</staticcaption> 84 </key> 85 <key><!-- Next --> 86 <position>308</position> 87 <usageid>0xB5</usageid> 88 <usagepage>0x0C</usagepage> 89 <scancode>0x19</scancode> 90 <scancodeprefix>0xE0</scancodeprefix> 91 <staticcaption>âī¸</staticcaption> 92 </key> 93 94 <key><!-- Stop --> 95 <position>309</position> 96 <usageid>0xB7</usageid> 97 <usagepage>0x0C</usagepage> 98 <scancode>0x24</scancode> 99 <scancodeprefix>0xE0</scancodeprefix> 100 <staticcaption>âšī¸</staticcaption> 101 </key> 102 <key><!-- Play/Pause --> 103 <position>310</position> 104 <usageid>0xCD</usageid> 105 <usagepage>0x0C</usagepage> 106 <scancode>0x22</scancode> 107 <scancodeprefix>0xE0</scancodeprefix> 108 <staticcaption>â¯ī¸</staticcaption> 109 </key> 110 <space> 111 <width>25</width> 112 </space> 113 <key><!-- Calculator --> 114 <position>311</position> 115 <usageid>0x192</usageid> 116 <usagepage>0x0C</usagepage> 117 <scancodeprefix>0xE0</scancodeprefix> 118 <scancode>0x21</scancode> 119 <staticcaption>đŠī¸</staticcaption> 120 </key> 121 <key><!-- My Computer --> 122 <position>312</position> 123 <usageid>0x194</usageid> 124 <usagepage>0x0C</usagepage> 125 <scancodeprefix>0xE0</scancodeprefix> 126 <scancode>0x6B</scancode> 127 <staticcaption>đģī¸ī¸</staticcaption> 128 </key> 129 <key><!-- Media --> 130 <position>312</position> 131 <usageid>0x183</usageid> 132 <usagepage>0x0C</usagepage> 133 <scancodeprefix>0xE0</scancodeprefix> 134 <scancode>0x6D</scancode> 135 <staticcaption>âŦ</staticcaption> 136 </key> 137 62 138 </row> 63 139 </physicallayout>
Note:
See TracChangeset
for help on using the changeset viewer.

