- Timestamp:
- Apr 4, 2007 9:20:12 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 20167
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r1902 r1915 234 234 } 235 235 236 QString toString (CEnums::ClipboardMode t) const 237 { 238 AssertMsg (!clipboardTypes [t].isNull(), ("No text for %d", t)); 239 return clipboardTypes [t]; 240 } 241 242 CEnums::ClipboardMode toClipboardModeType (const QString &s) const 243 { 244 QStringVector::const_iterator it = 245 qFind (clipboardTypes.begin(), clipboardTypes.end(), s); 246 AssertMsg (it != clipboardTypes.end(), ("No value for {%s}", s.latin1())); 247 return CEnums::ClipboardMode (it - clipboardTypes.begin()); 248 } 249 236 250 CEnums::VRDPAuthType toVRDPAuthType (const QString &s) const 237 251 { … … 510 524 QStringVector audioDriverTypes; 511 525 QStringVector networkAttachmentTypes; 526 QStringVector clipboardTypes; 512 527 QStringVector USBDeviceStates; 513 528 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r1902 r1915 501 501 , audioDriverTypes (CEnums::AudioDriverType_COUNT) 502 502 , networkAttachmentTypes (CEnums::NetworkAttachmentType_COUNT) 503 , clipboardTypes (CEnums::ClipboardMode_COUNT) 503 504 , USBDeviceStates (CEnums::USBDeviceState_COUNT) 504 505 , detailReportTemplatesReady (false) … … 1754 1755 tr ("Internal Network", "NetworkAttachmentType"); 1755 1756 1757 clipboardTypes [CEnums::ClipDisabled] = 1758 tr ("Disabled", "ClipboardType"); 1759 clipboardTypes [CEnums::ClipHostToGuest] = 1760 tr ("HostToGuest", "ClipboardType"); 1761 clipboardTypes [CEnums::ClipGuestToHost] = 1762 tr ("GuestToHost", "ClipboardType"); 1763 clipboardTypes [CEnums::ClipBidirectional] = 1764 tr ("Bidirectional", "ClipboardType"); 1765 1756 1766 USBDeviceStates [CEnums::USBDeviceNotSupported] = 1757 1767 tr ("Not supported", "USBDeviceState"); -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r1889 r1915 27 27 <x>0</x> 28 28 <y>0</y> 29 <width>4 65</width>30 <height>4 93</height>29 <width>486</width> 30 <height>405</height> 31 31 </rect> 32 32 </property> … … 975 975 <string>&Advanced</string> 976 976 </attribute> 977 < grid>977 <vbox> 978 978 <property name="name"> 979 979 <cstring>unnamed</cstring> … … 985 985 <number>10</number> 986 986 </property> 987 <widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="3"> 987 <widget class="QLayoutWidget"> 988 <property name="name"> 989 <cstring>layout148</cstring> 990 </property> 991 <hbox> 992 <property name="name"> 993 <cstring>unnamed</cstring> 994 </property> 995 <widget class="QLayoutWidget"> 996 <property name="name"> 997 <cstring>layout147</cstring> 998 </property> 999 <vbox> 1000 <property name="name"> 1001 <cstring>unnamed</cstring> 1002 </property> 1003 <property name="margin"> 1004 <number>0</number> 1005 </property> 1006 <property name="spacing"> 1007 <number>0</number> 1008 </property> 1009 <widget class="QGroupBox"> 1010 <property name="name"> 1011 <cstring>groupBox12</cstring> 1012 </property> 1013 <property name="sizePolicy"> 1014 <sizepolicy> 1015 <hsizetype>0</hsizetype> 1016 <vsizetype>0</vsizetype> 1017 <horstretch>0</horstretch> 1018 <verstretch>0</verstretch> 1019 </sizepolicy> 1020 </property> 1021 <property name="title"> 1022 <string>Boo&t Order</string> 1023 </property> 1024 <vbox> 1025 <property name="name"> 1026 <cstring>unnamed</cstring> 1027 </property> 1028 </vbox> 1029 </widget> 1030 <spacer> 1031 <property name="name"> 1032 <cstring>spacer129</cstring> 1033 </property> 1034 <property name="orientation"> 1035 <enum>Vertical</enum> 1036 </property> 1037 <property name="sizeType"> 1038 <enum>Minimum</enum> 1039 </property> 1040 <property name="sizeHint"> 1041 <size> 1042 <width>21</width> 1043 <height>0</height> 1044 </size> 1045 </property> 1046 </spacer> 1047 </vbox> 1048 </widget> 1049 <widget class="QLayoutWidget"> 1050 <property name="name"> 1051 <cstring>layout146</cstring> 1052 </property> 1053 <vbox> 1054 <property name="name"> 1055 <cstring>unnamed</cstring> 1056 </property> 1057 <property name="margin"> 1058 <number>0</number> 1059 </property> 1060 <property name="spacing"> 1061 <number>0</number> 1062 </property> 1063 <widget class="QGroupBox"> 1064 <property name="name"> 1065 <cstring>groupBox23</cstring> 1066 </property> 1067 <property name="sizePolicy"> 1068 <sizepolicy> 1069 <hsizetype>7</hsizetype> 1070 <vsizetype>0</vsizetype> 1071 <horstretch>1</horstretch> 1072 <verstretch>0</verstretch> 1073 </sizepolicy> 1074 </property> 1075 <property name="title"> 1076 <string>Extended Features</string> 1077 </property> 1078 <vbox> 1079 <property name="name"> 1080 <cstring>unnamed</cstring> 1081 </property> 1082 <widget class="QCheckBox"> 1083 <property name="name"> 1084 <cstring>chbEnableACPI</cstring> 1085 </property> 1086 <property name="text"> 1087 <string>Enable A&CPI</string> 1088 </property> 1089 <property name="accel"> 1090 <string>Alt+C</string> 1091 </property> 1092 <property name="whatsThis" stdset="0"> 1093 <string>When checked, the virtual machine will support 1094 the Advanced Configuration and Power Management Interface (ACPI). <b>Note:</b> don't disable 1095 this feature after having installed a Windows guest operating system!</string> 1096 </property> 1097 </widget> 1098 <widget class="QCheckBox"> 1099 <property name="name"> 1100 <cstring>chbEnableIOAPIC</cstring> 1101 </property> 1102 <property name="text"> 1103 <string>Enable IO A&PIC</string> 1104 </property> 1105 <property name="accel"> 1106 <string>Alt+P</string> 1107 </property> 1108 <property name="whatsThis" stdset="0"> 1109 <string>When checked, the virtual machine will support 1110 the Input Output APIC (IO APIC), which may slightly decrease the VM performance. <b>Note:</b> don't disable 1111 this feature after having installed a Windows guest operating system!</string> 1112 </property> 1113 </widget> 1114 </vbox> 1115 </widget> 1116 <spacer> 1117 <property name="name"> 1118 <cstring>spacer128</cstring> 1119 </property> 1120 <property name="orientation"> 1121 <enum>Vertical</enum> 1122 </property> 1123 <property name="sizeType"> 1124 <enum>Minimum</enum> 1125 </property> 1126 <property name="sizeHint"> 1127 <size> 1128 <width>20</width> 1129 <height>0</height> 1130 </size> 1131 </property> 1132 </spacer> 1133 </vbox> 1134 </widget> 1135 </hbox> 1136 </widget> 1137 <widget class="QGroupBox"> 1138 <property name="name"> 1139 <cstring>groupBox61</cstring> 1140 </property> 1141 <property name="title"> 1142 <string>&Shared Clipboard</string> 1143 </property> 1144 <hbox> 1145 <property name="name"> 1146 <cstring>unnamed</cstring> 1147 </property> 1148 <widget class="QComboBox"> 1149 <property name="name"> 1150 <cstring>cbSharedClipboard</cstring> 1151 </property> 1152 <property name="sizePolicy"> 1153 <sizepolicy> 1154 <hsizetype>5</hsizetype> 1155 <vsizetype>0</vsizetype> 1156 <horstretch>0</horstretch> 1157 <verstretch>0</verstretch> 1158 </sizepolicy> 1159 </property> 1160 </widget> 1161 <spacer> 1162 <property name="name"> 1163 <cstring>spacer130</cstring> 1164 </property> 1165 <property name="orientation"> 1166 <enum>Horizontal</enum> 1167 </property> 1168 <property name="sizeType"> 1169 <enum>Expanding</enum> 1170 </property> 1171 <property name="sizeHint"> 1172 <size> 1173 <width>0</width> 1174 <height>20</height> 1175 </size> 1176 </property> 1177 </spacer> 1178 </hbox> 1179 </widget> 1180 <widget class="QGroupBox"> 988 1181 <property name="name"> 989 1182 <cstring>groupBox5</cstring> 990 1183 </property> 991 1184 <property name="title"> 992 <string> &Snapshot Folder</string>1185 <string>S&napshot Folder</string> 993 1186 </property> 994 1187 <grid> … … 1057 1250 </grid> 1058 1251 </widget> 1059 <spacer row="3" column="1">1252 <spacer> 1060 1253 <property name="name"> 1061 1254 <cstring>spacer119_2</cstring> … … 1074 1267 </property> 1075 1268 </spacer> 1076 <widget class="QGroupBox" row="0" column="1" rowspan="1" colspan="2"> 1077 <property name="name"> 1078 <cstring>groupBox23</cstring> 1079 </property> 1080 <property name="sizePolicy"> 1081 <sizepolicy> 1082 <hsizetype>7</hsizetype> 1083 <vsizetype>5</vsizetype> 1084 <horstretch>1</horstretch> 1085 <verstretch>0</verstretch> 1086 </sizepolicy> 1087 </property> 1088 <property name="title"> 1089 <string>Extended Features</string> 1090 </property> 1091 <vbox> 1092 <property name="name"> 1093 <cstring>unnamed</cstring> 1094 </property> 1095 <widget class="QCheckBox"> 1096 <property name="name"> 1097 <cstring>chbEnableACPI</cstring> 1098 </property> 1099 <property name="text"> 1100 <string>Enable A&CPI</string> 1101 </property> 1102 <property name="accel"> 1103 <string>Alt+C</string> 1104 </property> 1105 <property name="whatsThis" stdset="0"> 1106 <string>When checked, the virtual machine will support 1107 the Advanced Configuration and Power Management Interface (ACPI). <b>Note:</b> don't disable 1108 this feature after having installed a Windows guest operating system!</string> 1109 </property> 1110 </widget> 1111 <widget class="QCheckBox"> 1112 <property name="name"> 1113 <cstring>chbEnableIOAPIC</cstring> 1114 </property> 1115 <property name="text"> 1116 <string>Enable IO A&PIC</string> 1117 </property> 1118 <property name="accel"> 1119 <string>Alt+P</string> 1120 </property> 1121 <property name="whatsThis" stdset="0"> 1122 <string>When checked, the virtual machine will support 1123 the Input Output APIC (IO APIC), which may slightly decrease the VM performance. <b>Note:</b> don't disable 1124 this feature after having installed a Windows guest operating system!</string> 1125 </property> 1126 </widget> 1127 </vbox> 1128 </widget> 1129 <widget class="QGroupBox" row="0" column="0" rowspan="2" colspan="1"> 1130 <property name="name"> 1131 <cstring>groupBox12</cstring> 1132 </property> 1133 <property name="sizePolicy"> 1134 <sizepolicy> 1135 <hsizetype>7</hsizetype> 1136 <vsizetype>5</vsizetype> 1137 <horstretch>0</horstretch> 1138 <verstretch>0</verstretch> 1139 </sizepolicy> 1140 </property> 1141 <property name="title"> 1142 <string>Boo&t Order</string> 1143 </property> 1144 <vbox> 1145 <property name="name"> 1146 <cstring>unnamed</cstring> 1147 </property> 1148 </vbox> 1149 </widget> 1150 </grid> 1269 </vbox> 1151 1270 </widget> 1152 1271 <widget class="QWidget"> … … 1584 1703 <property name="margin"> 1585 1704 <number>0</number> 1705 </property> 1706 <property name="spacing"> 1707 <number>10</number> 1586 1708 </property> 1587 1709 <widget class="QButtonGroup"> … … 2578 2700 <tabstop>chbEnableACPI</tabstop> 2579 2701 <tabstop>chbEnableIOAPIC</tabstop> 2702 <tabstop>cbSharedClipboard</tabstop> 2580 2703 <tabstop>leSnapshotFolder</tabstop> 2581 2704 <tabstop>tbSelectSavedStateFolder</tabstop> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r1902 r1915 697 697 groupBox12Layout->addWidget (tblBootOrder); 698 698 tblBootOrder->fixTabStops(); 699 /* Shared Clipboard mode */ 700 cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipDisabled)); 701 cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipHostToGuest)); 702 cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipGuestToHost)); 703 cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipBidirectional)); 699 704 700 705 /* HDD Images page */ … … 1233 1238 /* Description */ 1234 1239 teDescription->setText (machine.GetDescription()); 1240 1241 /* Shared clipboard mode */ 1242 cbSharedClipboard->setCurrentItem (machine.GetClipboardMode()); 1235 1243 1236 1244 /* hard disk images */ … … 1546 1554 cmachine.SetDescription (teDescription->text()); 1547 1555 1556 /* Shared clipboard mode */ 1557 cmachine.SetClipboardMode ((CEnums::ClipboardMode)cbSharedClipboard->currentItem()); 1558 1548 1559 /* hard disk images */ 1549 1560 {
Note:
See TracChangeset
for help on using the changeset viewer.