Changeset 51595 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 10, 2014 5:06:58 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51591 r51595 405 405 bool UIExtraDataManager::selectorWindowToolBarVisible() const 406 406 { 407 /* Showunless feature restricted: */407 /* 'True' unless feature restricted: */ 408 408 return !isFeatureRestricted(GUI_Toolbar); 409 409 } … … 417 417 bool UIExtraDataManager::selectorWindowStatusBarVisible() const 418 418 { 419 /* Showunless feature restricted: */419 /* 'True' unless feature restricted: */ 420 420 return !isFeatureRestricted(GUI_Statusbar); 421 421 } … … 941 941 { 942 942 return gpConverter->fromInternalString<HiDPIOptimizationType>(extraDataString(GUI_HiDPI_Optimization, strID)); 943 } 944 945 bool UIExtraDataManager::passCADtoGuest(const QString &strID) const 946 { 947 /* 'False' unless feature allowed: */ 948 return isFeatureAllowed(GUI_PassCAD, strID); 943 949 } 944 950 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51588 r51595 271 271 HiDPIOptimizationType hiDPIOptimizationType(const QString &strID) const; 272 272 273 /** Returns whether VM should pass CAD to guest. */ 274 bool passCADtoGuest(const QString &strID) const; 275 273 276 private slots: 274 277 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r51439 r51595 39 39 #include "UIMachineView.h" 40 40 #include "UIHostComboEditor.h" 41 #include "UIExtraDataManager.h" 41 42 42 43 /* Other VBox includes: */ … … 762 763 , m_bIsHostComboAlone(false) 763 764 , m_bIsHostComboProcessed(false) 764 , m_fPassCAD (false)765 , m_fPassCADtoGuest(false) 765 766 , m_fDebuggerActive(false) 766 767 #if defined(Q_WS_WIN) … … 810 811 /* Extra data settings: */ 811 812 { 812 /* CAD settings: */ 813 QString passCAD = session().GetConsole().GetMachine().GetExtraData(GUI_PassCAD); 814 if (!passCAD.isEmpty() && passCAD != "false" && passCAD != "no") 815 m_fPassCAD = true; 813 /* CAD setting: */ 814 m_fPassCADtoGuest = gEDataManager->passCADtoGuest(vboxGlobal().managedVMUuid()); 816 815 } 817 816 } … … 1228 1227 bool UIKeyboardHandler::keyEventCADHandled(uint8_t uScan) 1229 1228 { 1230 /* Check if it's C-A-D and GUI/PassCAD is not true: */1231 if (!m_fPassCAD &&1229 /* Check if it's C-A-D and GUI/PassCAD is not set/allowed: */ 1230 if (!m_fPassCADtoGuest && 1232 1231 uScan == 0x53 /* Del */ && 1233 1232 ((m_pressedKeys[0x38] & IsKeyPressed) /* Alt */ || -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h
r51187 r51595 172 172 bool m_bIsHostComboAlone : 1; 173 173 bool m_bIsHostComboProcessed : 1; 174 bool m_fPassCAD : 1;174 bool m_fPassCADtoGuest : 1; 175 175 /** Whether the debugger is active. 176 176 * Currently only affects auto capturing. */
Note:
See TracChangeset
for help on using the changeset viewer.