- Timestamp:
- Aug 12, 2020 7:32:05 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139874
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r85711 r85727 33 33 src/settings/global/UIGlobalSettingsProxy.ui \ 34 34 src/settings/machine/UIMachineSettingsGeneral.ui \ 35 src/settings/machine/UIMachineSettingsSystem.ui \36 35 src/settings/machine/UIMachineSettingsNetwork.ui \ 37 36 src/settings/machine/UIMachineSettingsSerial.ui \ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r82968 r85727 17 17 18 18 /* Qt includes: */ 19 #include <QCheckBox> 20 #include <QComboBox> 19 21 #include <QHeaderView> 22 #include <QLabel> 23 #include <QSpinBox> 24 #include <QVBoxLayout> 20 25 21 26 /* GUI includes: */ 27 #include "QIAdvancedSlider.h" 28 #include "QITabWidget.h" 22 29 #include "QIWidgetValidator.h" 30 #include "UIBaseMemoryEditor.h" 31 #include "UIBootOrderEditor.h" 23 32 #include "UIConverter.h" 24 33 #include "UIIconPool.h" … … 574 583 void UIMachineSettingsSystem::retranslateUi() 575 584 { 576 /* Translate uic generated strings: */ 577 Ui::UIMachineSettingsSystem::retranslateUi(this); 585 m_pBaseMemoryLabel->setText(QApplication::translate("UIMachineSettingsSystem", "Base &Memory:")); 586 m_pBaseMemoryEditor->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Controls the amount of memory provided " 587 "to the virtual machine. If you assign too much, the machine might not start.")); 588 m_pBootOrderLabel->setText(QApplication::translate("UIMachineSettingsSystem", "&Boot Order:")); 589 m_pBootOrderEditor->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Defines the boot device order. Use the " 590 "checkboxes on the left to enable or disable individual boot devices." 591 "Move items up and down to change the device order.")); 592 m_pLabelChipsetType->setText(QApplication::translate("UIMachineSettingsSystem", "&Chipset:")); 593 m_pComboChipsetType->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Selects the chipset to be emulated in " 594 "this virtual machine. Note that the ICH9 chipset emulation is experimental " 595 "and not recommended except for guest systems (such as Mac OS X) which require it.")); 596 m_pLabelPointingHIDType->setText(QApplication::translate("UIMachineSettingsSystem", "&Pointing Device:")); 597 m_pComboPointingHIDType->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Determines whether the emulated " 598 "pointing device is a standard PS/2 mouse, a USB tablet or a " 599 "USB multi-touch tablet.")); 600 m_pLabelMotherboardExtended->setText(QApplication::translate("UIMachineSettingsSystem", "Extended Features:")); 601 m_pCheckBoxApic->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the virtual machine will " 602 "support the Input Output APIC (I/O APIC), which may slightly decrease " 603 "performance. <b>Note:</b> don't disable this feature after having " 604 "installed a Windows guest operating system!")); 605 m_pCheckBoxApic->setText(QApplication::translate("UIMachineSettingsSystem", "Enable &I/O APIC")); 606 m_pCheckBoxEFI->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the guest will support the " 607 "Extended Firmware Interface (EFI), which is required to boot certain " 608 "guest OSes. Non-EFI aware OSes will not be able to boot if this option is activated.")); 609 m_pCheckBoxEFI->setText(QApplication::translate("UIMachineSettingsSystem", "Enable &EFI (special OSes only)")); 610 m_pCheckBoxUseUTC->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the RTC device will report " 611 "the time in UTC, otherwise in local (host) time. Unix usually expects " 612 "the hardware clock to be set to UTC.")); 613 m_pCheckBoxUseUTC->setText(QApplication::translate("UIMachineSettingsSystem", "Hardware Clock in &UTC Time")); 614 m_pTabWidgetSystem->setTabText(m_pTabWidgetSystem->indexOf(m_pTabMotherboard), QApplication::translate("UIMachineSettingsSystem", "&Motherboard")); 615 m_pLabelCPUCount->setText(QApplication::translate("UIMachineSettingsSystem", "&Processor(s):")); 616 m_pSliderCPUCount->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Controls the number of virtual CPUs in the " 617 "virtual machine. You need hardware virtualization support on your host " 618 "system to use more than one virtual CPU.")); 619 m_pEditorCPUCount->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Controls the number of virtual CPUs in the " 620 "virtual machine. You need hardware virtualization support on your host " 621 "system to use more than one virtual CPU.")); 622 m_pLabelCPUExecCap->setText(QApplication::translate("UIMachineSettingsSystem", "&Execution Cap:")); 623 m_pSliderCPUExecCap->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Limits the amount of time that each virtual " 624 "CPU is allowed to run for. Each virtual CPU will be allowed to use up " 625 "to this percentage of the processing time available on one physical CPU. " 626 "The execution cap can be disabled by setting it to 100%. Setting the cap " 627 "too low can make the machine feel slow to respond.")); 628 m_pEditorCPUExecCap->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Limits the amount of time that each virtual CPU " 629 "is allowed to run for. Each virtual CPU will be allowed to use up " 630 "to this percentage of the processing time available on one physical " 631 "CPU. The execution cap can be disabled by setting it to 100%. Setting " 632 "the cap too low can make the machine feel slow to respond.")); 633 m_pEditorCPUExecCap->setSuffix(QApplication::translate("UIMachineSettingsSystem", "%")); 634 m_pLabelCPUExtended->setText(QApplication::translate("UIMachineSettingsSystem", "Extended Features:")); 635 m_pCheckBoxPAE->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the Physical Address Extension " 636 "(PAE) feature of the host CPU will be exposed to the virtual machine.")); 637 m_pCheckBoxPAE->setText(QApplication::translate("UIMachineSettingsSystem", "Enable PA&E/NX")); 638 m_pCheckBoxNestedVirtualization->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the nested hardware " 639 "virtualization CPU feature will be exposed to the virtual machine.")); 640 m_pCheckBoxNestedVirtualization->setText(QApplication::translate("UIMachineSettingsSystem", "Enable Nested &VT-x/AMD-V")); 641 m_pTabWidgetSystem->setTabText(m_pTabWidgetSystem->indexOf(m_pTabCPU), QApplication::translate("UIMachineSettingsSystem", "&Processor")); 642 m_pLabelParavirtProvider->setText(QApplication::translate("UIMachineSettingsSystem", "&Paravirtualization Interface:")); 643 m_pComboParavirtProviderType->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "Selects the paravirtualization " 644 "guest interface provider to be used by this virtual machine.")); 645 m_pLabelVirtualization->setText(QApplication::translate("UIMachineSettingsSystem", "Hardware Virtualization:")); 646 m_pCheckBoxVirtualization->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the virtual machine " 647 "will try to make use of the host CPU's hardware virtualization " 648 "extensions such as Intel VT-x and AMD-V.")); 649 m_pCheckBoxVirtualization->setText(QApplication::translate("UIMachineSettingsSystem", "Enable &VT-x/AMD-V")); 650 m_pCheckBoxNestedPaging->setWhatsThis(QApplication::translate("UIMachineSettingsSystem", "When checked, the virtual machine will " 651 "try to make use of the nested paging extension of Intel VT-x and AMD-V.")); 652 m_pCheckBoxNestedPaging->setText(QApplication::translate("UIMachineSettingsSystem", "Enable Nested Pa&ging")); 653 m_pTabWidgetSystem->setTabText(m_pTabWidgetSystem->indexOf(m_pTabAcceleration), QApplication::translate("UIMachineSettingsSystem", "Acce&leration")); 578 654 579 655 /* Retranslate the cpu slider legend: */ … … 695 771 void UIMachineSettingsSystem::prepare() 696 772 { 697 /* Apply UI decorations: */ 698 Ui::UIMachineSettingsSystem::setupUi(this); 773 prepareWidgets(); 699 774 700 775 /* Prepare cache: */ … … 716 791 /* Apply language settings: */ 717 792 retranslateUi(); 793 } 794 795 void UIMachineSettingsSystem::prepareWidgets() 796 { 797 // QVBoxLayout *pVBoxLayout1; 798 // QHBoxLayout *pHBoxLayout2; 799 // QSpacerItem *pSpacerHorizontal5; 800 // QVBoxLayout *pVBoxLayout2; 801 // QHBoxLayout *pHBoxLayout3; 802 // QSpacerItem *pSpacerHorizontal6; 803 // QSpacerItem *pSpacerVertical3; 804 // QGridLayout *pGridLayout2; 805 // QHBoxLayout *pHBoxLayout4; 806 // QSpacerItem *pSpacerHorizontal7; 807 // QVBoxLayout *pVerticalLayout1; 808 // QVBoxLayout *pVerticalLayout2; 809 // QSpacerItem *pSpacerVertical4; 810 811 if (objectName().isEmpty()) 812 setObjectName(QStringLiteral("UIMachineSettingsSystem")); 813 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 814 pMainLayout->setObjectName(QStringLiteral("pMainLayout")); 815 m_pTabWidgetSystem = new QITabWidget(); 816 m_pTabWidgetSystem->setObjectName(QStringLiteral("m_pTabWidgetSystem")); 817 m_pTabMotherboard = new QWidget(); 818 m_pTabMotherboard->setObjectName(QStringLiteral("m_pTabMotherboard")); 819 QGridLayout *pGridLayout = new QGridLayout(m_pTabMotherboard); 820 pGridLayout->setObjectName(QStringLiteral("gridLayout")); 821 m_pBaseMemoryLabel = new QLabel(m_pTabMotherboard); 822 m_pBaseMemoryLabel->setObjectName(QStringLiteral("m_pBaseMemoryLabel")); 823 m_pBaseMemoryLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 824 pGridLayout->addWidget(m_pBaseMemoryLabel, 0, 0, 1, 1); 825 826 m_pBaseMemoryEditor = new UIBaseMemoryEditor(m_pTabMotherboard); 827 m_pBaseMemoryEditor->setObjectName(QStringLiteral("m_pBaseMemoryEditor")); 828 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); 829 sizePolicy.setHorizontalStretch(1); 830 sizePolicy.setVerticalStretch(0); 831 sizePolicy.setHeightForWidth(m_pBaseMemoryEditor->sizePolicy().hasHeightForWidth()); 832 m_pBaseMemoryEditor->setSizePolicy(sizePolicy); 833 pGridLayout->addWidget(m_pBaseMemoryEditor, 0, 1, 2, 3); 834 835 m_pBootOrderLabel = new QLabel(m_pTabMotherboard); 836 m_pBootOrderLabel->setObjectName(QStringLiteral("m_pBootOrderLabel")); 837 m_pBootOrderLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 838 pGridLayout->addWidget(m_pBootOrderLabel, 2, 0, 1, 1); 839 840 m_pBootOrderEditor = new UIBootOrderEditor(m_pTabMotherboard); 841 m_pBootOrderEditor->setObjectName(QStringLiteral("m_pBootOrderEditor")); 842 QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed); 843 sizePolicy1.setHorizontalStretch(0); 844 sizePolicy1.setVerticalStretch(0); 845 sizePolicy1.setHeightForWidth(m_pBootOrderEditor->sizePolicy().hasHeightForWidth()); 846 m_pBootOrderEditor->setSizePolicy(sizePolicy1); 847 pGridLayout->addWidget(m_pBootOrderEditor, 2, 1, 3, 3); 848 849 m_pLabelChipsetType = new QLabel(m_pTabMotherboard); 850 m_pLabelChipsetType->setObjectName(QStringLiteral("m_pLabelChipsetType")); 851 m_pLabelChipsetType->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 852 pGridLayout->addWidget(m_pLabelChipsetType, 5, 0, 1, 1); 853 854 QHBoxLayout *pHBoxLayout = new QHBoxLayout(); 855 pHBoxLayout->setObjectName(QStringLiteral("hboxLayout")); 856 m_pComboChipsetType = new QComboBox(m_pTabMotherboard); 857 m_pComboChipsetType->setObjectName(QStringLiteral("m_pComboChipsetType")); 858 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed); 859 sizePolicy2.setHorizontalStretch(0); 860 sizePolicy2.setVerticalStretch(0); 861 sizePolicy2.setHeightForWidth(m_pComboChipsetType->sizePolicy().hasHeightForWidth()); 862 m_pComboChipsetType->setSizePolicy(sizePolicy2); 863 pHBoxLayout->addWidget(m_pComboChipsetType); 864 QSpacerItem *pSpacerHorizontal3 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); 865 866 pHBoxLayout->addItem(pSpacerHorizontal3); 867 pGridLayout->addLayout(pHBoxLayout, 5, 1, 1, 3); 868 869 m_pLabelPointingHIDType = new QLabel(m_pTabMotherboard); 870 m_pLabelPointingHIDType->setObjectName(QStringLiteral("m_pLabelPointingHIDType")); 871 m_pLabelPointingHIDType->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 872 pGridLayout->addWidget(m_pLabelPointingHIDType, 6, 0, 1, 1); 873 874 QHBoxLayout *hboxLayout1 = new QHBoxLayout(); 875 hboxLayout1->setObjectName(QStringLiteral("hboxLayout1")); 876 m_pComboPointingHIDType = new QComboBox(m_pTabMotherboard); 877 m_pComboPointingHIDType->setObjectName(QStringLiteral("m_pComboPointingHIDType")); 878 sizePolicy2.setHeightForWidth(m_pComboPointingHIDType->sizePolicy().hasHeightForWidth()); 879 m_pComboPointingHIDType->setSizePolicy(sizePolicy2); 880 hboxLayout1->addWidget(m_pComboPointingHIDType); 881 QSpacerItem *pSpacerHorizontal4 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); 882 hboxLayout1->addItem(pSpacerHorizontal4); 883 pGridLayout->addLayout(hboxLayout1, 6, 1, 1, 3); 884 885 m_pLabelMotherboardExtended = new QLabel(m_pTabMotherboard); 886 m_pLabelMotherboardExtended->setObjectName(QStringLiteral("m_pLabelMotherboardExtended")); 887 m_pLabelMotherboardExtended->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 888 pGridLayout->addWidget(m_pLabelMotherboardExtended, 7, 0, 1, 1); 889 890 m_pCheckBoxApic = new QCheckBox(m_pTabMotherboard); 891 m_pCheckBoxApic->setObjectName(QStringLiteral("m_pCheckBoxApic")); 892 pGridLayout->addWidget(m_pCheckBoxApic, 7, 1, 1, 3); 893 894 m_pCheckBoxEFI = new QCheckBox(m_pTabMotherboard); 895 m_pCheckBoxEFI->setObjectName(QStringLiteral("m_pCheckBoxEFI")); 896 pGridLayout->addWidget(m_pCheckBoxEFI, 8, 1, 1, 3); 897 898 m_pCheckBoxUseUTC = new QCheckBox(m_pTabMotherboard); 899 m_pCheckBoxUseUTC->setObjectName(QStringLiteral("m_pCheckBoxUseUTC")); 900 pGridLayout->addWidget(m_pCheckBoxUseUTC, 9, 1, 1, 3); 901 902 QSpacerItem *pSpacerVertical2 = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); 903 pGridLayout->addItem(pSpacerVertical2, 10, 0, 1, 4); 904 905 m_pTabWidgetSystem->addTab(m_pTabMotherboard, QString()); 906 m_pTabCPU = new QWidget(); 907 m_pTabCPU->setObjectName(QStringLiteral("m_pTabCPU")); 908 QGridLayout *pGridLayout1 = new QGridLayout(m_pTabCPU); 909 pGridLayout1->setObjectName(QStringLiteral("pGridLayout1")); 910 m_pLabelCPUCount = new QLabel(m_pTabCPU); 911 m_pLabelCPUCount->setObjectName(QStringLiteral("m_pLabelCPUCount")); 912 m_pLabelCPUCount->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 913 pGridLayout1->addWidget(m_pLabelCPUCount, 0, 0, 1, 1); 914 915 QWidget *pContainerWidget = new QWidget(m_pTabCPU); 916 pContainerWidget->setObjectName(QStringLiteral("widget")); 917 sizePolicy.setHeightForWidth(pContainerWidget->sizePolicy().hasHeightForWidth()); 918 pContainerWidget->setSizePolicy(sizePolicy); 919 QVBoxLayout *pVBoxLayout1 = new QVBoxLayout(pContainerWidget); 920 pVBoxLayout1->setSpacing(0); 921 pVBoxLayout1->setObjectName(QStringLiteral("pVBoxLayout1")); 922 pVBoxLayout1->setContentsMargins(0, 0, 0, 0); 923 m_pSliderCPUCount = new QIAdvancedSlider(pContainerWidget); 924 m_pSliderCPUCount->setObjectName(QStringLiteral("m_pSliderCPUCount")); 925 m_pSliderCPUCount->setOrientation(Qt::Horizontal); 926 pVBoxLayout1->addWidget(m_pSliderCPUCount); 927 928 QHBoxLayout *pHBoxLayout2 = new QHBoxLayout(); 929 pHBoxLayout2->setSpacing(0); 930 pHBoxLayout2->setObjectName(QStringLiteral("pHBoxLayout2")); 931 m_pLabelCPUMin = new QLabel(pContainerWidget); 932 m_pLabelCPUMin->setObjectName(QStringLiteral("m_pLabelCPUMin")); 933 pHBoxLayout2->addWidget(m_pLabelCPUMin); 934 935 QSpacerItem *pSpacerHorizontal5 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); 936 pHBoxLayout2->addItem(pSpacerHorizontal5); 937 938 m_pLabelCPUMax = new QLabel(pContainerWidget); 939 m_pLabelCPUMax->setObjectName(QStringLiteral("m_pLabelCPUMax")); 940 pHBoxLayout2->addWidget(m_pLabelCPUMax); 941 942 pVBoxLayout1->addLayout(pHBoxLayout2); 943 pGridLayout1->addWidget(pContainerWidget, 0, 1, 2, 1); 944 945 m_pEditorCPUCount = new QSpinBox(m_pTabCPU); 946 m_pEditorCPUCount->setObjectName(QStringLiteral("m_pEditorCPUCount")); 947 pGridLayout1->addWidget(m_pEditorCPUCount, 0, 2, 1, 1); 948 949 m_pLabelCPUExecCap = new QLabel(m_pTabCPU); 950 m_pLabelCPUExecCap->setObjectName(QStringLiteral("m_pLabelCPUExecCap")); 951 m_pLabelCPUExecCap->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 952 pGridLayout1->addWidget(m_pLabelCPUExecCap, 2, 0, 1, 1); 953 954 QVBoxLayout *pVBoxLayout2 = new QVBoxLayout(); 955 pVBoxLayout2->setSpacing(0); 956 pVBoxLayout2->setObjectName(QStringLiteral("pVBoxLayout2")); 957 m_pSliderCPUExecCap = new QIAdvancedSlider(m_pTabCPU); 958 m_pSliderCPUExecCap->setObjectName(QStringLiteral("m_pSliderCPUExecCap")); 959 m_pSliderCPUExecCap->setOrientation(Qt::Horizontal); 960 pVBoxLayout2->addWidget(m_pSliderCPUExecCap); 961 962 QHBoxLayout *pHBoxLayout3 = new QHBoxLayout(); 963 pHBoxLayout3->setSpacing(0); 964 pHBoxLayout3->setObjectName(QStringLiteral("pHBoxLayout3")); 965 m_pLabelCPUExecCapMin = new QLabel(m_pTabCPU); 966 m_pLabelCPUExecCapMin->setObjectName(QStringLiteral("m_pLabelCPUExecCapMin")); 967 pHBoxLayout3->addWidget(m_pLabelCPUExecCapMin); 968 QSpacerItem *pSpacerHorizontal6 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); 969 pHBoxLayout3->addItem(pSpacerHorizontal6); 970 971 m_pLabelCPUExecCapMax = new QLabel(m_pTabCPU); 972 m_pLabelCPUExecCapMax->setObjectName(QStringLiteral("m_pLabelCPUExecCapMax")); 973 pHBoxLayout3->addWidget(m_pLabelCPUExecCapMax); 974 pVBoxLayout2->addLayout(pHBoxLayout3); 975 pGridLayout1->addLayout(pVBoxLayout2, 2, 1, 2, 1); 976 977 m_pEditorCPUExecCap = new QSpinBox(m_pTabCPU); 978 m_pEditorCPUExecCap->setObjectName(QStringLiteral("m_pEditorCPUExecCap")); 979 pGridLayout1->addWidget(m_pEditorCPUExecCap, 2, 2, 1, 1); 980 981 m_pLabelCPUExtended = new QLabel(m_pTabCPU); 982 m_pLabelCPUExtended->setObjectName(QStringLiteral("m_pLabelCPUExtended")); 983 m_pLabelCPUExtended->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 984 pGridLayout1->addWidget(m_pLabelCPUExtended, 4, 0, 1, 1); 985 986 m_pCheckBoxPAE = new QCheckBox(m_pTabCPU); 987 m_pCheckBoxPAE->setObjectName(QStringLiteral("m_pCheckBoxPAE")); 988 pGridLayout1->addWidget(m_pCheckBoxPAE, 4, 1, 1, 2); 989 990 m_pCheckBoxNestedVirtualization = new QCheckBox(m_pTabCPU); 991 m_pCheckBoxNestedVirtualization->setObjectName(QStringLiteral("m_pCheckBoxNestedVirtualization")); 992 pGridLayout1->addWidget(m_pCheckBoxNestedVirtualization, 5, 1, 1, 2); 993 QSpacerItem *pSpacerVertical3 = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); 994 pGridLayout1->addItem(pSpacerVertical3, 6, 0, 1, 3); 995 996 m_pTabWidgetSystem->addTab(m_pTabCPU, QString()); 997 m_pTabAcceleration = new QWidget(); 998 m_pTabAcceleration->setObjectName(QStringLiteral("m_pTabAcceleration")); 999 QGridLayout *pGridLayout2 = new QGridLayout(m_pTabAcceleration); 1000 pGridLayout2->setObjectName(QStringLiteral("pGridLayout2")); 1001 m_pLabelParavirtProvider = new QLabel(m_pTabAcceleration); 1002 m_pLabelParavirtProvider->setObjectName(QStringLiteral("m_pLabelParavirtProvider")); 1003 m_pLabelParavirtProvider->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 1004 pGridLayout2->addWidget(m_pLabelParavirtProvider, 0, 0, 1, 1); 1005 1006 QHBoxLayout *pHBoxLayout4 = new QHBoxLayout(); 1007 pHBoxLayout4->setObjectName(QStringLiteral("pHBoxLayout4")); 1008 m_pComboParavirtProviderType = new QComboBox(m_pTabAcceleration); 1009 m_pComboParavirtProviderType->setObjectName(QStringLiteral("m_pComboParavirtProviderType")); 1010 sizePolicy2.setHeightForWidth(m_pComboParavirtProviderType->sizePolicy().hasHeightForWidth()); 1011 m_pComboParavirtProviderType->setSizePolicy(sizePolicy2); 1012 pHBoxLayout4->addWidget(m_pComboParavirtProviderType); 1013 QSpacerItem *pSpacerHorizontal7 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); 1014 pHBoxLayout4->addItem(pSpacerHorizontal7); 1015 pGridLayout2->addLayout(pHBoxLayout4, 0, 1, 1, 1); 1016 1017 QVBoxLayout *pVerticalLayout1 = new QVBoxLayout(); 1018 pVerticalLayout1->setObjectName(QStringLiteral("pVerticalLayout1")); 1019 m_pLabelVirtualization = new QLabel(m_pTabAcceleration); 1020 m_pLabelVirtualization->setObjectName(QStringLiteral("m_pLabelVirtualization")); 1021 m_pLabelVirtualization->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); 1022 pVerticalLayout1->addWidget(m_pLabelVirtualization); 1023 1024 m_pWidgetPlaceholder = new QWidget(m_pTabAcceleration); 1025 m_pWidgetPlaceholder->setObjectName(QStringLiteral("m_pWidgetPlaceholder")); 1026 pVerticalLayout1->addWidget(m_pWidgetPlaceholder); 1027 pGridLayout2->addLayout(pVerticalLayout1, 1, 0, 1, 1); 1028 1029 QVBoxLayout *pVerticalLayout2 = new QVBoxLayout(); 1030 pVerticalLayout2->setObjectName(QStringLiteral("pVerticalLayout2")); 1031 m_pCheckBoxVirtualization = new QCheckBox(m_pTabAcceleration); 1032 m_pCheckBoxVirtualization->setObjectName(QStringLiteral("m_pCheckBoxVirtualization")); 1033 QSizePolicy sizePolicy3(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 1034 sizePolicy3.setHorizontalStretch(1); 1035 sizePolicy3.setVerticalStretch(0); 1036 sizePolicy3.setHeightForWidth(m_pCheckBoxVirtualization->sizePolicy().hasHeightForWidth()); 1037 m_pCheckBoxVirtualization->setSizePolicy(sizePolicy3); 1038 pVerticalLayout2->addWidget(m_pCheckBoxVirtualization); 1039 1040 m_pCheckBoxNestedPaging = new QCheckBox(m_pTabAcceleration); 1041 m_pCheckBoxNestedPaging->setObjectName(QStringLiteral("m_pCheckBoxNestedPaging")); 1042 QSizePolicy sizePolicy4(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 1043 sizePolicy4.setHorizontalStretch(0); 1044 sizePolicy4.setVerticalStretch(0); 1045 sizePolicy4.setHeightForWidth(m_pCheckBoxNestedPaging->sizePolicy().hasHeightForWidth()); 1046 m_pCheckBoxNestedPaging->setSizePolicy(sizePolicy4); 1047 pVerticalLayout2->addWidget(m_pCheckBoxNestedPaging); 1048 pGridLayout2->addLayout(pVerticalLayout2, 1, 1, 1, 1); 1049 1050 QSpacerItem *pSpacerVertical4 = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); 1051 pGridLayout2->addItem(pSpacerVertical4, 2, 0, 1, 2); 1052 1053 m_pTabWidgetSystem->addTab(m_pTabAcceleration, QString()); 1054 pMainLayout->addWidget(m_pTabWidgetSystem); 1055 1056 m_pBootOrderLabel->setBuddy(m_pBootOrderEditor); 1057 m_pLabelChipsetType->setBuddy(m_pComboChipsetType); 1058 m_pLabelPointingHIDType->setBuddy(m_pComboPointingHIDType); 1059 m_pLabelCPUCount->setBuddy(m_pEditorCPUCount); 1060 m_pLabelCPUExecCap->setBuddy(m_pEditorCPUExecCap); 1061 m_pLabelParavirtProvider->setBuddy(m_pComboParavirtProviderType); 718 1062 } 719 1063 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r82968 r85727 24 24 /* GUI includes: */ 25 25 #include "UISettingsPage.h" 26 #include "UIMachineSettingsSystem.gen.h"27 26 28 27 /* Forward declarations: */ … … 30 29 typedef UISettingsCache<UIDataSettingsMachineSystem> UISettingsCacheMachineSystem; 31 30 class CMachine; 31 class QCheckBox; 32 class QComboBox; 33 class QLabel; 34 class QSpinBox; 35 class QIAdvancedSlider; 36 class QITabWidget; 37 class UIBaseMemoryEditor; 38 class UIBootOrderEditor; 32 39 33 40 /** Machine settings: System page. */ 34 class SHARED_LIBRARY_STUFF UIMachineSettingsSystem : public UISettingsPageMachine, 35 public Ui::UIMachineSettingsSystem 41 class SHARED_LIBRARY_STUFF UIMachineSettingsSystem : public UISettingsPageMachine 36 42 { 37 43 Q_OBJECT; … … 117 123 /** Prepares all. */ 118 124 void prepare(); 125 /** Prepares widgets. */ 126 void prepareWidgets(); 119 127 /** Prepares 'Motherboard' tab. */ 120 128 void prepareTabMotherboard(); … … 167 175 /** Holds the page data cache instance. */ 168 176 UISettingsCacheMachineSystem *m_pCache; 177 178 /** @name Widgets 179 * @{ */ 180 QLabel *m_pBaseMemoryLabel; 181 QLabel *m_pBootOrderLabel; 182 QLabel *m_pLabelChipsetType; 183 QLabel *m_pLabelPointingHIDType; 184 QLabel *m_pLabelMotherboardExtended; 185 QLabel *m_pLabelCPUCount; 186 QLabel *m_pLabelCPUExecCap; 187 QLabel *m_pLabelCPUExtended; 188 QLabel *m_pLabelParavirtProvider; 189 QLabel *m_pLabelVirtualization; 190 QLabel *m_pLabelCPUMin; 191 QLabel *m_pLabelCPUMax; 192 QLabel *m_pLabelCPUExecCapMin; 193 QLabel *m_pLabelCPUExecCapMax; 194 QWidget *m_pTabMotherboard; 195 QWidget *m_pTabCPU; 196 QWidget *m_pTabAcceleration; 197 QWidget *m_pWidgetPlaceholder; 198 QCheckBox *m_pCheckBoxVirtualization; 199 QCheckBox *m_pCheckBoxNestedPaging; 200 QCheckBox *m_pCheckBoxNestedVirtualization; 201 QCheckBox *m_pCheckBoxApic; 202 QCheckBox *m_pCheckBoxEFI; 203 QCheckBox *m_pCheckBoxPAE; 204 QCheckBox *m_pCheckBoxUseUTC; 205 QComboBox *m_pComboPointingHIDType; 206 QComboBox *m_pComboChipsetType; 207 QComboBox *m_pComboParavirtProviderType; 208 QIAdvancedSlider *m_pSliderCPUCount; 209 QIAdvancedSlider *m_pSliderCPUExecCap; 210 UIBaseMemoryEditor *m_pBaseMemoryEditor; 211 UIBootOrderEditor *m_pBootOrderEditor; 212 QITabWidget *m_pTabWidgetSystem; 213 QSpinBox *m_pEditorCPUCount; 214 QSpinBox *m_pEditorCPUExecCap; 215 /** @} */ 169 216 }; 170 217
Note:
See TracChangeset
for help on using the changeset viewer.