Changeset 51395 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 26, 2014 1:42:06 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r51308 r51395 2252 2252 #endif 2253 2253 m_pHostLedsState = NULL; 2254 } 2254 } 2255 } 2256 2257 void UIMachineLogic::sltShowGlobalPreferences() 2258 { 2259 /* Do not process if window(s) missed! */ 2260 if (!isMachineWindowsCreated()) 2261 return; 2262 2263 /* Just show Global Preferences: */ 2264 showGlobalPreferences(); 2265 } 2266 2267 void UIMachineLogic::showGlobalPreferences(const QString &strCategory /* = QString() */, const QString &strControl /* = QString() */) 2268 { 2269 /* Do not process if window(s) missed! */ 2270 if (!isMachineWindowsCreated()) 2271 return; 2272 2273 /* Check that we do NOT handling that already: */ 2274 if (gActionPool->action(UIActionIndex_Simple_Preferences)->data().toBool()) 2275 return; 2276 /* Remember that we handling that already: */ 2277 gActionPool->action(UIActionIndex_Simple_Preferences)->setData(true); 2278 2279 /* Create and execute global settings window: */ 2280 QPointer<UISettingsDialogGlobal> pDialog = new UISettingsDialogGlobal(activeMachineWindow(), 2281 strCategory, strControl); 2282 pDialog->execute(); 2283 if (pDialog) 2284 delete pDialog; 2285 2286 /* Remember that we do NOT handling that already: */ 2287 gActionPool->action(UIActionIndex_Simple_Preferences)->setData(false); 2255 2288 } 2256 2289 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r51187 r51395 248 248 void sltSwitchKeyboardLedsToPreviousLeds(); 249 249 250 /** Show Global Preferences. */ 251 void sltShowGlobalPreferences(); 252 250 253 private: 254 255 /** Show Global Preferences on the page defined by @a strCategory and tab defined by @a strControl. */ 256 void showGlobalPreferences(const QString &strCategory = QString(), const QString &strControl = QString()); 251 257 252 258 /* Helpers: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r51392 r51395 699 699 } 700 700 701 void UISession::sltOpenGlobalPreferences()702 {703 /* Check that we do NOT handling that already: */704 if (gActionPool->action(UIActionIndex_Simple_Preferences)->data().toBool())705 return;706 /* Remember that we handling that already: */707 gActionPool->action(UIActionIndex_Simple_Preferences)->setData(true);708 709 /* Create and execute global settings window: */710 QPointer<UISettingsDialogGlobal> pDialog = new UISettingsDialogGlobal(machineLogic()->activeMachineWindow());711 pDialog->execute();712 if (pDialog)713 delete pDialog;714 715 /* Remember that we do NOT handling that already: */716 gActionPool->action(UIActionIndex_Simple_Preferences)->setData(false);717 }718 719 701 void UISession::sltMousePointerShapeChange(bool fVisible, bool fAlpha, QPoint hotCorner, QSize size, QVector<uint8_t> shape) 720 702 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r51392 r51395 284 284 void sltCloseRuntimeUI(); 285 285 286 /** Open global preferences. */287 void sltOpenGlobalPreferences();288 289 286 /* Console events slots */ 290 287 void sltMousePointerShapeChange(bool fVisible, bool fAlpha, QPoint hotCorner, QSize size, QVector<uint8_t> shape);
Note:
See TracChangeset
for help on using the changeset viewer.