Changeset 10699 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- Jul 16, 2008 1:14:13 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsSerial.cpp
r10167 r10699 41 41 42 42 /* Setup constraints */ 43 mLeIRQ->setMaximumWidth (mLeIRQ->fontMetrics().width ("888888")); 44 mLeIRQ->setMinimumWidth (mLeIRQ->minimumWidth()); 45 mLeIOPort->setMaximumWidth (mLeIOPort->fontMetrics().width ("8888888")); 46 mLeIOPort->setMinimumWidth (mLeIOPort->minimumWidth()); 43 mLeIRQ->setFixedWidth (mLeIRQ->fontMetrics().width ("8888")); 44 mLeIOPort->setFixedWidth (mLeIOPort->fontMetrics().width ("8888888")); 47 45 48 46 /* Set initial values */ … … 180 178 KPortMode mode = vboxGlobal().toPortMode (aText); 181 179 mCbPipe->setEnabled (mode == KPortMode_HostPipe); 180 mLbPath->setEnabled (mode != KPortMode_Disconnected); 182 181 mLePath->setEnabled (mode != KPortMode_Disconnected); 183 182 if (mValidator) … … 192 191 /* TabWidget creation */ 193 192 mTabWidget = new QTabWidget (this); 194 mTabWidget->setSizePolicy (QSizePolicy::Expanding,195 QSizePolicy::Fixed);196 193 QVBoxLayout *layout = new QVBoxLayout (this); 197 194 layout->setContentsMargins (0, 5, 0, 5); 198 195 layout->addWidget (mTabWidget); 199 layout->addStretch();200 196 201 197 /* Applying language settings */ -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsSerial.ui
r10167 r10699 23 23 <x>0</x> 24 24 <y>0</y> 25 <width>3 79</width>26 <height>1 63</height>25 <width>357</width> 26 <height>179</height> 27 27 </rect> 28 28 </property> 29 <layout class="Q VBoxLayout" >30 <item >31 <widget class="Q GroupBox" name="mGbSerial" >29 <layout class="QGridLayout" > 30 <item row="0" column="0" colspan="2" > 31 <widget class="QCheckBox" name="mGbSerial" > 32 32 <property name="whatsThis" > 33 33 <string>When checked, enables the given serial port of the virtual machine.</string> 34 34 </property> 35 <property name="t itle" >35 <property name="text" > 36 36 <string>&Enable Serial Port</string> 37 37 </property> 38 <property name="check able" >38 <property name="checked" > 39 39 <bool>true</bool> 40 40 </property> 41 </widget> 42 </item> 43 <item row="1" column="0" > 44 <spacer> 45 <property name="orientation" > 46 <enum>Qt::Horizontal</enum> 47 </property> 48 <property name="sizeType" > 49 <enum>QSizePolicy::Fixed</enum> 50 </property> 51 <property name="sizeHint" > 52 <size> 53 <width>20</width> 54 <height>20</height> 55 </size> 56 </property> 57 </spacer> 58 </item> 59 <item row="1" column="1" > 60 <widget class="QWidget" native="1" name="mSerialChild" > 41 61 <layout class="QGridLayout" > 62 <property name="leftMargin" > 63 <number>0</number> 64 </property> 42 65 <property name="topMargin" > 43 <number>5</number> 66 <number>0</number> 67 </property> 68 <property name="rightMargin" > 69 <number>0</number> 70 </property> 71 <property name="bottomMargin" > 72 <number>0</number> 44 73 </property> 45 74 <item row="0" column="0" > 46 75 <widget class="QLabel" name="mLbNumber" > 47 76 <property name="text" > 48 <string>Port &Number</string> 77 <string>Port &Number:</string> 78 </property> 79 <property name="alignment" > 80 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 49 81 </property> 50 82 <property name="buddy" > … … 61 93 </item> 62 94 <item row="0" column="2" > 63 <layout class="QHBoxLayout" > 64 <item> 65 <widget class="QLabel" name="mLbIRQ" > 66 <property name="text" > 67 <string>&IRQ</string> 68 </property> 69 <property name="buddy" > 70 <cstring>mLeIRQ</cstring> 71 </property> 72 </widget> 73 </item> 74 <item> 75 <widget class="QLineEdit" name="mLeIRQ" > 76 <property name="sizePolicy" > 77 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 78 <horstretch>0</horstretch> 79 <verstretch>0</verstretch> 80 </sizepolicy> 81 </property> 82 <property name="whatsThis" > 83 <string>Displays the IRQ number of this serial port. Valid values are integer numbers in range from <tt>0</tt> to <tt>255</tt>. Values greater than <tt>15</tt> may be used only if the <b>IO APIC</b> is enabled for this virtual machine.</string> 84 </property> 85 </widget> 86 </item> 87 </layout> 95 <widget class="QLabel" name="mLbIRQ" > 96 <property name="text" > 97 <string>&IRQ:</string> 98 </property> 99 <property name="buddy" > 100 <cstring>mLeIRQ</cstring> 101 </property> 102 </widget> 88 103 </item> 89 104 <item row="0" column="3" > 90 <layout class="QHBoxLayout" > 91 <item> 92 <widget class="QLabel" name="mLbIOPort" > 93 <property name="text" > 94 <string>I/O Po&rt</string> 95 </property> 96 <property name="buddy" > 97 <cstring>mLbIOPort</cstring> 98 </property> 99 </widget> 100 </item> 101 <item> 102 <widget class="QLineEdit" name="mLeIOPort" > 103 <property name="sizePolicy" > 104 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 105 <horstretch>0</horstretch> 106 <verstretch>0</verstretch> 107 </sizepolicy> 108 </property> 109 <property name="whatsThis" > 110 <string>Displays the base I/O port address of this serial port. Valid values are integer numbers in range from <tt>0</tt> to <tt>0xFFFF</tt>.</string> 111 </property> 112 </widget> 113 </item> 114 </layout> 105 <widget class="QLineEdit" name="mLeIRQ" > 106 <property name="sizePolicy" > 107 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 108 <horstretch>0</horstretch> 109 <verstretch>0</verstretch> 110 </sizepolicy> 111 </property> 112 <property name="whatsThis" > 113 <string>Displays the IRQ number of this serial port. Valid values are integer numbers in range from <tt>0</tt> to <tt>255</tt>. Values greater than <tt>15</tt> may be used only if the <b>IO APIC</b> is enabled for this virtual machine.</string> 114 </property> 115 </widget> 115 116 </item> 116 117 <item row="0" column="4" > 118 <widget class="QLabel" name="mLbIOPort" > 119 <property name="text" > 120 <string>I/O Po&rt:</string> 121 </property> 122 <property name="buddy" > 123 <cstring>mLbIOPort</cstring> 124 </property> 125 </widget> 126 </item> 127 <item row="0" column="5" > 128 <widget class="QLineEdit" name="mLeIOPort" > 129 <property name="sizePolicy" > 130 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 131 <horstretch>0</horstretch> 132 <verstretch>0</verstretch> 133 </sizepolicy> 134 </property> 135 <property name="whatsThis" > 136 <string>Displays the base I/O port address of this serial port. Valid values are integer numbers in range from <tt>0</tt> to <tt>0xFFFF</tt>.</string> 137 </property> 138 </widget> 139 </item> 140 <item row="1" column="0" > 141 <widget class="QLabel" name="mLbMode" > 142 <property name="text" > 143 <string>Port &Mode:</string> 144 </property> 145 <property name="alignment" > 146 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 147 </property> 148 <property name="buddy" > 149 <cstring>mCbMode</cstring> 150 </property> 151 </widget> 152 </item> 153 <item row="1" column="1" > 154 <widget class="QComboBox" name="mCbMode" > 155 <property name="whatsThis" > 156 <string>Controls the working mode of this serial port. If you select <b>Disconnected</b>, the guest OS will detect the serial port but will not be able to operate it.</string> 157 </property> 158 </widget> 159 </item> 160 <item row="1" column="2" colspan="4" > 117 161 <spacer> 118 162 <property name="orientation" > … … 121 165 <property name="sizeHint" > 122 166 <size> 123 <width> 0</width>167 <width>131</width> 124 168 <height>20</height> 125 169 </size> … … 127 171 </spacer> 128 172 </item> 129 <item row="1" column="0" > 130 <widget class="QLabel" name="mLbMode" > 131 <property name="text" > 132 <string>Port &Mode</string> 133 </property> 134 <property name="buddy" > 135 <cstring>mCbMode</cstring> 136 </property> 137 </widget> 138 </item> 139 <item row="1" column="1" > 140 <widget class="QComboBox" name="mCbMode" > 141 <property name="whatsThis" > 142 <string>Controls the working mode of this serial port. If you select <b>Disconnected</b>, the guest OS will detect the serial port but will not be able to operate it.</string> 143 </property> 144 </widget> 145 </item> 146 <item row="1" column="2" colspan="2" > 173 <item row="2" column="1" colspan="2" > 147 174 <widget class="QCheckBox" name="mCbPipe" > 148 175 <property name="whatsThis" > … … 154 181 </widget> 155 182 </item> 156 <item row="1" column="4" > 157 <spacer> 158 <property name="orientation" > 159 <enum>Qt::Horizontal</enum> 160 </property> 161 <property name="sizeHint" > 162 <size> 163 <width>0</width> 164 <height>20</height> 165 </size> 166 </property> 167 </spacer> 168 </item> 169 <item row="2" column="0" > 183 <item row="3" column="0" > 170 184 <widget class="QLabel" name="mLbPath" > 171 185 <property name="text" > 172 <string>Port &Path</string> 186 <string>Port &Path:</string> 187 </property> 188 <property name="alignment" > 189 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 173 190 </property> 174 191 <property name="buddy" > … … 177 194 </widget> 178 195 </item> 179 <item row=" 2" column="1" colspan="4" >196 <item row="3" column="1" colspan="5" > 180 197 <widget class="QLineEdit" name="mLePath" > 181 198 <property name="whatsThis" > … … 183 200 </property> 184 201 </widget> 185 </item>186 <item row="3" column="2" >187 <spacer>188 <property name="orientation" >189 <enum>Qt::Vertical</enum>190 </property>191 <property name="sizeHint" >192 <size>193 <width>20</width>194 <height>0</height>195 </size>196 </property>197 </spacer>198 202 </item> 199 203 </layout> 200 204 </widget> 205 </item> 206 <item row="1" column="2" > 207 <spacer> 208 <property name="orientation" > 209 <enum>Qt::Horizontal</enum> 210 </property> 211 <property name="sizeHint" > 212 <size> 213 <width>40</width> 214 <height>20</height> 215 </size> 216 </property> 217 </spacer> 218 </item> 219 <item row="2" column="1" > 220 <spacer> 221 <property name="orientation" > 222 <enum>Qt::Vertical</enum> 223 </property> 224 <property name="sizeHint" > 225 <size> 226 <width>20</width> 227 <height>40</height> 228 </size> 229 </property> 230 </spacer> 201 231 </item> 202 232 </layout> 203 233 </widget> 204 234 <resources/> 205 <connections/> 235 <connections> 236 <connection> 237 <sender>mGbSerial</sender> 238 <signal>toggled(bool)</signal> 239 <receiver>mSerialChild</receiver> 240 <slot>setEnabled(bool)</slot> 241 <hints> 242 <hint type="sourcelabel" > 243 <x>71</x> 244 <y>20</y> 245 </hint> 246 <hint type="destinationlabel" > 247 <x>255</x> 248 <y>125</y> 249 </hint> 250 </hints> 251 </connection> 252 </connections> 206 253 </ui>
Note:
See TracChangeset
for help on using the changeset viewer.