Changeset 47103 in vbox for trunk/src/VBox
- Timestamp:
- Jul 11, 2013 3:52:27 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r47091 r47103 272 272 pPopupStack->hide(); 273 273 unassignPopupStackParent(pPopupStack, pParent); 274 } 275 276 void UIPopupCenter::raisePopupStack(QWidget *pParent) 277 { 278 /* Make sure passed parent is valid: */ 279 if (!pParent) 280 { 281 AssertMsgFailed(("Passed parent is NULL")); 282 return; 283 } 284 285 /* Do we have a stack for passed parent? */ 286 const QString strPopupStackID(popupStackID(pParent)); 287 if (!m_stacks.contains(strPopupStackID)) 288 return; 289 290 /* Just raise, its: 291 * useful for Win host, 292 * do not work on Mac host and 293 * need to check for x11/KDE still. */ 294 UIPopupStack *pPopupStack = m_stacks[strPopupStackID]; 295 pPopupStack->raise(); 274 296 } 275 297 … … 346 368 } 347 369 370 void UIPopupCenter::sltRaisePopupStack() 371 { 372 raisePopupStack(vboxGlobal().activeMachineWindow()); 373 } 374 348 375 void UIPopupCenter::sltRemovePopupStack() 349 376 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h
r47091 r47103 111 111 void sltShowPopupStack(); 112 112 void sltHidePopupStack(); 113 void sltRaisePopupStack(); 113 114 void sltRemovePopupStack(); 114 115 … … 133 134 void showPopupStack(QWidget *pParent); 134 135 void hidePopupStack(QWidget *pParent); 136 void raisePopupStack(QWidget *pParent); 135 137 void assignPopupStackParent(UIPopupStack *pPopupStack, QWidget *pParent); 136 138 void unassignPopupStackParent(UIPopupStack *pPopupStack, QWidget *pParent); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r47073 r47103 347 347 { 348 348 case VBOX3D_NOTIFY_EVENT_TYPE_VISIBLE_WINDOW: 349 { 349 350 if (pReserved) 350 351 return E_INVALIDARG; 351 352 352 /* @todo: submit asynchronous event to GUI thread */ 353 return E_NOTIMPL; 353 /* Notify GUI about 3D event: */ 354 emit sigNotify3DEvent(); 355 356 return S_OK; 357 } 354 358 default: 355 359 return E_INVALIDARG; … … 423 427 m_pMachineView, SLOT(sltHandleSetVisibleRegion(QRegion)), 424 428 Qt::QueuedConnection); 429 connect(this, SIGNAL(sigNotify3DEvent()), 430 m_pMachineView, SLOT(sltNotify3DEvent()), 431 Qt::QueuedConnection); 425 432 } 426 433 … … 433 440 disconnect(this, SIGNAL(sigSetVisibleRegion(QRegion)), 434 441 m_pMachineView, SLOT(sltHandleSetVisibleRegion(QRegion))); 435 } 436 442 disconnect(this, SIGNAL(sigNotify3DEvent()), 443 m_pMachineView, SLOT(sltNotify3DEvent())); 444 } 445 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r47067 r47103 99 99 void sigNotifyUpdate(int iX, int iY, int iWidth, int iHeight); 100 100 void sigSetVisibleRegion(QRegion region); 101 void sigNotify3DEvent(); 101 102 102 103 public: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r47101 r47103 351 351 } 352 352 353 void UIMachineLogic::notifyAbout3DEvent() 354 { 355 /* Notify listener about 3D event: */ 356 emit sigNotify3DEvent(); 357 } 358 353 359 void UIMachineLogic::sltMachineStateChanged() 354 360 { … … 539 545 connect(this, SIGNAL(sigMachineWindowsDestroyed()), 540 546 &popupCenter(), SLOT(sltHidePopupStack())); 547 connect(this, SIGNAL(sigNotify3DEvent()), 548 &popupCenter(), SLOT(sltRaisePopupStack())); 541 549 } 542 550 … … 548 556 disconnect(this, SIGNAL(sigMachineWindowsDestroyed()), 549 557 &popupCenter(), SLOT(sltHidePopupStack())); 558 disconnect(this, SIGNAL(sigNotify3DEvent()), 559 &popupCenter(), SLOT(sltRaisePopupStack())); 550 560 } 551 561 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r46976 r47103 58 58 void sigMachineWindowsCreated(); 59 59 void sigMachineWindowsDestroyed(); 60 void sigNotify3DEvent(); 60 61 61 62 public: … … 99 100 void shutdown(); 100 101 void powerOff(bool fDiscardingState); 102 103 /* API: 3D event stuff: */ 104 void notifyAbout3DEvent(); 101 105 102 106 protected slots: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r46538 r47103 289 289 /* Used only in seamless-mode. */ 290 290 Q_UNUSED(region); 291 } 292 293 void UIMachineView::sltNotify3DEvent() 294 { 295 machineLogic()->notifyAbout3DEvent(); 291 296 } 292 297 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r46364 r47103 102 102 /* Handler: Frame-buffer SetVisibleRegion stuff: */ 103 103 virtual void sltHandleSetVisibleRegion(QRegion region); 104 105 /* Handler: Frame-buffer Notify3DEvent stuff: */ 106 virtual void sltNotify3DEvent(); 104 107 105 108 /* Watch dog for desktop resizes: */
Note:
See TracChangeset
for help on using the changeset viewer.