Changeset 45388 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 6, 2013 10:49:35 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.cpp
r44561 r45388 62 62 remapScancodes = QString::null; 63 63 proxySettings = QString::null; 64 trayIconEnabled = false;65 64 presentationModeEnabled = false; 66 65 hostScreenSaverDisabled = false; … … 76 75 remapScancodes = that.remapScancodes; 77 76 proxySettings = that.proxySettings; 78 trayIconEnabled = that.trayIconEnabled;79 77 presentationModeEnabled = that.presentationModeEnabled; 80 78 hostScreenSaverDisabled = that.hostScreenSaverDisabled; … … 95 93 remapScancodes == that.remapScancodes && 96 94 proxySettings == that.proxySettings && 97 trayIconEnabled == that.trayIconEnabled &&98 95 presentationModeEnabled == that.presentationModeEnabled && 99 96 hostScreenSaverDisabled == that.hostScreenSaverDisabled … … 126 123 { "GUI/RemapScancodes", "remapScancodes", "(\\d+=\\d+,)*\\d+=\\d+", true }, 127 124 { "GUI/ProxySettings", "proxySettings", "[\\s\\S]*", true }, 128 { "GUI/TrayIcon/Enabled", "trayIconEnabled", "true|false", true },129 125 #ifdef Q_WS_MAC 130 126 { GUI_PresentationModeEnabled, "presentationModeEnabled", "true|false", true }, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.h
r37544 r45388 45 45 QString remapScancodes; 46 46 QString proxySettings; 47 bool trayIconEnabled;48 47 bool presentationModeEnabled; 49 48 bool hostScreenSaverDisabled; … … 64 63 Q_PROPERTY (QString remapScancodes READ remapScancodes WRITE setRemapScancodes) 65 64 Q_PROPERTY (QString proxySettings READ proxySettings WRITE setProxySettings) 66 Q_PROPERTY (bool trayIconEnabled READ trayIconEnabled WRITE setTrayIconEnabled)67 65 Q_PROPERTY (bool presentationModeEnabled READ presentationModeEnabled WRITE setPresentationModeEnabled) 68 66 Q_PROPERTY (bool hostScreenSaverDisabled READ hostScreenSaverDisabled WRITE setHostScreenSaverDisabled) … … 122 120 } 123 121 124 bool trayIconEnabled() const { return data()->trayIconEnabled; }125 void setTrayIconEnabled (bool enabled)126 {127 mData()->trayIconEnabled = enabled;128 }129 130 122 bool presentationModeEnabled() const { return data()->presentationModeEnabled; } 131 123 void setPresentationModeEnabled (bool enabled) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp
r45374 r45388 41 41 42 42 /* If all checkboxes hidden, hide separator too: */ 43 if (m_pEnableTrayIconCheckbox->isHidden() && 44 m_pEnablePresentationModeCheckbox->isHidden() && 43 if (m_pEnablePresentationModeCheckbox->isHidden() && 45 44 m_pDisableHostScreenSaverCheckbox->isHidden()) 46 45 m_pLineSeparator2->hide(); … … 65 64 m_cache.m_strDefaultMachineFolder = m_properties.GetDefaultMachineFolder(); 66 65 m_cache.m_strVRDEAuthLibrary = m_properties.GetVRDEAuthLibrary(); 67 m_cache.m_fTrayIconEnabled = m_settings.trayIconEnabled();68 66 #ifdef Q_WS_MAC 69 67 m_cache.m_fPresentationModeEnabled = m_settings.presentationModeEnabled(); … … 82 80 m_pMachineFolderSelector->setPath(m_cache.m_strDefaultMachineFolder); 83 81 m_pVRDPLibNameSelector->setPath(m_cache.m_strVRDEAuthLibrary); 84 m_pEnableTrayIconCheckbox->setChecked(m_cache.m_fTrayIconEnabled);85 82 #ifdef Q_WS_MAC 86 83 m_pEnablePresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled); … … 96 93 m_cache.m_strDefaultMachineFolder = m_pMachineFolderSelector->path(); 97 94 m_cache.m_strVRDEAuthLibrary = m_pVRDPLibNameSelector->path(); 98 m_cache.m_fTrayIconEnabled = m_pEnableTrayIconCheckbox->isChecked();99 95 #ifdef Q_WS_MAC 100 96 m_cache.m_fPresentationModeEnabled = m_pEnablePresentationModeCheckbox->isChecked(); … … 115 111 if (m_properties.isOk() && m_pVRDPLibNameSelector->isModified()) 116 112 m_properties.SetVRDEAuthLibrary(m_cache.m_strVRDEAuthLibrary); 117 m_settings.setTrayIconEnabled(m_cache.m_fTrayIconEnabled);118 113 #ifdef Q_WS_MAC 119 114 m_settings.setPresentationModeEnabled(m_cache.m_fPresentationModeEnabled); … … 130 125 setTabOrder(pWidget, m_pMachineFolderSelector); 131 126 setTabOrder(m_pMachineFolderSelector, m_pVRDPLibNameSelector); 132 setTabOrder(m_pVRDPLibNameSelector, m_pEnableTrayIconCheckbox); 133 setTabOrder(m_pEnableTrayIconCheckbox, m_pEnablePresentationModeCheckbox); 127 setTabOrder(m_pVRDPLibNameSelector, m_pEnablePresentationModeCheckbox); 134 128 setTabOrder(m_pEnablePresentationModeCheckbox, m_pDisableHostScreenSaverCheckbox); 135 129 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h
r44528 r45388 29 29 QString m_strDefaultMachineFolder; 30 30 QString m_strVRDEAuthLibrary; 31 bool m_fTrayIconEnabled;32 31 #ifdef Q_WS_MAC 33 32 bool m_fPresentationModeEnabled; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui
r43106 r45388 88 88 </item> 89 89 <item row="4" column="0"> 90 <widget class="QWidget" name="m_pSpacerWidget 1">90 <widget class="QWidget" name="m_pSpacerWidget2"> 91 91 <property name="sizePolicy"> 92 92 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> … … 101 101 </item> 102 102 <item row="4" column="1" colspan="2"> 103 <widget class="QCheckBox" name="m_pEnableTrayIconCheckbox"> 104 <property name="whatsThis"> 105 <string>When checked, the application will provide an icon with the context menu in the system tray.</string> 106 </property> 103 <widget class="QCheckBox" name="m_pEnablePresentationModeCheckbox"> 107 104 <property name="text"> 108 <string>& Show System Tray Icon</string>105 <string>&Auto show Dock and Menubar in fullscreen</string> 109 106 </property> 110 107 </widget> 111 108 </item> 112 109 <item row="5" column="0"> 113 <widget class="QWidget" name="m_pSpacerWidget 2">110 <widget class="QWidget" name="m_pSpacerWidget3"> 114 111 <property name="sizePolicy"> 115 112 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> … … 124 121 </item> 125 122 <item row="5" column="1" colspan="2"> 126 <widget class="QCheckBox" name="m_pEnablePresentationModeCheckbox">127 <property name="text">128 <string>&Auto show Dock and Menubar in fullscreen</string>129 </property>130 </widget>131 </item>132 <item row="6" column="0">133 <widget class="QWidget" name="m_pSpacerWidget3">134 <property name="sizePolicy">135 <sizepolicy hsizetype="Fixed" vsizetype="Minimum">136 <horstretch>0</horstretch>137 <verstretch>0</verstretch>138 </sizepolicy>139 </property>140 <property name="minimumWidth">141 <number>34</number>142 </property>143 </widget>144 </item>145 <item row="6" column="1" colspan="2">146 123 <widget class="QCheckBox" name="m_pDisableHostScreenSaverCheckbox"> 147 124 <property name="whatsThis"> … … 153 130 </widget> 154 131 </item> 155 <item row=" 7" column="0" colspan="3">132 <item row="6" column="0" colspan="3"> 156 133 <spacer> 157 134 <property name="orientation">
Note:
See TracChangeset
for help on using the changeset viewer.