- Timestamp:
- May 20, 2010 2:48:14 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.cpp
r29697 r29700 161 161 void retranslateUi() 162 162 { 163 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Fullscreen Mode"), "F")); 164 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to fullscreen mode")); 163 if (!isChecked()) 164 { 165 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Enter &Fullscreen Mode"), "F")); 166 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to fullscreen mode")); 167 } 168 else 169 { 170 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Exit &Fullscreen Mode"), "F")); 171 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to normal mode")); 172 } 165 173 } 166 174 }; … … 184 192 void retranslateUi() 185 193 { 186 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Seam&less Mode"), "L")); 187 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to seamless desktop integration mode")); 194 if (!isChecked()) 195 { 196 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Enter Seam&less Mode"), "L")); 197 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to seamless desktop integration mode")); 198 } 199 else 200 { 201 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Exit Seam&less Mode"), "L")); 202 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to normal mode")); 203 } 188 204 } 189 205 }; … … 207 223 void retranslateUi() 208 224 { 209 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Auto-resize &Guest Display"), "G")); 210 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Automatically resize the guest display when the window is resized (requires Guest Additions)")); 225 if (!isChecked()) 226 { 227 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Enable &Guest Display Auto-resize"), "G")); 228 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Automatically resize the guest display when the window is resized (requires Guest Additions)")); 229 } 230 else 231 { 232 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Disable &Guest Display Auto-resize"), "G")); 233 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Disable automatic resize of the guest display when the window is resized")); 234 } 211 235 } 212 236 }; … … 791 815 void retranslateUi() 792 816 { 793 setText(QApplication::translate("VBoxConsoleWnd", "&Logging...", "debug action")); 817 if (!isChecked()) 818 { 819 setText(QApplication::translate("VBoxConsoleWnd", "Enable &Logging...", "debug action")); 820 } 821 else 822 { 823 setText(QApplication::translate("VBoxConsoleWnd", "Disable &Logging...", "debug action")); 824 } 794 825 } 795 826 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r28844 r29700 18 18 */ 19 19 20 /* Global includes */ 21 #include <QTimer> 22 20 23 /* Local includes */ 21 24 #include "VBoxGlobal.h" … … 165 168 pActionFullscreen->blockSignals(true); 166 169 pActionFullscreen->setChecked(true); 170 QTimer::singleShot(0, pActionFullscreen, SLOT(sltUpdateAppearance())); 167 171 pActionFullscreen->blockSignals(false); 168 172 } … … 178 182 pActionFullscreen->blockSignals(true); 179 183 pActionFullscreen->setChecked(false); 184 QTimer::singleShot(0, pActionFullscreen, SLOT(sltUpdateAppearance())); 180 185 pActionFullscreen->blockSignals(false); 181 186 } … … 227 232 pActionSeamless->blockSignals(true); 228 233 pActionSeamless->setChecked(true); 234 QTimer::singleShot(0, pActionSeamless, SLOT(sltUpdateAppearance())); 229 235 pActionSeamless->blockSignals(false); 230 236 } … … 240 246 pActionSeamless->blockSignals(true); 241 247 pActionSeamless->setChecked(false); 248 QTimer::singleShot(0, pActionSeamless, SLOT(sltUpdateAppearance())); 242 249 pActionSeamless->blockSignals(false); 243 250 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r29694 r29700 1200 1200 strSettings = machine.GetExtraData(VBoxDefs::GUI_AutoresizeGuest); 1201 1201 QAction *pGuestAutoresizeSwitch = uimachine()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize); 1202 pGuestAutoresizeSwitch->blockSignals(true);1203 1202 pGuestAutoresizeSwitch->setChecked(strSettings != "off"); 1204 pGuestAutoresizeSwitch->blockSignals(false);1205 1203 } 1206 1204 }
Note:
See TracChangeset
for help on using the changeset viewer.