Changeset 20412 in vbox
- Timestamp:
- Jun 8, 2009 2:42:47 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h
r20242 r20412 150 150 static const char* GUI_FirstRun; 151 151 static const char* GUI_SaveMountedAtRuntime; 152 static const char* GUI_ShowMiniToolBar; 152 153 static const char* GUI_LastCloseAction; 153 154 static const char* GUI_SuppressMessages; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxMiniToolBar.h
r20393 r20412 51 51 VBoxMiniToolBar (QWidget *aParent, Alignment aAlignment); 52 52 53 void setActive (bool aIsActive); 53 54 void setIsSeamlessMode (bool aIsSeamless); 54 55 … … 96 97 int mPositionY; 97 98 99 bool mIsActive; 98 100 bool mIsSeamless; 99 101 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r20395 r20412 900 900 mIsAutoSaveMedia = false; 901 901 902 str = cmachine.GetExtraData (VBoxDefs::GUI_ShowMiniToolBar); 903 if (str == "no") 904 mMiniToolBar->setActive (false); 905 902 906 /* Check if one of extended modes to be activated on loading */ 903 907 QString fsMode = cmachine.GetExtraData (VBoxDefs::GUI_Fullscreen); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxDefs.cpp
r20139 r20412 32 32 const char* VBoxDefs::GUI_FirstRun = "GUI/FirstRun"; 33 33 const char* VBoxDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime"; 34 const char* VBoxDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar"; 34 35 const char* VBoxDefs::GUI_LastCloseAction = "GUI/LastCloseAction"; 35 36 const char* VBoxDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMiniToolBar.cpp
r20397 r20412 45 45 , mHideAfterSlide (false) 46 46 , mPolished (false) 47 , mIsActive (true) 47 48 , mIsSeamless (false) 48 49 , mAlignment (aAlignment) … … 107 108 } 108 109 110 void VBoxMiniToolBar::setActive (bool aIsActive) 111 { 112 mIsActive = aIsActive; 113 } 114 109 115 void VBoxMiniToolBar::setIsSeamlessMode (bool aIsSeamless) 110 116 { … … 147 153 mSlideToScreen = true; 148 154 } 149 show();155 if (mIsActive) show(); 150 156 mScrollTimer.start (mScrollDelay, this); 151 157 } 152 else 153 show(); 158 else if (mIsActive) show(); 154 159 155 160 if (mAutoHide) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsGeneral.cpp
r20352 r20412 70 70 mCbSaveMounted->setChecked (saveRtimeImages != "no"); 71 71 72 /* Show Mini ToolBar in fullscreen/seamless */ 73 QString showMiniToolBar = mMachine.GetExtraData (VBoxDefs::GUI_ShowMiniToolBar); 74 mCbShowToolBar->setChecked (showMiniToolBar != "no"); 75 72 76 /* Snapshot folder */ 73 77 mPsSnapshot->setPath (aMachine.GetSnapshotFolder()); … … 96 100 mMachine.SetExtraData (VBoxDefs::GUI_SaveMountedAtRuntime, 97 101 mCbSaveMounted->isChecked() ? "yes" : "no"); 102 103 /* Show Mini ToolBar in fullscreen/seamless */ 104 mMachine.SetExtraData (VBoxDefs::GUI_ShowMiniToolBar, 105 mCbShowToolBar->isChecked() ? "yes" : "no"); 98 106 99 107 /* Saved state folder */ -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsGeneral.ui
r19837 r20412 164 164 </spacer> 165 165 </item> 166 <item row="2" column="0" > 167 <widget class="QLabel" name="mLbMedia" > 168 <property name="text" > 169 <string>Removable Media:</string> 170 </property> 171 <property name="alignment" > 172 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 173 </property> 174 </widget> 175 </item> 166 176 <item row="2" column="1" > 167 177 <widget class="QCheckBox" name="mCbSaveMounted" > … … 183 193 </widget> 184 194 </item> 185 <item row="2" column="0" > 186 <widget class="QLabel" name="mLbAdvanced" > 187 <property name="text" > 188 <string>Removable Media:</string> 189 </property> 190 <property name="alignment" > 191 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 195 <item row="3" column="0" > 196 <widget class="QLabel" name="mLbToolBar" > 197 <property name="text" > 198 <string>Mini ToolBar:</string> 199 </property> 200 <property name="alignment" > 201 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 202 </property> 203 </widget> 204 </item> 205 <item row="3" column="1" > 206 <widget class="QCheckBox" name="mCbShowToolBar" > 207 <property name="sizePolicy" > 208 <sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" > 209 <horstretch>0</horstretch> 210 <verstretch>0</verstretch> 211 </sizepolicy> 212 </property> 213 <property name="whatsThis" > 214 <string>If checked, show the Mini ToolBar in Fullscreen and Seamless modes.</string> 215 </property> 216 <property name="text" > 217 <string>Show In &Fullscreen/Seamless</string> 218 </property> 219 <property name="checked" > 220 <bool>true</bool> 192 221 </property> 193 222 </widget>
Note:
See TracChangeset
for help on using the changeset viewer.