VirtualBox

Changeset 47130 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 13, 2013 5:13:57 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Global preferences: General page cleanup/rework.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/global
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp

    r45388 r47130  
    77
    88/*
    9  * Copyright (C) 2006-2012 Oracle Corporation
     9 * Copyright (C) 2006-2013 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3232
    3333#ifndef Q_WS_MAC
    34     m_pEnablePresentationModeCheckbox->hide();
    35     m_pSpacerWidget2->hide();
     34    m_pPresentationModeLabel->hide();
     35    m_pPresentationModeCheckbox->hide();
    3636#endif /* !Q_WS_MAC */
    37 //#ifndef Q_WS_WIN /* Checkbox hidden for now! */
    38     m_pDisableHostScreenSaverCheckbox->hide();
    39     m_pSpacerWidget3->hide();
    40 //#endif /* !Q_WS_WIN */
    41 
    42     /* If all checkboxes hidden, hide separator too: */
    43     if (m_pEnablePresentationModeCheckbox->isHidden() &&
    44         m_pDisableHostScreenSaverCheckbox->isHidden())
    45         m_pLineSeparator2->hide();
     37    /* Hide checkbox for now: */
     38    m_pHostScreenSaverLabel->hide();
     39    m_pHostScreenSaverCheckbox->hide();
    4640
    4741    /* Setup widgets: */
     
    6761    m_cache.m_fPresentationModeEnabled = m_settings.presentationModeEnabled();
    6862#endif /* Q_WS_MAC */
    69     m_cache.m_fHostScreenSaverDisables = m_settings.hostScreenSaverDisabled();
     63    m_cache.m_fHostScreenSaverDisabled = m_settings.hostScreenSaverDisabled();
    7064
    7165    /* Upload properties & settings to data: */
     
    8175    m_pVRDPLibNameSelector->setPath(m_cache.m_strVRDEAuthLibrary);
    8276#ifdef Q_WS_MAC
    83     m_pEnablePresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled);
     77    m_pPresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled);
    8478#endif /* Q_WS_MAC */
    85     m_pDisableHostScreenSaverCheckbox->setChecked(m_cache.m_fHostScreenSaverDisables);
     79    m_pHostScreenSaverCheckbox->setChecked(m_cache.m_fHostScreenSaverDisabled);
    8680}
    8781
     
    9488    m_cache.m_strVRDEAuthLibrary = m_pVRDPLibNameSelector->path();
    9589#ifdef Q_WS_MAC
    96     m_cache.m_fPresentationModeEnabled = m_pEnablePresentationModeCheckbox->isChecked();
     90    m_cache.m_fPresentationModeEnabled = m_pPresentationModeCheckbox->isChecked();
    9791#endif /* Q_WS_MAC */
    98     m_cache.m_fHostScreenSaverDisables = m_pDisableHostScreenSaverCheckbox->isChecked();
     92    m_cache.m_fHostScreenSaverDisabled = m_pHostScreenSaverCheckbox->isChecked();
    9993}
    10094
     
    114108    m_settings.setPresentationModeEnabled(m_cache.m_fPresentationModeEnabled);
    115109#endif /* Q_WS_MAC */
    116     m_settings.setHostScreenSaverDisabled(m_cache.m_fHostScreenSaverDisables);
     110    m_settings.setHostScreenSaverDisabled(m_cache.m_fHostScreenSaverDisabled);
    117111
    118112    /* Upload properties & settings to data: */
     
    125119    setTabOrder(pWidget, m_pMachineFolderSelector);
    126120    setTabOrder(m_pMachineFolderSelector, m_pVRDPLibNameSelector);
    127     setTabOrder(m_pVRDPLibNameSelector, m_pEnablePresentationModeCheckbox);
    128     setTabOrder(m_pEnablePresentationModeCheckbox, m_pDisableHostScreenSaverCheckbox);
     121    setTabOrder(m_pVRDPLibNameSelector, m_pPresentationModeCheckbox);
     122    setTabOrder(m_pPresentationModeCheckbox, m_pHostScreenSaverCheckbox);
    129123}
    130124
     
    134128    /* Translate uic generated strings: */
    135129    Ui::UIGlobalSettingsGeneral::retranslateUi(this);
    136 
    137     m_pMachineFolderSelector->setWhatsThis(tr("Displays the path to the default virtual "
    138                                               "machine folder. This folder is used, if not "
    139                                               "explicitly specified otherwise, when creating "
    140                                               "new virtual machines."));
    141     m_pVRDPLibNameSelector->setWhatsThis(tr("Displays the path to the library that "
    142                                             "provides authentication for Remote Display "
    143                                             "(VRDP) clients."));
    144130}
    145131
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h

    r45388 r47130  
    66
    77/*
    8  * Copyright (C) 2006-2012 Oracle Corporation
     8 * Copyright (C) 2006-2013 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3232    bool m_fPresentationModeEnabled;
    3333#endif /* Q_WS_MAC */
    34     bool m_fHostScreenSaverDisables;
     34    bool m_fHostScreenSaverDisabled;
    3535};
    3636
     
    7474
    7575#endif // __UIGlobalSettingsGeneral_h__
    76 
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui

    r45388 r47130  
    2727    <number>0</number>
    2828   </property>
    29    <item row="0" column="0" colspan="2">
     29   <item row="0" column="0">
    3030    <widget class="QLabel" name="m_pMachineFolderLabel">
    3131     <property name="text">
     
    4040    </widget>
    4141   </item>
    42    <item row="0" column="2">
     42   <item row="0" column="1">
    4343    <widget class="VBoxFilePathSelectorWidget" name="m_pMachineFolderSelector">
    4444     <property name="sizePolicy">
     
    4848      </sizepolicy>
    4949     </property>
    50     </widget>
    51    </item>
    52    <item row="1" column="0" colspan="3">
    53     <widget class="Line" name="m_pLineSeparator1">
    54      <property name="orientation">
    55       <enum>Qt::Horizontal</enum>
     50     <property name="whatsThis">
     51      <string>Displays the path to the default virtual machine folder. This folder is used, if not explicitly specified otherwise, when creating new virtual machines.</string>
    5652     </property>
    5753    </widget>
    5854   </item>
    59    <item row="2" column="0" colspan="2">
    60     <widget class="QLabel" name="m_pVRDPLibLabel">
     55   <item row="1" column="0">
     56    <widget class="QLabel" name="m_pVRDPLibNameLabel">
    6157     <property name="text">
    6258      <string>V&amp;RDP Authentication Library:</string>
     
    7066    </widget>
    7167   </item>
    72    <item row="2" column="2">
     68   <item row="1" column="1">
    7369    <widget class="VBoxFilePathSelectorWidget" name="m_pVRDPLibNameSelector">
    7470     <property name="sizePolicy">
     
    7874      </sizepolicy>
    7975     </property>
    80     </widget>
    81    </item>
    82    <item row="3" column="0" colspan="3">
    83     <widget class="Line" name="m_pLineSeparator2">
    84      <property name="orientation">
    85       <enum>Qt::Horizontal</enum>
     76     <property name="whatsThis">
     77      <string>Displays the path to the library that provides authentication for Remote Display (VRDP) clients.</string>
    8678     </property>
    8779    </widget>
    8880   </item>
    89    <item row="4" column="0">
    90     <widget class="QWidget" name="m_pSpacerWidget2">
    91      <property name="sizePolicy">
    92       <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
    93        <horstretch>0</horstretch>
    94        <verstretch>0</verstretch>
    95       </sizepolicy>
     81   <item row="2" column="0">
     82    <widget class="QLabel" name="m_pPresentationModeLabel">
     83     <property name="text">
     84      <string>&amp;Dock and Menubar:</string>
    9685     </property>
    97      <property name="minimumWidth">
    98       <number>34</number>
     86     <property name="alignment">
     87      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     88     </property>
     89     <property name="buddy">
     90      <cstring>m_pPresentationModeCheckbox</cstring>
    9991     </property>
    10092    </widget>
    10193   </item>
    102    <item row="4" column="1" colspan="2">
    103     <widget class="QCheckBox" name="m_pEnablePresentationModeCheckbox">
     94   <item row="2" column="1">
     95    <widget class="QCheckBox" name="m_pPresentationModeCheckbox">
    10496     <property name="text">
    105       <string>&amp;Auto show Dock and Menubar in fullscreen</string>
     97      <string>Auto Show in Fullscreen</string>
     98     </property>
     99     <property name="whatsThis">
     100      <string>When checked, Dock and Menubar will be shown in virtual machine fullscreen.</string>
    106101     </property>
    107102    </widget>
    108103   </item>
    109    <item row="5" column="0">
    110     <widget class="QWidget" name="m_pSpacerWidget3">
    111      <property name="sizePolicy">
    112       <sizepolicy hsizetype="Fixed" vsizetype="Minimum">
    113        <horstretch>0</horstretch>
    114        <verstretch>0</verstretch>
    115       </sizepolicy>
     104   <item row="3" column="0">
     105    <widget class="QLabel" name="m_pHostScreenSaverLabel">
     106     <property name="text">
     107      <string>&amp;Host Screen Saver:</string>
    116108     </property>
    117      <property name="minimumWidth">
    118       <number>34</number>
     109     <property name="alignment">
     110      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
     111     </property>
     112     <property name="buddy">
     113      <cstring>m_pHostScreenSaverCheckbox</cstring>
    119114     </property>
    120115    </widget>
    121116   </item>
    122    <item row="5" column="1" colspan="2">
    123     <widget class="QCheckBox" name="m_pDisableHostScreenSaverCheckbox">
     117   <item row="3" column="1">
     118    <widget class="QCheckBox" name="m_pHostScreenSaverCheckbox">
    124119     <property name="whatsThis">
    125120      <string>When checked, the host screen saver will be disabled whenever a virtual machine is running.</string>
    126121     </property>
    127122     <property name="text">
    128       <string>Disable Host &amp;ScreenSaver</string>
     123      <string>Disable at Virtual Machine Runtime</string>
    129124     </property>
    130125    </widget>
    131126   </item>
    132    <item row="6" column="0" colspan="3">
     127   <item row="4" column="0" colspan="2">
    133128    <spacer>
    134129     <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