VirtualBox

Changeset 46631 in vbox


Ignore:
Timestamp:
Jun 18, 2013 4:53:40 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings: Audio page: Cleanup (part 4).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp

    r46630 r46631  
    195195void UIMachineSettingsAudio::polishPage()
    196196{
    197     setEnabled(isMachineOffline());
     197    m_pContainerAudioOptions->setEnabled(isMachineOffline());
    198198    mAudioChild->setEnabled(mGbAudio->isChecked());
    199199}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.ui

    r46630 r46631  
    1515 <class>UIMachineSettingsAudio</class>
    1616 <widget class="QWidget" name="UIMachineSettingsAudio">
    17   <layout class="QGridLayout">
    18    <item row="0" column="0" colspan="2">
    19     <widget class="QCheckBox" name="mGbAudio">
    20      <property name="whatsThis">
    21       <string>When checked, a virtual PCI audio card will be plugged into the virtual machine and will communicate with the host audio system using the specified driver.</string>
    22      </property>
    23      <property name="text">
    24       <string>Enable &amp;Audio</string>
    25      </property>
    26     </widget>
    27    </item>
    28    <item row="1" column="0">
    29     <spacer>
    30      <property name="orientation">
    31       <enum>Qt::Horizontal</enum>
    32      </property>
    33      <property name="sizeType">
    34       <enum>QSizePolicy::Fixed</enum>
    35      </property>
    36      <property name="sizeHint">
    37       <size>
    38        <width>20</width>
    39        <height>0</height>
    40       </size>
    41      </property>
    42     </spacer>
    43    </item>
    44    <item row="1" column="1">
    45     <widget class="QWidget" native="1" name="mAudioChild">
     17  <layout class="QVBoxLayout" name="m_pMainLayout">
     18   <item>
     19    <widget class="QWidget" name="m_pContainerAudioOptions">
    4620     <layout class="QGridLayout">
    47       <property name="margin">
    48        <number>0</number>
    49       </property>
    50       <item row="0" column="0">
    51        <widget class="QLabel" name="mLbAudioDriver">
     21      <item row="0" column="0" colspan="2">
     22       <widget class="QCheckBox" name="mGbAudio">
     23        <property name="whatsThis">
     24         <string>When checked, a virtual PCI audio card will be plugged into the virtual machine and will communicate with the host audio system using the specified driver.</string>
     25        </property>
    5226        <property name="text">
    53          <string>Host Audio &amp;Driver:</string>
    54         </property>
    55         <property name="alignment">
    56          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
    57         </property>
    58         <property name="buddy">
    59          <cstring>mCbAudioDriver</cstring>
    60         </property>
    61        </widget>
    62       </item>
    63       <item row="0" column="1">
    64        <widget class="QComboBox" name="mCbAudioDriver">
    65         <property name="sizePolicy">
    66          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
    67           <horstretch>1</horstretch>
    68           <verstretch>0</verstretch>
    69          </sizepolicy>
    70         </property>
    71         <property name="whatsThis">
    72          <string>Controls the audio output driver. The &lt;b>Null Audio Driver&lt;/b> makes the guest see an audio card, however every access to it will be ignored.</string>
     27         <string>Enable &amp;Audio</string>
    7328        </property>
    7429       </widget>
    7530      </item>
    7631      <item row="1" column="0">
    77        <widget class="QLabel" name="mLbAudioController">
    78         <property name="text">
    79          <string>Audio &amp;Controller:</string>
     32       <spacer>
     33        <property name="orientation">
     34         <enum>Qt::Horizontal</enum>
    8035        </property>
    81         <property name="alignment">
    82          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     36        <property name="sizeType">
     37         <enum>QSizePolicy::Fixed</enum>
    8338        </property>
    84         <property name="buddy">
    85          <cstring>mCbAudioController</cstring>
     39        <property name="sizeHint">
     40         <size>
     41          <width>20</width>
     42          <height>0</height>
     43         </size>
    8644        </property>
    87        </widget>
     45       </spacer>
    8846      </item>
    8947      <item row="1" column="1">
    90        <widget class="QComboBox" name="mCbAudioController">
    91         <property name="sizePolicy">
    92          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
    93           <horstretch>1</horstretch>
    94           <verstretch>0</verstretch>
    95          </sizepolicy>
    96         </property>
    97         <property name="whatsThis">
    98          <string>Selects the type of the virtual sound card. Depending on this value, VirtualBox will provide different audio hardware to the virtual machine.</string>
    99         </property>
     48       <widget class="QWidget" name="mAudioChild">
     49        <layout class="QGridLayout">
     50         <property name="margin">
     51          <number>0</number>
     52         </property>
     53         <item row="0" column="0">
     54          <widget class="QLabel" name="mLbAudioDriver">
     55           <property name="text">
     56            <string>Host Audio &amp;Driver:</string>
     57           </property>
     58           <property name="alignment">
     59            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     60           </property>
     61           <property name="buddy">
     62            <cstring>mCbAudioDriver</cstring>
     63           </property>
     64          </widget>
     65         </item>
     66         <item row="0" column="1">
     67          <widget class="QComboBox" name="mCbAudioDriver">
     68           <property name="sizePolicy">
     69            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     70             <horstretch>1</horstretch>
     71             <verstretch>0</verstretch>
     72            </sizepolicy>
     73           </property>
     74           <property name="whatsThis">
     75            <string>Controls the audio output driver. The &lt;b>Null Audio Driver&lt;/b> makes the guest see an audio card, however every access to it will be ignored.</string>
     76           </property>
     77          </widget>
     78         </item>
     79         <item row="1" column="0">
     80          <widget class="QLabel" name="mLbAudioController">
     81           <property name="text">
     82            <string>Audio &amp;Controller:</string>
     83           </property>
     84           <property name="alignment">
     85            <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     86           </property>
     87           <property name="buddy">
     88            <cstring>mCbAudioController</cstring>
     89           </property>
     90          </widget>
     91         </item>
     92         <item row="1" column="1">
     93          <widget class="QComboBox" name="mCbAudioController">
     94           <property name="sizePolicy">
     95            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     96             <horstretch>1</horstretch>
     97             <verstretch>0</verstretch>
     98            </sizepolicy>
     99           </property>
     100           <property name="whatsThis">
     101            <string>Selects the type of the virtual sound card. Depending on this value, VirtualBox will provide different audio hardware to the virtual machine.</string>
     102           </property>
     103          </widget>
     104         </item>
     105        </layout>
    100106       </widget>
    101107      </item>
     
    103109    </widget>
    104110   </item>
    105    <item row="2" column="0" colspan="2">
     111   <item>
    106112    <spacer>
    107113     <property name="orientation">
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette