VirtualBox

Changeset 14463 in vbox


Ignore:
Timestamp:
Nov 21, 2008 2:41:40 PM (16 years ago)
Author:
vboxsync
Message:

Fe/Qt4: Added serialization + GUI checkbox for systray flag (needs a restart of the GUI until now).

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGLSettingsGeneral.cpp

    r13580 r14463  
    4141
    4242void VBoxGLSettingsGeneral::getFrom (const CSystemProperties &aProps,
    43                                          const VBoxGlobalSettings &)
     43                                     const VBoxGlobalSettings &aGs)
    4444{
    4545    mPsHardDisk->setPath (aProps.GetDefaultHardDiskFolder());
    4646    mPsMach->setPath (aProps.GetDefaultMachineFolder());
    4747    mPsVRDP->setPath (aProps.GetRemoteDisplayAuthLibrary());
     48    mCbCheckTrayIcon->setChecked (aGs.trayIconEnabled());
    4849}
    4950
    5051void VBoxGLSettingsGeneral::putBackTo (CSystemProperties &aProps,
    51                                        VBoxGlobalSettings &)
     52                                       VBoxGlobalSettings &aGs)
    5253{
    5354    if (mPsHardDisk->isModified())
     
    5758    if (aProps.isOk() && mPsVRDP->isModified())
    5859        aProps.SetRemoteDisplayAuthLibrary (mPsVRDP->path());
     60    aGs.setTrayIconEnabled (mCbCheckTrayIcon->isChecked());
    5961}
    6062
     
    6466    setTabOrder (mPsHardDisk, mPsMach);
    6567    setTabOrder (mPsMach, mPsVRDP);
     68    setTabOrder (mPsVRDP, mCbCheckTrayIcon);
    6669}
    6770
     
    8285                               "provides authentication for Remote Display "
    8386                               "(VRDP) clients."));
     87    mCbCheckTrayIcon->setWhatsThis (tr ("When checked, the application will provide "
     88                                        "an icon with a context menu in the system tray."));
    8489}
    8590
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGLSettingsGeneral.ui

    r13580 r14463  
    117117   </item>
    118118   <item row="4" column="0" colspan="2" >
     119    <widget class="Line" name="mLnSeparator" >
     120     <property name="orientation" >
     121      <enum>Qt::Horizontal</enum>
     122     </property>
     123    </widget>
     124   </item>
     125   <item row="5" column="1" colspan="4" >
     126    <widget class="QCheckBox" name="mCbCheckTrayIcon" >
     127     <property name="whatsThis" >
     128      <string>When checked, the application will provide an icon with a context menu in the system tray.</string>
     129     </property>
     130     <property name="text" >
     131      <string>&amp;Show system tray icon</string>
     132     </property>
     133     <property name="checked" >
     134      <bool>true</bool>
     135     </property>
     136    </widget>
     137   </item>
     138   <item row="6" column="0" colspan="2" >
    119139    <spacer>
    120140     <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