Changeset 10684 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- Jul 16, 2008 8:53:25 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxMediaComboBox.cpp
r10676 r10684 44 44 /* Setup the elide mode */ 45 45 view()->setTextElideMode (Qt::ElideRight); 46 /* Setup default size policy */ 47 #ifdef Q_WS_MAC 48 QSizePolicy sp (QSizePolicy::Expanding, QSizePolicy::Fixed, QSizePolicy::ComboBox); 49 #else 50 QSizePolicy sp (QSizePolicy::Ignored, QSizePolicy::Fixed, QSizePolicy::ComboBox); 51 #endif 52 setSizePolicy (sp); 46 QSizePolicy sp1 (QSizePolicy::Ignored, QSizePolicy::Fixed, QSizePolicy::ComboBox); 47 sp1.setHorizontalStretch (2); 48 setSizePolicy (sp1); 53 49 54 50 #if 0 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsFD.cpp
r10167 r10684 215 215 } 216 216 217 mMountFDChild->setEnabled (aSwitchedOn); 218 217 219 onCbChange(); 218 220 } -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsFD.ui
r10352 r10684 23 23 <x>0</x> 24 24 <y>0</y> 25 <width>4 10</width>26 <height> 194</height>25 <width>496</width> 26 <height>265</height> 27 27 </rect> 28 28 </property> 29 <layout class="QVBoxLayout" > 30 <property name="leftMargin" > 31 <number>0</number> 32 </property> 33 <property name="topMargin" > 34 <number>5</number> 35 </property> 36 <property name="rightMargin" > 37 <number>0</number> 38 </property> 39 <property name="bottomMargin" > 40 <number>5</number> 41 </property> 42 <item> 43 <widget class="QGroupBox" name="mGbFD" > 29 <layout class="QGridLayout" > 30 <item row="0" column="0" colspan="2" > 31 <widget class="QCheckBox" name="mGbFD" > 32 <property name="whatsThis" > 33 <string>When checked, mounts the specified media to the Floppy drive of the virtual machine.</string> 34 </property> 35 <property name="text" > 36 <string>&Mount Floppy Drive</string> 37 </property> 38 <property name="checked" > 39 <bool>true</bool> 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="mMountFDChild" > 44 61 <property name="sizePolicy" > 45 <sizepolicy vsizetype=" Fixed" hsizetype="Expanding" >62 <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > 46 63 <horstretch>0</horstretch> 47 64 <verstretch>0</verstretch> 48 65 </sizepolicy> 49 66 </property> 50 <property name="whatsThis" > 51 <string>When checked, mounts the specified media to the Floppy drive of the virtual machine.</string> 52 </property> 53 <property name="title" > 54 <string>&Mount Floppy Drive</string> 55 </property> 56 <property name="checkable" > 57 <bool>true</bool> 58 </property> 59 <property name="checked" > 60 <bool>true</bool> 61 </property> 62 <layout class="QVBoxLayout" > 67 <layout class="QGridLayout" > 68 <property name="leftMargin" > 69 <number>0</number> 70 </property> 63 71 <property name="topMargin" > 64 <number> 5</number>72 <number>0</number> 65 73 </property> 66 <item> 67 <layout class="QHBoxLayout" > 68 <item> 69 <widget class="QRadioButton" name="mRbHostFD" > 70 <property name="whatsThis" > 71 <string>Mounts the specified host Floppy drive to the virtual Floppy drive.</string> 72 </property> 73 <property name="text" > 74 <string>Host Floppy &Drive</string> 75 </property> 76 <property name="autoExclusive" > 77 <bool>false</bool> 78 </property> 79 </widget> 80 </item> 81 <item> 82 <widget class="QComboBox" name="mCbHostFD" > 83 <property name="whatsThis" > 84 <string>Lists host Floppy drives available to mount to the virtual machine.</string> 85 </property> 86 </widget> 87 </item> 88 <item> 89 <spacer> 90 <property name="orientation" > 91 <enum>Qt::Horizontal</enum> 92 </property> 93 <property name="sizeHint" > 94 <size> 95 <width>0</width> 96 <height>10</height> 97 </size> 98 </property> 99 </spacer> 100 </item> 101 </layout> 74 <property name="rightMargin" > 75 <number>0</number> 76 </property> 77 <property name="bottomMargin" > 78 <number>0</number> 79 </property> 80 <item row="0" column="0" colspan="2" > 81 <widget class="QRadioButton" name="mRbHostFD" > 82 <property name="whatsThis" > 83 <string>Mounts the specified host Floppy drive to the virtual Floppy drive.</string> 84 </property> 85 <property name="text" > 86 <string>Host Floppy &Drive</string> 87 </property> 88 <property name="autoExclusive" > 89 <bool>false</bool> 90 </property> 91 </widget> 102 92 </item> 103 <item> 104 <layout class="QHBoxLayout" > 105 <item> 106 <widget class="QRadioButton" name="mRbIsoFD" > 107 <property name="whatsThis" > 108 <string>Mounts the specified Floppy image to the virtual Floppy drive.</string> 109 </property> 110 <property name="text" > 111 <string>&Image File</string> 112 </property> 113 <property name="autoExclusive" > 114 <bool>false</bool> 115 </property> 116 </widget> 117 </item> 118 <item> 119 <spacer> 120 <property name="orientation" > 121 <enum>Qt::Horizontal</enum> 122 </property> 123 <property name="sizeHint" > 124 <size> 125 <width>0</width> 126 <height>10</height> 127 </size> 128 </property> 129 </spacer> 130 </item> 131 </layout> 93 <item row="1" column="0" > 94 <spacer> 95 <property name="orientation" > 96 <enum>Qt::Horizontal</enum> 97 </property> 98 <property name="sizeType" > 99 <enum>QSizePolicy::Fixed</enum> 100 </property> 101 <property name="sizeHint" > 102 <size> 103 <width>8</width> 104 <height>16</height> 105 </size> 106 </property> 107 </spacer> 132 108 </item> 133 <item >134 < layout class="QHBoxLayout" >135 < item>136 <s pacer>137 <property name="orientation">138 <enum>Qt::Horizontal</enum>139 </property>140 <property name="sizeType" >141 <enum>QSizePolicy::Fixed</enum>142 </property>143 <property name="sizeHint">144 <size>145 <width>19</width>146 <height>16</height>147 </size>148 </property>149 < /spacer>150 </ item>151 <item>152 <widget class="VBoxMediaComboBox" name="mCbIsoFD">153 <property name="whatsThis" >154 <string>Displays the image file to mount to the virtual Floppy drive and allows to quickly select a different image.</string>155 </property>156 < /widget>157 </ item>158 <item>159 <widget class="QToolButton" name="mTbIsoFD">160 <property name="whatsThis" >161 <string>Invokes the Virtual Disk Manager to select a Floppy image to mount.</string>162 </property>163 <property name="text">164 <string/>165 </property>166 <property name="autoRaise">167 <bool>true</bool>168 </property>169 < /widget>170 </ item>171 </ layout>109 <item row="1" column="1" > 110 <widget class="QComboBox" name="mCbHostFD" > 111 <property name="whatsThis" > 112 <string>Lists host Floppy drives available to mount to the virtual machine.</string> 113 </property> 114 </widget> 115 </item> 116 <item row="2" column="0" colspan="2" > 117 <widget class="QRadioButton" name="mRbIsoFD" > 118 <property name="whatsThis" > 119 <string>Mounts the specified Floppy image to the virtual Floppy drive.</string> 120 </property> 121 <property name="text" > 122 <string>&Image File</string> 123 </property> 124 <property name="autoExclusive" > 125 <bool>false</bool> 126 </property> 127 </widget> 128 </item> 129 <item row="3" column="1" > 130 <widget class="VBoxMediaComboBox" name="mCbIsoFD" > 131 <property name="whatsThis" > 132 <string>Displays the image file to mount to the virtual Floppy drive and allows to quickly select a different image.</string> 133 </property> 134 </widget> 135 </item> 136 <item row="3" column="2" > 137 <widget class="QToolButton" name="mTbIsoFD" > 138 <property name="whatsThis" > 139 <string>Invokes the Virtual Disk Manager to select a Floppy image to mount.</string> 140 </property> 141 <property name="text" > 142 <string/> 143 </property> 144 <property name="autoRaise" > 145 <bool>true</bool> 146 </property> 147 </widget> 172 148 </item> 173 149 </layout> 174 150 </widget> 175 151 </item> 176 <item >152 <item row="2" column="1" > 177 153 <spacer> 178 154 <property name="orientation" > … … 182 158 <size> 183 159 <width>20</width> 184 <height> 0</height>160 <height>51</height> 185 161 </size> 186 162 </property>
Note:
See TracChangeset
for help on using the changeset viewer.