Changeset 5370 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 18, 2007 10:27:00 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r5193 r5370 263 263 AssertMsg (it != clipboardTypes.end(), ("No value for {%s}", s.latin1())); 264 264 return CEnums::ClipboardMode (it - clipboardTypes.begin()); 265 } 266 267 QString toString (CEnums::IDEControllerType t) const 268 { 269 AssertMsg (!ideControllerTypes [t].isNull(), ("No text for %d", t)); 270 return ideControllerTypes [t]; 271 } 272 273 CEnums::IDEControllerType toIDEControllerType (const QString &s) const 274 { 275 QStringVector::const_iterator it = 276 qFind (ideControllerTypes.begin(), ideControllerTypes.end(), s); 277 AssertMsg (it != ideControllerTypes.end(), ("No value for {%s}", s.latin1())); 278 return CEnums::IDEControllerType (it - ideControllerTypes.begin()); 265 279 } 266 280 … … 588 602 QStringVector networkAttachmentTypes; 589 603 QStringVector clipboardTypes; 604 QStringVector ideControllerTypes; 590 605 QStringVector USBDeviceStates; 591 606 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r5193 r5370 713 713 , networkAttachmentTypes (CEnums::NetworkAttachmentType_COUNT) 714 714 , clipboardTypes (CEnums::ClipboardMode_COUNT) 715 , ideControllerTypes (CEnums::IDEControllerType_COUNT) 715 716 , USBDeviceStates (CEnums::USBDeviceState_COUNT) 716 717 , detailReportTemplatesReady (false) … … 2102 2103 tr ("Bidirectional", "ClipboardType"); 2103 2104 2105 ideControllerTypes [CEnums::IDEControllerPIIX3] = 2106 tr ("PIIX3", "IDEControllerType"); 2107 ideControllerTypes [CEnums::IDEControllerPIIX4] = 2108 tr ("PIIX4", "IDEControllerType"); 2109 2104 2110 USBDeviceStates [CEnums::USBDeviceNotSupported] = 2105 2111 tr ("Not supported", "USBDeviceState"); … … 2405 2411 } 2406 2412 2407 /** 2413 /** 2408 2414 * Replacement for QToolButton::setTextLabel() that handles the shortcut 2409 2415 * letter (if it is present in the argument string) as if it were a setText() … … 2413 2419 * @note This method preserves the icon set if it was assigned before. Only 2414 2420 * the text label and the accelerator are changed. 2415 * 2421 * 2416 2422 * @param aToolButton Tool button to set the text label on. 2417 2423 * @param aTextLabel Text label to set. -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r5194 r5370 6 6 7 7 Copyright (C) 2006-2007 innotek GmbH 8 8 9 9 This file is part of VirtualBox Open Source Edition (OSE), as 10 10 available from http://www.virtualbox.org. This file is free software; … … 1092 1092 </hbox> 1093 1093 </widget> 1094 <widget class="Q GroupBox">1094 <widget class="QLayoutWidget"> 1095 1095 <property name="name"> 1096 <cstring>groupBox61</cstring> 1097 </property> 1098 <property name="title"> 1099 <string>&Shared Clipboard</string> 1096 <cstring>layout102</cstring> 1100 1097 </property> 1101 1098 <hbox> … … 1103 1100 <cstring>unnamed</cstring> 1104 1101 </property> 1105 <widget class="Q ComboBox">1102 <widget class="QGroupBox"> 1106 1103 <property name="name"> 1107 <cstring>cbSharedClipboard</cstring> 1108 </property> 1109 <property name="whatsThis" stdset="0"> 1110 <string>Defines the mode of sharing the clipboard between the guest and the host OS. Note that this feature requires Guest Additions to be installed in the guest OS.</string> 1111 </property> 1112 <property name="sizePolicy"> 1113 <sizepolicy> 1114 <hsizetype>5</hsizetype> 1115 <vsizetype>0</vsizetype> 1116 <horstretch>0</horstretch> 1117 <verstretch>0</verstretch> 1118 </sizepolicy> 1119 </property> 1104 <cstring>groupBox61</cstring> 1105 </property> 1106 <property name="title"> 1107 <string>&Shared Clipboard</string> 1108 </property> 1109 <hbox> 1110 <property name="name"> 1111 <cstring>unnamed</cstring> 1112 </property> 1113 <widget class="QComboBox"> 1114 <property name="name"> 1115 <cstring>cbSharedClipboard</cstring> 1116 </property> 1117 <property name="sizePolicy"> 1118 <sizepolicy> 1119 <hsizetype>5</hsizetype> 1120 <vsizetype>0</vsizetype> 1121 <horstretch>0</horstretch> 1122 <verstretch>0</verstretch> 1123 </sizepolicy> 1124 </property> 1125 <property name="whatsThis" stdset="0"> 1126 <string>Defines the mode of sharing the clipboard between the guest and the host OS. Note that this feature requires Guest Additions to be installed in the guest OS.</string> 1127 </property> 1128 </widget> 1129 <spacer> 1130 <property name="name"> 1131 <cstring>spacer130</cstring> 1132 </property> 1133 <property name="orientation"> 1134 <enum>Horizontal</enum> 1135 </property> 1136 <property name="sizeType"> 1137 <enum>Expanding</enum> 1138 </property> 1139 <property name="sizeHint"> 1140 <size> 1141 <width>0</width> 1142 <height>20</height> 1143 </size> 1144 </property> 1145 </spacer> 1146 </hbox> 1120 1147 </widget> 1121 < spacer>1148 <widget class="QGroupBox"> 1122 1149 <property name="name"> 1123 <cstring>spacer130</cstring> 1124 </property> 1125 <property name="orientation"> 1126 <enum>Horizontal</enum> 1127 </property> 1128 <property name="sizeType"> 1129 <enum>Expanding</enum> 1130 </property> 1131 <property name="sizeHint"> 1132 <size> 1133 <width>0</width> 1134 <height>20</height> 1135 </size> 1136 </property> 1137 </spacer> 1150 <cstring>groupBox62</cstring> 1151 </property> 1152 <property name="title"> 1153 <string>&IDE Controller Type</string> 1154 </property> 1155 <hbox> 1156 <property name="name"> 1157 <cstring>unnamed</cstring> 1158 </property> 1159 <widget class="QComboBox"> 1160 <property name="name"> 1161 <cstring>cbIdeController</cstring> 1162 </property> 1163 <property name="sizePolicy"> 1164 <sizepolicy> 1165 <hsizetype>5</hsizetype> 1166 <vsizetype>0</vsizetype> 1167 <horstretch>0</horstretch> 1168 <verstretch>0</verstretch> 1169 </sizepolicy> 1170 </property> 1171 <property name="whatsThis" stdset="0"> 1172 <string>Defines the type of the virtual IDE controller. Depending on this value, VirtualBox will provide different virtual IDE hardware devices to the guest OS.</string> 1173 </property> 1174 </widget> 1175 <spacer> 1176 <property name="name"> 1177 <cstring>spacer131</cstring> 1178 </property> 1179 <property name="orientation"> 1180 <enum>Horizontal</enum> 1181 </property> 1182 <property name="sizeType"> 1183 <enum>Expanding</enum> 1184 </property> 1185 <property name="sizeHint"> 1186 <size> 1187 <width>0</width> 1188 <height>20</height> 1189 </size> 1190 </property> 1191 </spacer> 1192 </hbox> 1193 </widget> 1138 1194 </hbox> 1139 1195 </widget> … … 2984 3040 <tabstop>chbVTX</tabstop> 2985 3041 <tabstop>cbSharedClipboard</tabstop> 3042 <tabstop>cbIdeController</tabstop> 2986 3043 <tabstop>leSnapshotFolder</tabstop> 2987 3044 <tabstop>tbSelectSavedStateFolder</tabstop> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r4367 r5370 835 835 cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipGuestToHost)); 836 836 cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipBidirectional)); 837 /* IDE Controller Type */ 838 cbIdeController->insertItem (vboxGlobal().toString (CEnums::IDEControllerPIIX3)); 839 cbIdeController->insertItem (vboxGlobal().toString (CEnums::IDEControllerPIIX4)); 837 840 838 841 /* HDD Images page */ … … 877 880 } 878 881 879 /** 882 /** 880 883 * Returns a path to the given page of this settings dialog. See ::path() for 881 884 * details. … … 1584 1587 /* Shared clipboard mode */ 1585 1588 cbSharedClipboard->setCurrentItem (machine.GetClipboardMode()); 1589 1590 /* IDE controller type */ 1591 cbIdeController->setCurrentText (vboxGlobal().toString (biosSettings.GetIDEControllerType())); 1586 1592 1587 1593 /* other features */ … … 1944 1950 cmachine.SetClipboardMode ((CEnums::ClipboardMode)cbSharedClipboard->currentItem()); 1945 1951 1952 /* IDE controller type */ 1953 biosSettings.SetIDEControllerType (vboxGlobal().toIDEControllerType (cbIdeController->currentText())); 1954 1946 1955 /* other features */ 1947 1956 cmachine.SetExtraData (VBoxDefs::GUI_SaveMountedAtRuntime,
Note:
See TracChangeset
for help on using the changeset viewer.