Changeset 52343 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 11, 2014 3:15:27 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r52239 r52343 1278 1278 if (m_pMultiScreenLayout) 1279 1279 { 1280 disconnect(this, SIGNAL(sigNotifyAboutTriggeringView Multiscreen(int, int)),1280 disconnect(this, SIGNAL(sigNotifyAboutTriggeringViewScreenRemap(int, int)), 1281 1281 m_pMultiScreenLayout, SLOT(sltHandleScreenLayoutChange(int, int))); 1282 1282 disconnect(m_pMultiScreenLayout, SIGNAL(sigScreenLayoutUpdate()), … … 1290 1290 if (m_pMultiScreenLayout) 1291 1291 { 1292 connect(this, SIGNAL(sigNotifyAboutTriggeringView Multiscreen(int, int)),1292 connect(this, SIGNAL(sigNotifyAboutTriggeringViewScreenRemap(int, int)), 1293 1293 m_pMultiScreenLayout, SLOT(sltHandleScreenLayoutChange(int, int))); 1294 1294 connect(m_pMultiScreenLayout, SIGNAL(sigScreenLayoutUpdate()), … … 1372 1372 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1373 1373 1374 void UIActionPoolRuntime::sltPrepareMenuView Resize()1374 void UIActionPoolRuntime::sltPrepareMenuViewScreen() 1375 1375 { 1376 1376 /* Make sure sender is valid: */ … … 1379 1379 1380 1380 /* Call to corresponding handler: */ 1381 updateMenuView Resize(pMenu);1381 updateMenuViewScreen(pMenu); 1382 1382 } 1383 1383 … … 1392 1392 } 1393 1393 1394 void UIActionPoolRuntime::sltHandleActionTriggerView Resize(QAction *pAction)1394 void UIActionPoolRuntime::sltHandleActionTriggerViewScreenResize(QAction *pAction) 1395 1395 { 1396 1396 /* Make sure sender is valid: */ … … 1400 1400 const int iGuestScreenIndex = pAction->property("Guest Screen Index").toInt(); 1401 1401 const QSize size = pAction->property("Requested Size").toSize(); 1402 emit sigNotifyAboutTriggeringView Resize(iGuestScreenIndex, size);1403 } 1404 1405 void UIActionPoolRuntime::sltHandleActionTriggerView Multiscreen(QAction *pAction)1402 emit sigNotifyAboutTriggeringViewScreenResize(iGuestScreenIndex, size); 1403 } 1404 1405 void UIActionPoolRuntime::sltHandleActionTriggerViewScreenRemap(QAction *pAction) 1406 1406 { 1407 1407 /* Make sure sender is valid: */ … … 1411 1411 const int iGuestScreenIndex = pAction->property("Guest Screen Index").toInt(); 1412 1412 const int iHostScreenIndex = pAction->property("Host Screen Index").toInt(); 1413 emit sigNotifyAboutTriggeringView Multiscreen(iGuestScreenIndex, iHostScreenIndex);1413 emit sigNotifyAboutTriggeringViewScreenRemap(iGuestScreenIndex, iHostScreenIndex); 1414 1414 } 1415 1415 … … 1981 1981 "Virtual Screen %1").arg(iGuestScreenIndex + 1)); 1982 1982 pSubMenu->setProperty("Guest Screen Index", iGuestScreenIndex); 1983 connect(pSubMenu, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuView Resize()));1983 connect(pSubMenu, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuViewScreen())); 1984 1984 } 1985 1985 } … … 2051 2051 "Virtual Screen %1").arg(iGuestScreenIndex + 1)); 2052 2052 pSubMenu->setProperty("Guest Screen Index", iGuestScreenIndex); 2053 connect(pSubMenu, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuView Resize()));2053 connect(pSubMenu, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuViewScreen())); 2054 2054 } 2055 2055 } … … 2084 2084 } 2085 2085 2086 void UIActionPoolRuntime::updateMenuView Resize(QMenu *pMenu)2086 void UIActionPoolRuntime::updateMenuViewScreen(QMenu *pMenu) 2087 2087 { 2088 2088 /* Make sure UI session defined: */ … … 2111 2111 const QSize screenSize = QSize(pFrameBuffer->width(), pFrameBuffer->height()); 2112 2112 2113 /* Create exclusive action-group: */2113 /* Create exclusive 'resize' action-group: */ 2114 2114 QActionGroup *pActionGroup = new QActionGroup(pMenu); 2115 2115 AssertPtrReturnVoid(pActionGroup); 2116 2116 { 2117 /* Configure exclusive action-group: */2117 /* Configure exclusive 'resize' action-group: */ 2118 2118 pActionGroup->setExclusive(true); 2119 2119 /* For every available size: */ 2120 2120 foreach (const QSize &size, sizes) 2121 2121 { 2122 /* Create exclusive action: */2122 /* Create exclusive 'resize' action: */ 2123 2123 QAction *pAction = pActionGroup->addAction(UIActionPoolRuntime::tr("Resize to %1x%2", "Virtual Screen") 2124 2124 .arg(size.width()).arg(size.height())); 2125 2125 AssertPtrReturnVoid(pAction); 2126 2126 { 2127 /* Configure exclusive action: */2127 /* Configure exclusive 'resize' action: */ 2128 2128 pAction->setEnabled(session()->isGuestSupportsGraphics()); 2129 2129 pAction->setProperty("Guest Screen Index", iGuestScreenIndex); … … 2141 2141 /* Install listener for exclusive action-group: */ 2142 2142 connect(pActionGroup, SIGNAL(triggered(QAction*)), 2143 this, SLOT(sltHandleActionTriggerView Resize(QAction*)));2143 this, SLOT(sltHandleActionTriggerViewScreenResize(QAction*))); 2144 2144 } 2145 2145 } … … 2180 2180 /* Install listener for exclusive action-group: */ 2181 2181 connect(pActionGroup, SIGNAL(triggered(QAction*)), 2182 this, SLOT(sltHandleActionTriggerView Multiscreen(QAction*)));2182 this, SLOT(sltHandleActionTriggerViewScreenRemap(QAction*))); 2183 2183 } 2184 2184 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h
r52239 r52343 121 121 signals: 122 122 123 /** Notifies about 'View' : ' Resize' menuaction trigger. */124 void sigNotifyAboutTriggeringView Resize(int iGuestScreenIndex, const QSize &size);125 /** Notifies about 'View' : ' Multiscreen' menuaction trigger. */126 void sigNotifyAboutTriggeringView Multiscreen(int iGuestScreenIndex, int iHostScreenIndex);123 /** Notifies about 'View' : 'Virtual Screen #' menu : 'Resize' action trigger. */ 124 void sigNotifyAboutTriggeringViewScreenResize(int iGuestScreenIndex, const QSize &size); 125 /** Notifies about 'View' : 'Virtual Screen #' menu : 'Remap' action trigger. */ 126 void sigNotifyAboutTriggeringViewScreenRemap(int iGuestScreenIndex, int iHostScreenIndex); 127 127 128 128 public: … … 169 169 protected slots: 170 170 171 /** Prepare 'View' : ' Resize' menu routine. */172 void sltPrepareMenuView Resize();173 /** Prepare 'View' : ' Multiscreen' menu routine. */171 /** Prepare 'View' : 'Virtual Screen #' menu routine (Normal, Scale). */ 172 void sltPrepareMenuViewScreen(); 173 /** Prepare 'View' : 'Virtual Screen #' menu routine (Fullscreen, Seamless). */ 174 174 void sltPrepareMenuViewMultiscreen(); 175 175 176 /** Handles 'View' : ' Resize' menu@a pAction trigger. */177 void sltHandleActionTriggerView Resize(QAction *pAction);178 /** Handles 'View' : ' Multiscreen' menu@a pAction trigger. */179 void sltHandleActionTriggerView Multiscreen(QAction *pAction);176 /** Handles 'View' : 'Virtual Screen #' menu : 'Resize' @a pAction trigger. */ 177 void sltHandleActionTriggerViewScreenResize(QAction *pAction); 178 /** Handles 'View' : 'Virtual Screen #' menu : 'Remap' @a pAction trigger. */ 179 void sltHandleActionTriggerViewScreenRemap(QAction *pAction); 180 180 181 181 /** Handles screen-layout update. */ … … 213 213 /** Update 'View' : 'Status Bar' menu routine. */ 214 214 void updateMenuViewStatusBar(); 215 /** Update 'View' : ' Resize' @a pMenu routine. */216 void updateMenuView Resize(QMenu *pMenu);217 /** Update 'View' : ' Multiscreen' @a pMenu routine. */215 /** Update 'View' : 'Virtual Screen #' @a pMenu routine (Normal, Scale). */ 216 void updateMenuViewScreen(QMenu *pMenu); 217 /** Update 'View' : 'Virtual Screen #' @a pMenu routine (Fullscreen, Seamless). */ 218 218 void updateMenuViewMultiscreen(QMenu *pMenu); 219 219 /** Update 'Devices' menu routine. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r52236 r52343 124 124 } 125 125 126 void UIMachineLogicNormal::sltHandleActionTriggerView Resize(int iIndex, const QSize &size)126 void UIMachineLogicNormal::sltHandleActionTriggerViewScreenResize(int iIndex, const QSize &size) 127 127 { 128 128 /* Resize guest to required size: */ … … 148 148 connect(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility), SIGNAL(triggered(bool)), 149 149 this, SLOT(sltToggleStatusBar())); 150 connect(actionPool(), SIGNAL(sigNotifyAboutTriggeringView Resize(int, const QSize&)),151 this, SLOT(sltHandleActionTriggerView Resize(int, const QSize&)));150 connect(actionPool(), SIGNAL(sigNotifyAboutTriggeringViewScreenResize(int, const QSize&)), 151 this, SLOT(sltHandleActionTriggerViewScreenResize(int, const QSize&))); 152 152 } 153 153 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.h
r52298 r52343 46 46 void sltStatusBarSettingsClosed(); 47 47 void sltToggleStatusBar(); 48 void sltHandleActionTriggerView Resize(int iIndex, const QSize &size);48 void sltHandleActionTriggerViewScreenResize(int iIndex, const QSize &size); 49 49 50 50 private:
Note:
See TracChangeset
for help on using the changeset viewer.