Changeset 15664 in vbox
- Timestamp:
- Dec 18, 2008 2:46:02 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDefs.h
r15164 r15664 162 162 #ifdef Q_WS_MAC 163 163 static const char* GUI_RealtimeDockIconUpdateEnabled; 164 #endif 164 #endif /* Q_WS_MAC */ 165 165 static const char* GUI_PassCAD; 166 166 }; -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobalSettings.h
r14455 r15664 48 48 QString maxGuestRes; 49 49 bool trayIconEnabled; 50 bool dockPreviewEnabled; 50 51 51 52 friend class VBoxGlobalSettings; … … 63 64 Q_PROPERTY (QString maxGuestRes READ maxGuestRes WRITE setMaxGuestRes) 64 65 Q_PROPERTY (bool trayIconEnabled READ trayIconEnabled WRITE setTrayIconEnabled) 66 Q_PROPERTY (bool dockPreviewEnabled READ dockPreviewEnabled WRITE setDockPreviewEnabled) 65 67 66 68 public: … … 106 108 107 109 bool trayIconEnabled() const { return data()->trayIconEnabled; } 108 void setTrayIconEnabled (bool enabled) { 110 void setTrayIconEnabled (bool enabled) 111 { 109 112 mData()->trayIconEnabled = enabled; 110 113 } 114 115 bool dockPreviewEnabled() const { return data()->dockPreviewEnabled; } 116 void setDockPreviewEnabled (bool enabled) 117 { 118 mData()->dockPreviewEnabled = enabled; 119 } 120 111 121 112 122 // -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDefs.cpp
r15164 r15664 51 51 #ifdef Q_WS_MAC 52 52 const char* VBoxDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled"; 53 #endif 53 #endif /* Q_WS_MAC */ 54 54 const char* VBoxDefs::GUI_PassCAD = "GUI/PassCAD"; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGLSettingsGeneral.cpp
r15098 r15664 33 33 #ifndef VBOX_GUI_WITH_SYSTRAY 34 34 mCbCheckTrayIcon->hide(); 35 #endif 35 #endif /* VBOX_GUI_WITH_SYSTRAY */ 36 #ifndef Q_WS_MAC 37 mCbCheckDockPreview->hide(); 38 #endif /* Q_WS_MAC */ 36 39 37 40 mPsHardDisk->setHomeDir (vboxGlobal().virtualBox().GetHomeFolder()); … … 51 54 mPsVRDP->setPath (aProps.GetRemoteDisplayAuthLibrary()); 52 55 mCbCheckTrayIcon->setChecked (aGs.trayIconEnabled()); 56 #ifdef Q_WS_MAC 57 mCbCheckDockPreview->setChecked (aGs.dockPreviewEnabled()); 58 #endif /* Q_WS_MAC */ 53 59 } 54 60 … … 63 69 aProps.SetRemoteDisplayAuthLibrary (mPsVRDP->path()); 64 70 aGs.setTrayIconEnabled (mCbCheckTrayIcon->isChecked()); 71 #ifdef Q_WS_MAC 72 aGs.setDockPreviewEnabled (mCbCheckDockPreview->isChecked()); 73 #endif /* Q_WS_MAC */ 65 74 } 66 75 … … 71 80 setTabOrder (mPsMach, mPsVRDP); 72 81 setTabOrder (mPsVRDP, mCbCheckTrayIcon); 82 #ifdef Q_WS_MAC 83 setTabOrder (mCbCheckTrayIcon, mCbCheckDockPreview); 84 #endif /* Q_WS_MAC */ 73 85 } 74 86 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobalSettings.cpp
r14908 r15664 61 61 maxGuestRes = "auto"; 62 62 trayIconEnabled = false; 63 dockPreviewEnabled = true; 63 64 } 64 65 … … 71 72 maxGuestRes = that.maxGuestRes; 72 73 trayIconEnabled = that.trayIconEnabled; 74 dockPreviewEnabled = that.dockPreviewEnabled; 73 75 } 74 76 … … 85 87 languageId == that.languageId && 86 88 maxGuestRes == that.maxGuestRes && 87 trayIconEnabled == that.trayIconEnabled); 89 trayIconEnabled == that.trayIconEnabled 90 && dockPreviewEnabled == that.dockPreviewEnabled 91 ); 88 92 } 89 93 … … 106 110 gPropertyMap[] = 107 111 { 108 { "GUI/Input/HostKey", "hostKey", "\\d*[1-9]\\d*", true }, 109 { "GUI/Input/AutoCapture", "autoCapture", "true|false", true }, 110 { "GUI/Customizations", "guiFeatures", "\\S+", true }, 111 { "GUI/LanguageID", "languageId", gVBoxLangIDRegExp, true }, 112 { "GUI/MaxGuestResolution", "maxGuestRes", "\\d*[1-9]\\d*,\\d*[1-9]\\d*|any|auto", true }, 113 { "GUI/TrayIcon/Enabled", "trayIconEnabled", "true|false", true } 112 { "GUI/Input/HostKey", "hostKey", "\\d*[1-9]\\d*", true }, 113 { "GUI/Input/AutoCapture", "autoCapture", "true|false", true }, 114 { "GUI/Customizations", "guiFeatures", "\\S+", true }, 115 { "GUI/LanguageID", "languageId", gVBoxLangIDRegExp, true }, 116 { "GUI/MaxGuestResolution", "maxGuestRes", "\\d*[1-9]\\d*,\\d*[1-9]\\d*|any|auto", true }, 117 { "GUI/TrayIcon/Enabled", "trayIconEnabled", "true|false", true }, 118 #ifdef Q_WS_MAC 119 { VBoxDefs::GUI_RealtimeDockIconUpdateEnabled, "dockPreviewEnabled", "true|false", true } 120 #endif /* Q_WS_MAC */ 114 121 }; 115 122 -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGLSettingsGeneral.ui
r14479 r15664 136 136 </widget> 137 137 </item> 138 <item row="6" column="0" colspan="3" > 138 <item row="6" column="1" colspan="2" > 139 <widget class="QCheckBox" name="mCbCheckDockPreview" > 140 <property name="whatsThis" > 141 <string>When checked, the Dock Icon will reflect the VM window content in realtime.</string> 142 </property> 143 <property name="text" > 144 <string>&Dock Icon Realtime Preview</string> 145 </property> 146 <property name="checked" > 147 <bool>true</bool> 148 </property> 149 </widget> 150 </item> 151 <item row="7" column="0" colspan="3" > 139 152 <spacer> 140 153 <property name="orientation" >
Note:
See TracChangeset
for help on using the changeset viewer.