Changeset 86020 in vbox
- Timestamp:
- Sep 3, 2020 1:10:51 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 140220
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/global
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.cpp
r85997 r86020 215 215 if (pLayoutMain) 216 216 { 217 pLayoutMain->setCo ntentsMargins(0, 0, 0, 0);217 pLayoutMain->setColumnStretch(1, 1); 218 218 pLayoutMain->setRowStretch(6, 1); 219 219 … … 235 235 if (m_pLabelMaxGuestScreenSize) 236 236 m_pLabelMaxGuestScreenSize->setBuddy(m_pComboMaxGuestScreenSize); 237 pLayoutMain->addWidget(m_pComboMaxGuestScreenSize, 0, 1 );237 pLayoutMain->addWidget(m_pComboMaxGuestScreenSize, 0, 1, 1, 2); 238 238 } 239 239 … … 254 254 m_pSpinboxMaxGuestScreenWidth->setMaximum(iMaxSize); 255 255 256 pLayoutMain->addWidget(m_pSpinboxMaxGuestScreenWidth, 1, 1 );256 pLayoutMain->addWidget(m_pSpinboxMaxGuestScreenWidth, 1, 1, 1, 2); 257 257 } 258 258 … … 273 273 m_pSpinboxMaxGuestScreenHeight->setMaximum(iMaxSize); 274 274 275 pLayoutMain->addWidget(m_pSpinboxMaxGuestScreenHeight, 2, 1 );275 pLayoutMain->addWidget(m_pSpinboxMaxGuestScreenHeight, 2, 1, 1, 2); 276 276 } 277 277 … … 286 286 m_pEditorScaleFactor = new UIScaleFactorEditor(this); 287 287 if (m_pEditorScaleFactor) 288 pLayoutMain->addWidget(m_pEditorScaleFactor, 3, 1, 2, 1);288 pLayoutMain->addWidget(m_pEditorScaleFactor, 3, 1, 2, 2); 289 289 290 290 /* Prepare 'machine-windows' label: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r86005 r86020 442 442 if (pLayoutMain) 443 443 { 444 pLayoutMain->setContentsMargins(0, 0, 0, 0);445 446 444 /* Prepare separator: */ 447 445 m_pLabelSeparator = new QILabelSeparator(this); … … 491 489 if (m_pToolbar) 492 490 { 493 /* Configure toolbar: */494 491 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 495 492 m_pToolbar->setIconSize(QSize(iIconMetric, iIconMetric)); 496 493 m_pToolbar->setOrientation(Qt::Vertical); 497 494 498 /* Prepare ' Add Package' action: */495 /* Prepare 'add package' action: */ 499 496 m_pActionAdd = m_pToolbar->addAction(UIIconPool::iconSet(":/extension_pack_install_16px.png", 500 497 ":/extension_pack_install_disabled_16px.png"), 501 498 QString(), this, SLOT(sltAddPackage())); 502 499 503 /* Prepare ' Remove Package' action: */500 /* Prepare 'remove package' action: */ 504 501 m_pActionRemove = m_pToolbar->addAction(UIIconPool::iconSet(":/extension_pack_uninstall_16px.png", 505 502 ":/extension_pack_uninstall_disabled_16px.png"), -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.h
r86005 r86020 109 109 /** Holds the toolbar instance. */ 110 110 UIToolBar *m_pToolbar; 111 /** Holds the Addaction instance. */111 /** Holds the 'add package' action instance. */ 112 112 QAction *m_pActionAdd; 113 /** Holds the Removeaction instance. */113 /** Holds the 'remove package' action instance. */ 114 114 QAction *m_pActionRemove; 115 115 /** @} */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp
r85978 r86020 68 68 , m_pLabelMachineFolder(0) 69 69 , m_pSelectorMachineFolder(0) 70 , m_pLabelVRDPLib Name(0)71 , m_pSelectorVRDPLib Name(0)70 , m_pLabelVRDPLibraryName(0) 71 , m_pSelectorVRDPLibraryName(0) 72 72 , m_pLabelHostScreenSaver(0) 73 73 , m_pCheckBoxHostScreenSaver(0) … … 113 113 /* Load old general data from the cache: */ 114 114 m_pSelectorMachineFolder->setPath(oldGeneralData.m_strDefaultMachineFolder); 115 m_pSelectorVRDPLib Name->setPath(oldGeneralData.m_strVRDEAuthLibrary);115 m_pSelectorVRDPLibraryName->setPath(oldGeneralData.m_strVRDEAuthLibrary); 116 116 m_pCheckBoxHostScreenSaver->setChecked(oldGeneralData.m_fHostScreenSaverDisabled); 117 117 } … … 124 124 /* Gather new general data: */ 125 125 newGeneralData.m_strDefaultMachineFolder = m_pSelectorMachineFolder->path(); 126 newGeneralData.m_strVRDEAuthLibrary = m_pSelectorVRDPLib Name->path();126 newGeneralData.m_strVRDEAuthLibrary = m_pSelectorVRDPLibraryName->path(); 127 127 newGeneralData.m_fHostScreenSaverDisabled = m_pCheckBoxHostScreenSaver->isChecked(); 128 128 … … 148 148 m_pSelectorMachineFolder->setWhatsThis(tr("Holds the path to the default virtual machine folder. This folder is used, " 149 149 "if not explicitly specified otherwise, when creating new virtual machines.")); 150 m_pLabelVRDPLib Name->setText(tr("V&RDP Authentication Library:"));151 m_pSelectorVRDPLib Name->setWhatsThis(tr("Holds the path to the library that provides authentication for Remote Display (VRDP) clients."));150 m_pLabelVRDPLibraryName->setText(tr("V&RDP Authentication Library:")); 151 m_pSelectorVRDPLibraryName->setWhatsThis(tr("Holds the path to the library that provides authentication for Remote Display (VRDP) clients.")); 152 152 m_pLabelHostScreenSaver->setText(tr("Host Screensaver:")); 153 153 m_pCheckBoxHostScreenSaver->setWhatsThis(tr("When checked, the host screensaver will be disabled whenever a virtual machine is running.")); … … 174 174 if (pLayoutMain) 175 175 { 176 pLayoutMain->setContentsMargins(0, 0, 0, 0);177 176 pLayoutMain->setColumnStretch(1, 1); 178 177 pLayoutMain->setRowStretch(3, 1); … … 197 196 198 197 /* Prepare VRDP library name label: */ 199 m_pLabelVRDPLib Name = new QLabel(this);200 if (m_pLabelVRDPLib Name)201 { 202 m_pLabelVRDPLib Name->setAlignment(Qt::AlignRight | Qt::AlignVCenter);203 pLayoutMain->addWidget(m_pLabelVRDPLib Name, 1, 0);198 m_pLabelVRDPLibraryName = new QLabel(this); 199 if (m_pLabelVRDPLibraryName) 200 { 201 m_pLabelVRDPLibraryName->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 202 pLayoutMain->addWidget(m_pLabelVRDPLibraryName, 1, 0); 204 203 } 205 204 /* Prepare VRDP library name selector: */ 206 m_pSelectorVRDPLib Name = new UIFilePathSelector(this);207 if (m_pSelectorVRDPLib Name)208 { 209 if (m_pLabelVRDPLib Name)210 m_pLabelVRDPLib Name->setBuddy(m_pSelectorVRDPLibName);211 m_pSelectorVRDPLib Name->setHomeDir(uiCommon().homeFolder());212 m_pSelectorVRDPLib Name->setMode(UIFilePathSelector::Mode_File_Open);213 214 pLayoutMain->addWidget(m_pSelectorVRDPLib Name, 1, 1, 1, 2);205 m_pSelectorVRDPLibraryName = new UIFilePathSelector(this); 206 if (m_pSelectorVRDPLibraryName) 207 { 208 if (m_pLabelVRDPLibraryName) 209 m_pLabelVRDPLibraryName->setBuddy(m_pSelectorVRDPLibraryName); 210 m_pSelectorVRDPLibraryName->setHomeDir(uiCommon().homeFolder()); 211 m_pSelectorVRDPLibraryName->setMode(UIFilePathSelector::Mode_File_Open); 212 213 pLayoutMain->addWidget(m_pSelectorVRDPLibraryName, 1, 1, 1, 2); 215 214 } 216 215 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h
r85978 r86020 85 85 UIFilePathSelector *m_pSelectorMachineFolder; 86 86 /** Holds VRDP library name label instance. */ 87 QLabel *m_pLabelVRDPLib Name;87 QLabel *m_pLabelVRDPLibraryName; 88 88 /** Holds VRDP library name selector instance. */ 89 UIFilePathSelector *m_pSelectorVRDPLib Name;89 UIFilePathSelector *m_pSelectorVRDPLibraryName; 90 90 /** Holds screen-saver label instance. */ 91 91 QLabel *m_pLabelHostScreenSaver; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
r85979 r86020 884 884 885 885 UIGlobalSettingsInput::UIGlobalSettingsInput() 886 : m_pModel Selector(0)887 , m_pModel Machine(0)886 : m_pModelManager(0) 887 , m_pModelRuntime(0) 888 888 , m_pCache(0) 889 889 , m_pTabWidget(0) 890 , m_pEditor SelectorFilter(0), m_pTableSelector(0)891 , m_p MachineFilterEditor(0), m_pTableMachine(0)890 , m_pEditorManagerFilter(0), m_pTableManager(0) 891 , m_pEditorRuntimeFilter(0), m_pTableRuntime(0) 892 892 , m_pCheckBoxEnableAutoGrab(0) 893 893 { … … 914 914 915 915 /* Gather old input data: */ 916 oldInputData.shortcuts() << UIDataShortcutRow(m_pTable Machine,916 oldInputData.shortcuts() << UIDataShortcutRow(m_pTableRuntime, 917 917 UIHostCombo::hostComboCacheKey(), 918 918 QString(), … … 925 925 { 926 926 const UIShortcut &shortcut = shortcuts[strShortcutKey]; 927 QITableView *pParent = strShortcutKey.startsWith(GUI_Input_MachineShortcuts) ? m_pTable Machine :928 strShortcutKey.startsWith(GUI_Input_SelectorShortcuts) ? m_pTable Selector : 0;927 QITableView *pParent = strShortcutKey.startsWith(GUI_Input_MachineShortcuts) ? m_pTableRuntime : 928 strShortcutKey.startsWith(GUI_Input_SelectorShortcuts) ? m_pTableManager : 0; 929 929 AssertPtr(pParent); 930 930 oldInputData.shortcuts() << UIDataShortcutRow(pParent, … … 950 950 951 951 /* Load old input data from the cache: */ 952 m_pModel Selector->load(oldInputData.shortcuts());953 m_pModel Machine->load(oldInputData.shortcuts());952 m_pModelManager->load(oldInputData.shortcuts()); 953 m_pModelRuntime->load(oldInputData.shortcuts()); 954 954 m_pCheckBoxEnableAutoGrab->setChecked(oldInputData.autoCapture()); 955 955 … … 964 964 965 965 /* Gather new input data: */ 966 m_pModel Selector->save(newInputData.shortcuts());967 m_pModel Machine->save(newInputData.shortcuts());966 m_pModelManager->save(newInputData.shortcuts()); 967 m_pModelRuntime->save(newInputData.shortcuts()); 968 968 newInputData.setAutoCapture(m_pCheckBoxEnableAutoGrab->isChecked()); 969 969 … … 990 990 991 991 /* Check VirtualBox Manager page for unique shortcuts: */ 992 if (!m_pModel Selector->isAllShortcutsUnique())992 if (!m_pModelManager->isAllShortcutsUnique()) 993 993 { 994 994 UIValidationMessage message; … … 1000 1000 1001 1001 /* Check Virtual Machine page for unique shortcuts: */ 1002 if (!m_pModel Machine->isAllShortcutsUnique())1002 if (!m_pModelRuntime->isAllShortcutsUnique()) 1003 1003 { 1004 1004 UIValidationMessage message; … … 1016 1016 { 1017 1017 setTabOrder(pWidget, m_pTabWidget); 1018 setTabOrder(m_pTabWidget, m_pEditor SelectorFilter);1019 setTabOrder(m_pEditor SelectorFilter, m_pTableSelector);1020 setTabOrder(m_pTable Selector, m_pMachineFilterEditor);1021 setTabOrder(m_p MachineFilterEditor, m_pTableMachine);1022 setTabOrder(m_pTable Machine, m_pCheckBoxEnableAutoGrab);1018 setTabOrder(m_pTabWidget, m_pEditorManagerFilter); 1019 setTabOrder(m_pEditorManagerFilter, m_pTableManager); 1020 setTabOrder(m_pTableManager, m_pEditorRuntimeFilter); 1021 setTabOrder(m_pEditorRuntimeFilter, m_pTableRuntime); 1022 setTabOrder(m_pTableRuntime, m_pCheckBoxEnableAutoGrab); 1023 1023 } 1024 1024 … … 1034 1034 m_pTabWidget->setTabText(UIHotKeyTableIndex_Selector, tr("&VirtualBox Manager")); 1035 1035 m_pTabWidget->setTabText(UIHotKeyTableIndex_Machine, tr("Virtual &Machine")); 1036 m_pTable Selector->setWhatsThis(tr("Lists all available shortcuts which can be configured."));1037 m_pTable Machine->setWhatsThis(tr("Lists all available shortcuts which can be configured."));1038 m_pEditor SelectorFilter->setWhatsThis(tr("Holds a sequence to filter the shortcut list."));1039 m_p MachineFilterEditor->setWhatsThis(tr("Holds a sequence to filter the shortcut list."));1036 m_pTableManager->setWhatsThis(tr("Lists all available shortcuts which can be configured.")); 1037 m_pTableRuntime->setWhatsThis(tr("Lists all available shortcuts which can be configured.")); 1038 m_pEditorManagerFilter->setWhatsThis(tr("Holds a sequence to filter the shortcut list.")); 1039 m_pEditorRuntimeFilter->setWhatsThis(tr("Holds a sequence to filter the shortcut list.")); 1040 1040 } 1041 1041 … … 1064 1064 if (m_pTabWidget) 1065 1065 { 1066 m_pTabWidget->setMinimumWidth(400); 1067 1068 /* Prepare 'Selector UI' tab: */ 1069 prepareTabSelector(); 1066 /* Prepare 'Manager UI' tab: */ 1067 prepareTabManager(); 1070 1068 /* Prepare 'Runtime UI' tab: */ 1071 1069 prepareTabMachine(); … … 1075 1073 } 1076 1074 1077 /* Prepare enable auto-grabcheck-box: */1075 /* Prepare 'enable auto-grab' check-box: */ 1078 1076 m_pCheckBoxEnableAutoGrab = new QCheckBox(this); 1079 1077 if (m_pCheckBoxEnableAutoGrab) … … 1082 1080 } 1083 1081 1084 void UIGlobalSettingsInput::prepareTab Selector()1085 { 1086 /* Prepare Selector UI tab: */1087 QWidget *p SelectorTab= new QWidget;1088 if (p SelectorTab)1089 { 1090 /* Prepare Selector UI layout: */1091 QVBoxLayout *p SelectorLayout = new QVBoxLayout(pSelectorTab);1092 if (p SelectorLayout)1093 { 1094 p SelectorLayout->setSpacing(1);1082 void UIGlobalSettingsInput::prepareTabManager() 1083 { 1084 /* Prepare Manager UI tab: */ 1085 QWidget *pTabManager = new QWidget; 1086 if (pTabManager) 1087 { 1088 /* Prepare Manager UI layout: */ 1089 QVBoxLayout *pLayoutManager = new QVBoxLayout(pTabManager); 1090 if (pLayoutManager) 1091 { 1092 pLayoutManager->setSpacing(1); 1095 1093 #ifdef VBOX_WS_MAC 1096 1094 /* On Mac OS X and X11 we can do a bit of smoothness: */ 1097 p SelectorLayout->setContentsMargins(0, 0, 0, 0);1095 pLayoutManager->setContentsMargins(0, 0, 0, 0); 1098 1096 #endif 1099 1097 1100 /* Prepare Selector UI filter editor: */1101 m_pEditor SelectorFilter = new QLineEdit(pSelectorTab);1102 if (m_pEditor SelectorFilter)1103 p SelectorLayout->addWidget(m_pEditorSelectorFilter);1104 1105 /* Prepare Selector UI model: */1106 m_pModel Selector = new UIHotKeyTableModel(this, UIActionPoolType_Manager);1107 1108 /* Prepare Selector UI table: */1109 m_pTable Selector = new UIHotKeyTable(pSelectorTab, m_pModelSelector, "m_pTableSelector");1110 if (m_pTable Selector)1111 p SelectorLayout->addWidget(m_pTableSelector);1112 } 1113 1114 m_pTabWidget->insertTab(UIHotKeyTableIndex_Selector, p SelectorTab, QString());1098 /* Prepare Manager UI filter editor: */ 1099 m_pEditorManagerFilter = new QLineEdit(pTabManager); 1100 if (m_pEditorManagerFilter) 1101 pLayoutManager->addWidget(m_pEditorManagerFilter); 1102 1103 /* Prepare Manager UI model: */ 1104 m_pModelManager = new UIHotKeyTableModel(this, UIActionPoolType_Manager); 1105 1106 /* Prepare Manager UI table: */ 1107 m_pTableManager = new UIHotKeyTable(pTabManager, m_pModelManager, "m_pTableManager"); 1108 if (m_pTableManager) 1109 pLayoutManager->addWidget(m_pTableManager); 1110 } 1111 1112 m_pTabWidget->insertTab(UIHotKeyTableIndex_Selector, pTabManager, QString()); 1115 1113 } 1116 1114 } … … 1119 1117 { 1120 1118 /* Create Runtime UI tab: */ 1121 QWidget *p MachineTab= new QWidget;1122 if (p MachineTab)1119 QWidget *pTabMachine = new QWidget; 1120 if (pTabMachine) 1123 1121 { 1124 1122 /* Prepare Runtime UI layout: */ 1125 QVBoxLayout *p MachineLayout = new QVBoxLayout(pMachineTab);1126 if (p MachineLayout)1127 { 1128 p MachineLayout->setSpacing(1);1123 QVBoxLayout *pLayoutMachine = new QVBoxLayout(pTabMachine); 1124 if (pLayoutMachine) 1125 { 1126 pLayoutMachine->setSpacing(1); 1129 1127 #ifdef VBOX_WS_MAC 1130 /* On Mac OS X and X11 we can do a bit of smoothness .*/1131 p MachineLayout->setContentsMargins(0, 0, 0, 0);1128 /* On Mac OS X and X11 we can do a bit of smoothness: */ 1129 pLayoutMachine->setContentsMargins(0, 0, 0, 0); 1132 1130 #endif 1133 1131 1134 1132 /* Prepare Runtime UI filter editor: */ 1135 m_p MachineFilterEditor = new QLineEdit(pMachineTab);1136 if (m_p MachineFilterEditor)1137 p MachineLayout->addWidget(m_pMachineFilterEditor);1133 m_pEditorRuntimeFilter = new QLineEdit(pTabMachine); 1134 if (m_pEditorRuntimeFilter) 1135 pLayoutMachine->addWidget(m_pEditorRuntimeFilter); 1138 1136 1139 1137 /* Prepare Runtime UI model: */ 1140 m_pModel Machine = new UIHotKeyTableModel(this, UIActionPoolType_Runtime);1138 m_pModelRuntime = new UIHotKeyTableModel(this, UIActionPoolType_Runtime); 1141 1139 1142 1140 /* Create Runtime UI table: */ 1143 m_pTable Machine = new UIHotKeyTable(pMachineTab, m_pModelMachine, "m_pTableMachine");1144 if (m_pTable Machine)1145 p MachineLayout->addWidget(m_pTableMachine);1146 } 1147 1148 m_pTabWidget->insertTab(UIHotKeyTableIndex_Machine, p MachineTab, QString());1141 m_pTableRuntime = new UIHotKeyTable(pTabMachine, m_pModelRuntime, "m_pTableRuntime"); 1142 if (m_pTableRuntime) 1143 pLayoutMachine->addWidget(m_pTableRuntime); 1144 } 1145 1146 m_pTabWidget->insertTab(UIHotKeyTableIndex_Machine, pTabMachine, QString()); 1149 1147 1150 1148 /* In the VM process we start by displaying the Runtime UI tab: */ 1151 1149 if (uiCommon().uiType() == UICommon::UIType_RuntimeUI) 1152 m_pTabWidget->setCurrentWidget(p MachineTab);1150 m_pTabWidget->setCurrentWidget(pTabMachine); 1153 1151 } 1154 1152 } … … 1156 1154 void UIGlobalSettingsInput::prepareConnections() 1157 1155 { 1158 /* Configure 'Selector UI' connections: */ 1159 connect(m_pEditorSelectorFilter, &QLineEdit::textChanged, 1160 m_pModelSelector, &UIHotKeyTableModel::sltHandleFilterTextChange); 1161 connect(m_pModelSelector, &UIHotKeyTableModel::sigRevalidationRequired, this, &UIGlobalSettingsInput::revalidate); 1156 /* Configure 'Manager UI' connections: */ 1157 connect(m_pEditorManagerFilter, &QLineEdit::textChanged, m_pModelManager, &UIHotKeyTableModel::sltHandleFilterTextChange); 1158 connect(m_pModelManager, &UIHotKeyTableModel::sigRevalidationRequired, this, &UIGlobalSettingsInput::revalidate); 1162 1159 1163 1160 /* Configure 'Runtime UI' connections: */ 1164 connect(m_pMachineFilterEditor, &QLineEdit::textChanged, 1165 m_pModelMachine, &UIHotKeyTableModel::sltHandleFilterTextChange); 1166 connect(m_pModelMachine, &UIHotKeyTableModel::sigRevalidationRequired, this, &UIGlobalSettingsInput::revalidate); 1161 connect(m_pEditorRuntimeFilter, &QLineEdit::textChanged, m_pModelRuntime, &UIHotKeyTableModel::sltHandleFilterTextChange); 1162 connect(m_pModelRuntime, &UIHotKeyTableModel::sigRevalidationRequired, this, &UIGlobalSettingsInput::revalidate); 1167 1163 } 1168 1164 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h
r85979 r86020 80 80 /** Prepares widgets. */ 81 81 void prepareWidgets(); 82 /** Prepares 'Selector UI'tab. */83 void prepareTab Selector();84 /** Prepares 'Runtime UI'tab. */82 /** Prepares Manager UI tab. */ 83 void prepareTabManager(); 84 /** Prepares Runtime UI tab. */ 85 85 void prepareTabMachine(); 86 86 /** Prepares connections. */ … … 92 92 bool saveInputData(); 93 93 94 /** Holds the Selector UI shortcuts model instance. */95 UIHotKeyTableModel *m_pModel Selector;94 /** Holds the Manager UI shortcuts model instance. */ 95 UIHotKeyTableModel *m_pModelManager; 96 96 /** Holds the Runtime UI shortcuts model instance. */ 97 UIHotKeyTableModel *m_pModel Machine;97 UIHotKeyTableModel *m_pModelRuntime; 98 98 99 99 /** Holds the page data cache instance. */ … … 104 104 /** Holds the tab-widget instance. */ 105 105 QTabWidget *m_pTabWidget; 106 /** Holds the Selector UI shortcuts filter instance. */107 QLineEdit *m_pEditor SelectorFilter;108 /** Holds the Selector UI shortcuts table instance. */109 UIHotKeyTable *m_pTable Selector;106 /** Holds the Manager UI shortcuts filter instance. */ 107 QLineEdit *m_pEditorManagerFilter; 108 /** Holds the Manager UI shortcuts table instance. */ 109 UIHotKeyTable *m_pTableManager; 110 110 /** Holds the Runtime UI shortcuts filter instance. */ 111 QLineEdit *m_p MachineFilterEditor;111 QLineEdit *m_pEditorRuntimeFilter; 112 112 /** Holds the Runtime UI shortcuts table instance. */ 113 UIHotKeyTable *m_pTable Machine;114 /** Holds the enable auto-grabcheckbox instance. */113 UIHotKeyTable *m_pTableRuntime; 114 /** Holds the 'enable auto-grab' checkbox instance. */ 115 115 QCheckBox *m_pCheckBoxEnableAutoGrab; 116 116 /** @} */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
r85990 r86020 364 364 if (pLayoutMain) 365 365 { 366 pLayoutMain->setContentsMargins(0, 0, 0, 0);367 368 366 /* Prepare separator: */ 369 367 m_pLabelSeparator = new QILabelSeparator(this); 370 368 if (m_pLabelSeparator) 371 369 pLayoutMain->addWidget(m_pLabelSeparator, 0, 0); 370 372 371 /* Prepare tree-widget: */ 373 372 m_pTreeWidget = new QITreeWidget(this); … … 400 399 void UIGlobalSettingsLanguage::prepareConnection() 401 400 { 402 connect(m_pTreeWidget, &QITreeWidget::painted, 403 this, &UIGlobalSettingsLanguage::sltHandleItemPainting); 404 connect(m_pTreeWidget, &QITreeWidget::currentItemChanged, 405 this, &UIGlobalSettingsLanguage::sltHandleCurrentItemChange); 401 connect(m_pTreeWidget, &QITreeWidget::painted, this, &UIGlobalSettingsLanguage::sltHandleItemPainting); 402 connect(m_pTreeWidget, &QITreeWidget::currentItemChanged, this, &UIGlobalSettingsLanguage::sltHandleCurrentItemChange); 406 403 } 407 404 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r85998 r86020 221 221 , m_pLayoutNATNetwork(0) 222 222 , m_pTreeWidgetNATNetwork(0) 223 , m_pToolbarN etworkNAT(0)223 , m_pToolbarNATNetwork(0) 224 224 , m_pActionAddNATNetwork(0) 225 225 , m_pActionRemoveNATNetwork(0) … … 514 514 515 515 /* Prepare NAT network layout: */ 516 m_pLayoutNATNetwork = new QHBoxLayout (this);516 m_pLayoutNATNetwork = new QHBoxLayout; 517 517 if (m_pLayoutNATNetwork) 518 518 { … … 551 551 { 552 552 /* Prepare NAT network toolbar: */ 553 m_pToolbarN etworkNAT= new UIToolBar(this);554 if (m_pToolbarN etworkNAT)553 m_pToolbarNATNetwork = new UIToolBar(this); 554 if (m_pToolbarNATNetwork) 555 555 { 556 556 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 557 m_pToolbarN etworkNAT->setIconSize(QSize(iIconMetric, iIconMetric));558 m_pToolbarN etworkNAT->setOrientation(Qt::Vertical);559 560 /* Prepare ' Add NAT Network' action: */561 m_pActionAddNATNetwork = m_pToolbarN etworkNAT->addAction(UIIconPool::iconSet(":/host_iface_add_16px.png",557 m_pToolbarNATNetwork->setIconSize(QSize(iIconMetric, iIconMetric)); 558 m_pToolbarNATNetwork->setOrientation(Qt::Vertical); 559 560 /* Prepare 'add NAT network' action: */ 561 m_pActionAddNATNetwork = m_pToolbarNATNetwork->addAction(UIIconPool::iconSet(":/host_iface_add_16px.png", 562 562 ":/host_iface_add_disabled_16px.png"), 563 563 QString(), this, SLOT(sltAddNATNetwork())); … … 565 565 m_pActionAddNATNetwork->setShortcuts(QList<QKeySequence>() << QKeySequence("Ins") << QKeySequence("Ctrl+N")); 566 566 567 /* Prepare ' Remove NAT Network' action: */568 m_pActionRemoveNATNetwork = m_pToolbarN etworkNAT->addAction(UIIconPool::iconSet(":/host_iface_remove_16px.png",567 /* Prepare 'remove NAT network' action: */ 568 m_pActionRemoveNATNetwork = m_pToolbarNATNetwork->addAction(UIIconPool::iconSet(":/host_iface_remove_16px.png", 569 569 ":/host_iface_remove_disabled_16px.png"), 570 570 QString(), this, SLOT(sltRemoveNATNetwork())); … … 572 572 m_pActionRemoveNATNetwork->setShortcuts(QList<QKeySequence>() << QKeySequence("Del") << QKeySequence("Ctrl+R")); 573 573 574 /* Prepare ' Edit NAT Network' action: */575 m_pActionEditNATNetwork = m_pToolbarN etworkNAT->addAction(UIIconPool::iconSet(":/host_iface_edit_16px.png",574 /* Prepare 'edit NAT network' action: */ 575 m_pActionEditNATNetwork = m_pToolbarNATNetwork->addAction(UIIconPool::iconSet(":/host_iface_edit_16px.png", 576 576 ":/host_iface_edit_disabled_16px.png"), 577 577 QString(), this, SLOT(sltEditNATNetwork())); … … 579 579 m_pActionEditNATNetwork->setShortcuts(QList<QKeySequence>() << QKeySequence("Space") << QKeySequence("F2")); 580 580 581 m_pLayoutNATNetwork->addWidget(m_pToolbarN etworkNAT);581 m_pLayoutNATNetwork->addWidget(m_pToolbarNATNetwork); 582 582 } 583 583 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h
r85998 r86020 139 139 QITreeWidget *m_pTreeWidgetNATNetwork; 140 140 /** Holds the NAT networt toolbar instance. */ 141 UIToolBar *m_pToolbarN etworkNAT;142 /** Holds the Add NAT networkaction instance. */141 UIToolBar *m_pToolbarNATNetwork; 142 /** Holds the 'add NAT network' action instance. */ 143 143 QAction *m_pActionAddNATNetwork; 144 /** Holds the Remove NAT networkaction instance. */144 /** Holds the 'remove NAT network' action instance. */ 145 145 QAction *m_pActionRemoveNATNetwork; 146 /** Holds the Edit NAT networkaction instance. */146 /** Holds the 'edit NAT network' action instance. */ 147 147 QAction *m_pActionEditNATNetwork; 148 148 /** @} */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
r86019 r86020 253 253 if (pLayoutMain) 254 254 { 255 pLayoutMain->setContentsMargins(0, 0, 0, 0);256 255 pLayoutMain->setRowStretch(4, 1); 257 256 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
r85982 r86020 306 306 pLayoutUpdateSettings->addWidget(m_pLabelUpdateFilter, 2, 0); 307 307 } 308 /* Prepare ' stable' radio-button: */308 /* Prepare 'update to stable' radio-button: */ 309 309 m_pRadioUpdateFilterStable = new QRadioButton(m_pWidgetUpdateSettings); 310 310 if (m_pRadioUpdateFilterStable) 311 311 pLayoutUpdateSettings->addWidget(m_pRadioUpdateFilterStable, 2, 1); 312 /* Prepare ' every' radio-button: */312 /* Prepare 'update to every' radio-button: */ 313 313 m_pRadioUpdateFilterEvery = new QRadioButton(m_pWidgetUpdateSettings); 314 314 if (m_pRadioUpdateFilterEvery) 315 315 pLayoutUpdateSettings->addWidget(m_pRadioUpdateFilterEvery, 3, 1); 316 /* Prepare ' betas' radio-button: */316 /* Prepare 'update to betas' radio-button: */ 317 317 m_pRadioUpdateFilterBetas = new QRadioButton(m_pWidgetUpdateSettings); 318 318 if (m_pRadioUpdateFilterBetas) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.h
r85982 r86020 99 99 /** @name Widgets 100 100 * @{ */ 101 QCheckBox *m_pCheckBoxUpdate; 102 QWidget *m_pWidgetUpdateSettings; 103 QLabel *m_pLabelUpdatePeriod; 104 QComboBox *m_pComboUpdatePeriod; 105 QLabel *m_pLabelUpdateDate; 106 QLabel *m_pFieldUpdateDate; 107 QLabel *m_pLabelUpdateFilter; 101 /** Holds the update check-box instance. */ 102 QCheckBox *m_pCheckBoxUpdate; 103 /** Holds the update settings widget instance. */ 104 QWidget *m_pWidgetUpdateSettings; 105 /** Holds the update period label instance. */ 106 QLabel *m_pLabelUpdatePeriod; 107 /** Holds the update period combo instance. */ 108 QComboBox *m_pComboUpdatePeriod; 109 /** Holds the update date label instance. */ 110 QLabel *m_pLabelUpdateDate; 111 /** Holds the update date field instance. */ 112 QLabel *m_pFieldUpdateDate; 113 /** Holds the update filter label instance. */ 114 QLabel *m_pLabelUpdateFilter; 115 /** Holds the 'update to stable' radio-button instance. */ 108 116 QRadioButton *m_pRadioUpdateFilterStable; 117 /** Holds the 'update to every' radio-button instance. */ 109 118 QRadioButton *m_pRadioUpdateFilterEvery; 119 /** Holds the 'update to betas' radio-button instance. */ 110 120 QRadioButton *m_pRadioUpdateFilterBetas; 111 121 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.