Changeset 79356 in vbox
- Timestamp:
- Jun 26, 2019 11:37:16 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131588
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r79325 r79356 18 18 /* Qt includes: */ 19 19 #include <QApplication> 20 #include <QCheckBox> 20 21 #include <QComboBox> 21 22 #include <QFile> … … 330 331 UIKeyType type() const; 331 332 333 void setIsNumPadKey(bool fIsNumPadKey); 334 bool isNumPadKey() const; 335 336 void setIsOSMenuKey(bool fIsOSMenuKey); 337 bool isOSMenuKey() const; 338 332 339 void setCutout(int iCorner, int iWidth, int iHeight); 333 340 … … 348 355 int cutoutHeight() const; 349 356 QPicture m_textPixmap; 357 350 358 private: 351 359 … … 354 362 355 363 QRect m_keyGeometry; 356 357 364 QString m_strBaseCaption; 358 365 QString m_strShiftCaption; 359 366 QString m_strAltGrCaption; 360 367 QString m_strShiftAltGrCaption; 361 362 368 /** m_strText is concatenation of base, shift, and altgr captions. */ 363 369 QString m_strText; 364 365 370 /** Stores the key polygon in local coordinates. */ 366 371 QPolygon m_polygon; … … 374 379 LONG m_scanCode; 375 380 LONG m_scanCodePrefix; 376 int m_iCutoutWidth; 377 int m_iCutoutHeight; 378 /** -1 is for no cutout. 0 is the topleft, 2 is the top right and so on. */ 379 int m_iCutoutCorner; 381 382 /** @name Cutouts are used to create non-rectangle keys polygons. 383 * @{ */ 384 int m_iCutoutWidth; 385 int m_iCutoutHeight; 386 /** -1 is for no cutout. 0 is the topleft, 2 is the top right and so on. */ 387 int m_iCutoutCorner; 388 /** @} */ 389 380 390 /** Key's position in the layout. */ 381 391 int m_iPosition; 382 392 UISoftKeyboardWidget *m_pParentWidget; 393 bool m_fIsNumPadKey; 394 bool m_fIsOSMenuKey; 383 395 }; 384 396 … … 476 488 void saveCurentLayoutToFile(); 477 489 void copyCurentLayout(); 478 float layoutAspectRation(); 490 float layoutAspectRatio(); 491 492 bool showOSMenuKeys(); 493 void setShowOSMenuKeys(bool fShow); 494 495 bool showNumPad(); 496 void setShowNumPad(bool fShow); 479 497 480 498 protected: … … 533 551 int m_iInitialHeight; 534 552 int m_iInitialWidth; 553 int m_iInitialWidthNoNumPad; 535 554 int m_iXSpacing; 536 555 int m_iYSpacing; … … 542 561 QMenu *m_pContextMenu; 543 562 Mode m_enmMode; 563 564 bool m_fShowOSMenuKeys; 565 bool m_fShowNumPad; 544 566 }; 545 567 … … 604 626 605 627 void sigShowHideSidePanel(); 628 void sigShowSettingWidget(); 606 629 607 630 public: … … 621 644 void prepareObjects(); 622 645 QToolButton *m_pLayoutListButton; 646 QToolButton *m_pSettingsButton; 623 647 QLabel *m_pMessageLabel; 648 }; 649 650 651 /********************************************************************************************************************************* 652 * UISoftKeyboardSettingsWidget definition. * 653 *********************************************************************************************************************************/ 654 655 class UISoftKeyboardSettingsWidget : public QIWithRetranslateUI<QWidget> 656 { 657 Q_OBJECT; 658 659 signals: 660 661 void sigShowNumPad(bool fShow); 662 void sigShowOSMenuKeys(bool fShow); 663 664 public: 665 666 UISoftKeyboardSettingsWidget(QWidget *pParent = 0); 667 void setShowOSMenuKeys(bool fShow); 668 void setShowNumPad(bool fShow); 669 670 protected: 671 672 virtual void retranslateUi() /* override */; 673 674 private slots: 675 676 677 private: 678 679 void prepareObjects(); 680 681 QCheckBox *m_pShowNumPadCheckBox; 682 QCheckBox *m_pShowOsMenuButtonsCheckBox; 683 624 684 }; 625 685 … … 732 792 m_pTitleLabel->setText(UISoftKeyboard::tr("Layout Editor")); 733 793 if (m_pGoBackButton) 794 { 734 795 m_pGoBackButton->setToolTip(UISoftKeyboard::tr("Return Back to Layout List")); 796 m_pGoBackButton->setText(UISoftKeyboard::tr("Back to Layout List")); 797 } 735 798 if (m_pPhysicalLayoutLabel) 736 799 m_pPhysicalLayoutLabel->setText(UISoftKeyboard::tr("Physical Layout")); … … 814 877 QHBoxLayout *pTitleLayout = new QHBoxLayout; 815 878 m_pGoBackButton = new QToolButton; 879 m_pGoBackButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); 816 880 m_pGoBackButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowBack)); 817 m_pGoBackButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}"); 881 //m_pGoBackButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}"); 882 m_pGoBackButton->setAutoRaise(true); 818 883 m_pEditorLayout->addWidget(m_pGoBackButton, 0, 0, 1, 1); 819 884 connect(m_pGoBackButton, &QToolButton::clicked, this, &UILayoutEditor::sigGoBackButton); … … 1015 1080 m_pTitleLabel->setText(UISoftKeyboard::tr("Layout List")); 1016 1081 if (m_pCloseButton) 1082 { 1017 1083 m_pCloseButton->setToolTip(UISoftKeyboard::tr("Close the layout list")); 1084 m_pCloseButton->setText("Close"); 1085 } 1018 1086 } 1019 1087 … … 1028 1096 QHBoxLayout *pTitleLayout = new QHBoxLayout; 1029 1097 m_pCloseButton = new QToolButton; 1098 m_pCloseButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); 1030 1099 m_pCloseButton->setIcon(UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_DialogCancel)); 1031 m_pCloseButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}"); 1100 //m_pCloseButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}"); 1101 m_pCloseButton->setAutoRaise(true); 1032 1102 connect(m_pCloseButton, &QToolButton::clicked, this, &UILayoutSelector::sigCloseLayoutList); 1033 1103 pTitleLayout->addWidget(m_pCloseButton); … … 1137 1207 , m_iPosition(0) 1138 1208 , m_pParentWidget(0) 1209 , m_fIsNumPadKey(false) 1210 , m_fIsOSMenuKey(false) 1211 1139 1212 { 1140 1213 } … … 1276 1349 { 1277 1350 return m_enmType; 1351 } 1352 1353 void UISoftKeyboardKey::setIsNumPadKey(bool fIsNumPadKey) 1354 { 1355 m_fIsNumPadKey = fIsNumPadKey; 1356 } 1357 1358 bool UISoftKeyboardKey::isNumPadKey() const 1359 { 1360 return m_fIsNumPadKey; 1361 } 1362 1363 void UISoftKeyboardKey::setIsOSMenuKey(bool fIsOSMenuKey) 1364 { 1365 m_fIsOSMenuKey = fIsOSMenuKey; 1366 } 1367 1368 bool UISoftKeyboardKey::isOSMenuKey() const 1369 { 1370 return m_fIsOSMenuKey; 1278 1371 } 1279 1372 … … 1539 1632 , m_iInitialHeight(0) 1540 1633 , m_iInitialWidth(0) 1634 , m_iInitialWidthNoNumPad(0) 1541 1635 , m_iXSpacing(5) 1542 1636 , m_iYSpacing(5) … … 1547 1641 , m_pContextMenu(0) 1548 1642 , m_enmMode(Mode_Keyboard) 1643 , m_fShowOSMenuKeys(true) 1644 , m_fShowNumPad(true) 1549 1645 { 1550 1646 prepareObjects(); … … 1566 1662 { 1567 1663 Q_UNUSED(pEvent); 1568 m_fScaleFactorX = width() / (float) m_iInitialWidth; 1664 if (!m_pCurrentKeyboardLayout || m_iInitialWidth == 0 || m_iInitialWidthNoNumPad == 0 || m_iInitialHeight == 0) 1665 return; 1666 1667 if (m_fShowNumPad) 1668 m_fScaleFactorX = width() / (float) m_iInitialWidth; 1669 else 1670 m_fScaleFactorX = width() / (float) m_iInitialWidthNoNumPad; 1569 1671 m_fScaleFactorY = height() / (float) m_iInitialHeight; 1570 1672 … … 1580 1682 float fLedMargin = 0.6 * unitSize; 1581 1683 1582 if (!m_pCurrentKeyboardLayout || m_iInitialWidth == 0 || m_iInitialHeight == 0)1583 return;1584 1684 1585 1685 UISoftKeyboardPhysicalLayout *pPhysicalLayout = findPhysicalLayout(m_pCurrentKeyboardLayout->physicalLayoutUuid()); … … 1594 1694 { 1595 1695 UISoftKeyboardKey &key = keys[j]; 1696 if (!m_fShowOSMenuKeys && key.isOSMenuKey()) 1697 continue; 1698 1699 if (!m_fShowNumPad &&key.isNumPadKey()) 1700 continue; 1701 1596 1702 painter.translate(key.keyGeometry().x(), key.keyGeometry().y()); 1597 1703 … … 1772 1878 } 1773 1879 1774 float UISoftKeyboardWidget::layoutAspectRatio n()1880 float UISoftKeyboardWidget::layoutAspectRatio() 1775 1881 { 1776 1882 if (m_iInitialWidth == 0) 1777 1883 return 1.f; 1778 1884 return m_iInitialHeight / (float) m_iInitialWidth; 1885 } 1886 1887 bool UISoftKeyboardWidget::showOSMenuKeys() 1888 { 1889 return m_fShowOSMenuKeys; 1890 } 1891 1892 void UISoftKeyboardWidget::setShowOSMenuKeys(bool fShow) 1893 { 1894 if (m_fShowOSMenuKeys == fShow) 1895 return; 1896 m_fShowOSMenuKeys = fShow; 1897 update(); 1898 } 1899 1900 bool UISoftKeyboardWidget::showNumPad() 1901 { 1902 return m_fShowNumPad; 1903 } 1904 1905 void UISoftKeyboardWidget::setShowNumPad(bool fShow) 1906 { 1907 if (m_fShowNumPad == fShow) 1908 return; 1909 m_fShowNumPad = fShow; 1910 update(); 1779 1911 } 1780 1912 … … 2020 2152 2021 2153 if (isNumPad) 2154 { 2155 /* Mark all the key as numpad keys: */ 2156 for (int i = 0; i < m_numPadLayout.rows().size(); ++i) 2157 { 2158 UISoftKeyboardRow &row = m_numPadLayout.rows()[i]; 2159 for (int j = 0; j < row.keys().size(); ++j) 2160 { 2161 row.keys()[j].setIsNumPadKey(true); 2162 } 2163 } 2022 2164 return true; 2165 } 2023 2166 2024 2167 int iY = m_iTopMargin; 2025 2168 int iMaxWidth = 0; 2169 int iMaxWidthNoNumPad = 0; 2026 2170 const QVector<UISoftKeyboardRow> &numPadRows = m_numPadLayout.rows(); 2027 2171 QVector<UISoftKeyboardRow> &rows = newPhysicalLayout->rows(); … … 2042 2186 2043 2187 int iX = m_iLeftMargin; 2188 int iXNoNumPad = m_iLeftMargin; 2044 2189 int iRowHeight = row.defaultHeight(); 2045 2190 for (int j = 0; j < row.keys().size(); ++j) … … 2055 2200 if (key.spaceWidthAfter() != 0) 2056 2201 iX += (m_iXSpacing + key.spaceWidthAfter()); 2202 2203 if (!key.isNumPadKey()) 2204 { 2205 iXNoNumPad += key.width(); 2206 if (j < row.keys().size() - 1) 2207 iXNoNumPad += m_iXSpacing; 2208 if (key.spaceWidthAfter() != 0) 2209 iXNoNumPad += (m_iXSpacing + key.spaceWidthAfter()); 2210 } 2057 2211 } 2058 2212 if (row.spaceHeightAfter() != 0) 2059 2213 iY += row.spaceHeightAfter() + m_iYSpacing; 2060 2214 iMaxWidth = qMax(iMaxWidth, iX); 2215 iMaxWidthNoNumPad = qMax(iMaxWidthNoNumPad, iXNoNumPad); 2061 2216 iY += iRowHeight; 2062 2217 if (i < rows.size() - 1) … … 2064 2219 } 2065 2220 int iInitialWidth = iMaxWidth + m_iRightMargin; 2221 int iInitialWidthNoNumPad = iMaxWidthNoNumPad + m_iRightMargin; 2066 2222 int iInitialHeight = iY + m_iBottomMargin; 2067 2223 m_iInitialWidth = qMax(m_iInitialWidth, iInitialWidth); 2224 m_iInitialWidthNoNumPad = qMax(m_iInitialWidthNoNumPad, iInitialWidthNoNumPad); 2068 2225 m_iInitialHeight = qMax(m_iInitialHeight, iInitialHeight); 2069 2226 //printf("%s total key count: %d\n", qPrintable(strLayoutFileName), iKeyCount - 3 /* substract OS an menu keys */); … … 2367 2524 key.setType(UIKeyType_Toggleable); 2368 2525 } 2526 else if (m_xmlReader.name() == "osmenukey") 2527 { 2528 if (m_xmlReader.readElementText() == "true") 2529 key.setIsOSMenuKey(true); 2530 } 2369 2531 else 2370 2532 m_xmlReader.skipCurrentElement(); … … 2544 2706 : QIWithRetranslateUI<QWidget>(pParent) 2545 2707 , m_pLayoutListButton(0) 2708 , m_pSettingsButton(0) 2546 2709 , m_pMessageLabel(0) 2547 2710 { … … 2552 2715 { 2553 2716 if (m_pLayoutListButton) 2554 m_pLayoutListButton->setToolTip(tr("Show the Layout List")); 2717 m_pLayoutListButton->setToolTip(tr("Layout List")); 2718 if (m_pSettingsButton) 2719 m_pSettingsButton->setToolTip(tr("Settings")); 2555 2720 } 2556 2721 … … 2575 2740 } 2576 2741 2742 m_pSettingsButton = new QToolButton; 2743 if (m_pSettingsButton) 2744 { 2745 m_pSettingsButton->setIcon(UIIconPool::iconSet(":/vm_settings_16px.png")); 2746 m_pSettingsButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 2747 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 2748 m_pSettingsButton->resize(QSize(iIconMetric, iIconMetric)); 2749 m_pSettingsButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}"); 2750 connect(m_pSettingsButton, &QToolButton::clicked, this, &UISoftKeyboardStatusBarWidget::sigShowSettingWidget); 2751 pLayout->addWidget(m_pSettingsButton); 2752 } 2753 2577 2754 m_pMessageLabel = new QLabel; 2578 2755 pLayout->addWidget(m_pMessageLabel); … … 2586 2763 m_pMessageLabel->setText(strMessage); 2587 2764 } 2765 2766 2767 /********************************************************************************************************************************* 2768 * UISoftKeyboardSettingsWidget implementation. * 2769 *********************************************************************************************************************************/ 2770 2771 UISoftKeyboardSettingsWidget::UISoftKeyboardSettingsWidget(QWidget *pParent /* = 0 */) 2772 : QIWithRetranslateUI<QWidget>(pParent) 2773 , m_pShowNumPadCheckBox(0) 2774 , m_pShowOsMenuButtonsCheckBox(0) 2775 { 2776 prepareObjects(); 2777 } 2778 2779 void UISoftKeyboardSettingsWidget::setShowOSMenuKeys(bool fShow) 2780 { 2781 if (m_pShowOsMenuButtonsCheckBox) 2782 m_pShowOsMenuButtonsCheckBox->setChecked(fShow); 2783 } 2784 2785 void UISoftKeyboardSettingsWidget::setShowNumPad(bool fShow) 2786 { 2787 if (m_pShowNumPadCheckBox) 2788 m_pShowNumPadCheckBox->setChecked(fShow); 2789 } 2790 2791 void UISoftKeyboardSettingsWidget::retranslateUi() 2792 { 2793 if (m_pShowNumPadCheckBox) 2794 m_pShowNumPadCheckBox->setText(UISoftKeyboard::tr("Show NumPad")); 2795 if (m_pShowOsMenuButtonsCheckBox) 2796 m_pShowOsMenuButtonsCheckBox->setText(UISoftKeyboard::tr("Show OS/Menu Keys")); 2797 2798 } 2799 2800 void UISoftKeyboardSettingsWidget::prepareObjects() 2801 { 2802 QGridLayout *pSettingsLayout = new QGridLayout; 2803 if (!pSettingsLayout) 2804 return; 2805 m_pShowNumPadCheckBox = new QCheckBox; 2806 m_pShowOsMenuButtonsCheckBox = new QCheckBox; 2807 2808 pSettingsLayout->addWidget(m_pShowNumPadCheckBox, 0, 0); 2809 pSettingsLayout->addWidget(m_pShowOsMenuButtonsCheckBox, 1, 0); 2810 2811 connect(m_pShowNumPadCheckBox, &QCheckBox::toggled, this, &UISoftKeyboardSettingsWidget::sigShowNumPad); 2812 connect(m_pShowOsMenuButtonsCheckBox, &QCheckBox::toggled, this, &UISoftKeyboardSettingsWidget::sigShowOSMenuKeys); 2813 2814 QSpacerItem *pSpacer = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Expanding); 2815 if (pSpacer) 2816 pSettingsLayout->addItem(pSpacer, 2, 0); 2817 2818 setLayout(pSettingsLayout); 2819 retranslateUi(); 2820 } 2821 2588 2822 2589 2823 /********************************************************************************************************************************* … … 2602 2836 , m_pLayoutEditor(0) 2603 2837 , m_pLayoutSelector(0) 2838 , m_pSettingsWidget(0) 2604 2839 , m_pStatusBarWidget(0) 2605 2840 { … … 2723 2958 return; 2724 2959 m_pSidePanelWidget->setVisible(!m_pSidePanelWidget->isVisible()); 2725 } 2960 2961 if (m_pSidePanelWidget->isVisible() && m_pSettingsWidget->isVisible()) 2962 m_pSettingsWidget->setVisible(false); 2963 } 2964 2965 void UISoftKeyboard::sltShowHideSettingsWidget() 2966 { 2967 if (!m_pSettingsWidget) 2968 return; 2969 m_pSettingsWidget->setVisible(!m_pSettingsWidget->isVisible()); 2970 if (m_pSidePanelWidget->isVisible() && m_pSettingsWidget->isVisible()) 2971 m_pSidePanelWidget->setVisible(false); 2972 } 2973 2726 2974 2727 2975 void UISoftKeyboard::sltCopyLayout() … … 2748 2996 { 2749 2997 statusBar()->showMessage(strMessage, iMessageTimeout); 2998 } 2999 3000 void UISoftKeyboard::sltShowHideOSMenuKeys(bool fShow) 3001 { 3002 if (m_pKeyboardWidget) 3003 m_pKeyboardWidget->setShowOSMenuKeys(fShow); 3004 } 3005 3006 void UISoftKeyboard::sltShowHideNumPad(bool fShow) 3007 { 3008 if (m_pKeyboardWidget) 3009 m_pKeyboardWidget->setShowNumPad(fShow); 2750 3010 } 2751 3011 … … 2760 3020 return; 2761 3021 2762 m_pSidePanelWidget->setSizePolicy(QSizePolicy::M inimum, QSizePolicy::Maximum);3022 m_pSidePanelWidget->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); 2763 3023 m_pSidePanelWidget->hide(); 2764 3024 … … 2771 3031 m_pSidePanelWidget->addWidget(m_pLayoutEditor); 2772 3032 3033 m_pSettingsWidget = new UISoftKeyboardSettingsWidget; 3034 if (m_pSettingsWidget) 3035 { 3036 m_pSettingsWidget->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); 3037 m_pSettingsWidget->hide(); 3038 } 2773 3039 m_pKeyboardWidget = new UISoftKeyboardWidget; 2774 3040 if (!m_pKeyboardWidget) … … 2778 3044 m_pSplitter->addWidget(m_pKeyboardWidget); 2779 3045 m_pSplitter->addWidget(m_pSidePanelWidget); 3046 m_pSplitter->addWidget(m_pSettingsWidget); 3047 2780 3048 m_pSplitter->setCollapsible(0, false); 2781 3049 m_pSplitter->setCollapsible(1, false); 3050 m_pSplitter->setCollapsible(2, false); 2782 3051 2783 3052 statusBar()->setStyleSheet( "QStatusBar::item { border: 0px}" ); … … 2807 3076 2808 3077 connect(m_pStatusBarWidget, &UISoftKeyboardStatusBarWidget::sigShowHideSidePanel, this, &UISoftKeyboard::sltShowHideSidePanel); 3078 connect(m_pStatusBarWidget, &UISoftKeyboardStatusBarWidget::sigShowSettingWidget, this, &UISoftKeyboard::sltShowHideSettingsWidget); 3079 3080 connect(m_pSettingsWidget, &UISoftKeyboardSettingsWidget::sigShowOSMenuKeys, this, &UISoftKeyboard::sltShowHideOSMenuKeys); 3081 connect(m_pSettingsWidget, &UISoftKeyboardSettingsWidget::sigShowNumPad, this, &UISoftKeyboard::sltShowHideNumPad); 2809 3082 } 2810 3083 … … 2828 3101 float fKeyboardAspectRatio = 1.0f; 2829 3102 if (m_pKeyboardWidget) 2830 fKeyboardAspectRatio = m_pKeyboardWidget->layoutAspectRatio n();3103 fKeyboardAspectRatio = m_pKeyboardWidget->layoutAspectRatio(); 2831 3104 2832 3105 const QRect desktopRect = gpDesktop->availableGeometry(this); … … 2846 3119 geometry.x(), geometry.y(), geometry.width(), geometry.height())); 2847 3120 setDialogGeometry(geometry); 3121 3122 if (m_pKeyboardWidget && m_pSettingsWidget) 3123 { 3124 m_pSettingsWidget->setShowOSMenuKeys(m_pKeyboardWidget->showOSMenuKeys()); 3125 m_pSettingsWidget->setShowNumPad(m_pKeyboardWidget->showNumPad()); 3126 } 2848 3127 } 2849 3128 -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r79295 r79356 43 43 class UISoftKeyboardKey; 44 44 class UISoftKeyboardLayout; 45 class UISoftKeyboardSettingsWidget; 45 46 class UISoftKeyboardStatusBarWidget; 46 47 class UISoftKeyboardWidget; … … 79 80 void sltKeyCaptionsEdited(UISoftKeyboardKey* pKey); 80 81 void sltShowHideSidePanel(); 82 void sltShowHideSettingsWidget(); 81 83 void sltCopyLayout(); 82 84 void sltSaveLayout(); 83 85 void sltDeleteLayout(); 84 86 void sltStatusBarMessage(const QString &strMessage); 87 void sltShowHideOSMenuKeys(bool fShow); 88 void sltShowHideNumPad(bool fShow); 85 89 86 90 private: … … 98 102 QHBoxLayout *m_pMainLayout; 99 103 UISoftKeyboardWidget *m_pKeyboardWidget; 100 QString m_strMachineName;101 QSplitter *m_pSplitter;102 QStackedWidget *m_pSidePanelWidget;103 UILayoutEditor *m_pLayoutEditor;104 QString m_strMachineName; 105 QSplitter *m_pSplitter; 106 QStackedWidget *m_pSidePanelWidget; 107 UILayoutEditor *m_pLayoutEditor; 104 108 UILayoutSelector *m_pLayoutSelector; 109 110 UISoftKeyboardSettingsWidget *m_pSettingsWidget; 105 111 UISoftKeyboardStatusBarWidget *m_pStatusBarWidget; 112 106 113 }; 107 114 -
trunk/src/VBox/Frontends/VirtualBox/xml/101_ansi.xml
r79314 r79356 391 391 </key> 392 392 <key> 393 394 <width>75</width>395 <type>modifier</type>396 393 <position>227</position> 394 <width>75</width> 395 <type>modifier</type> 397 396 <scancodeprefix>0xe0</scancodeprefix> 398 397 <scancode>0x5b</scancode> 398 <osmenukey>true</osmenukey> 399 399 </key> 400 400 <key> 401 401 <position>60</position> 402 403 402 <width>75</width> 404 403 <type>modifier</type> … … 425 424 <scancodeprefix>0xe0</scancodeprefix> 426 425 <scancode>0x5c</scancode> 427 </key> 428 <key> 429 426 <osmenukey>true</osmenukey> 427 </key> 428 <key> 429 <position>129</position> 430 430 <width>75</width> 431 431 <scancodeprefix>0xe0</scancodeprefix> 432 432 <scancode>0x5d</scancode> 433 <osmenukey>true</osmenukey> 433 434 </key> 434 435 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/102_iso.xml
r79314 r79356 319 319 <key> 320 320 <width>75</width> 321 322 321 <type>modifier</type> 323 322 <position>44</position> … … 391 390 <key> 392 391 <width>90</width> 393 394 392 <type>modifier</type> 395 393 <position>58</position> … … 403 401 <scancodeprefix>0xe0</scancodeprefix> 404 402 <scancode>0x5b</scancode> 403 <osmenukey>true</osmenukey> 405 404 </key> 406 405 <key> 407 406 <position>60</position> 408 409 407 <width>75</width> 410 408 <type>modifier</type> … … 425 423 </key> 426 424 <key> 427 428 425 <width>75</width> 429 426 <type>modifier</type> … … 431 428 <scancodeprefix>0xe0</scancodeprefix> 432 429 <scancode>0x5c</scancode> 433 </key> 434 <key> 435 430 <osmenukey>true</osmenukey> 431 </key> 432 <key> 433 <position>129</position> 436 434 <width>75</width> 437 435 <scancodeprefix>0xe0</scancodeprefix> 438 436 <scancode>0x5d</scancode> 437 <osmenukey>true</osmenukey> 439 438 </key> 440 439 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/106_japanese.xml
r79325 r79356 402 402 <scancodeprefix>0xe0</scancodeprefix> 403 403 <scancode>0x5b</scancode> 404 <osmenukey>true</osmenukey> 404 405 </key> 405 406 <key><!-- Alt --> … … 439 440 <scancodeprefix>0xe0</scancodeprefix> 440 441 <scancode>0x5c</scancode> 441 </key> 442 <key> 442 <osmenukey>true</osmenukey> 443 </key> 444 <key><!-- Menu / Application --> 445 <position>129</position> 443 446 <width>75</width> 444 447 <scancodeprefix>0xe0</scancodeprefix> 445 448 <scancode>0x5d</scancode> 449 <osmenukey>true</osmenukey> 446 450 </key> 447 451 <key>
Note:
See TracChangeset
for help on using the changeset viewer.