Changeset 47493 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 31, 2013 2:39:13 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
r47455 r47493 303 303 } 304 304 305 void UIPopupCenter::r aisePopupStack(QWidget *pParent)305 void UIPopupCenter::reinstallPopupStack(QWidget *pParent, bool fAsTopLevel) 306 306 { 307 307 /* Make sure passed parent is valid: */ 308 308 if (!pParent) 309 { 310 AssertMsgFailed(("Passed parent is NULL")); 311 return; 312 } 309 return; 313 310 314 311 /* Do we have a stack for passed parent? */ … … 317 314 return; 318 315 316 /* Make sure we should really reinstall stack: */ 317 if ((fAsTopLevel && m_type == UIPopupIntegrationType_Toplevel) || 318 (!fAsTopLevel && m_type == UIPopupIntegrationType_Embedded)) 319 return; 320 321 LogRelFlow(("UIPopupCenter::reinstallPopupStack: Reinstalling popup-stack as %s.\n", 322 fAsTopLevel ? "top level window" : "embedded widget")); 323 319 324 /* Remove stack: */ 320 325 hidePopupStack(pParent); 321 326 322 327 /* Make sure integration type is correct: */ 323 setStackIntegrationType( UIPopupIntegrationType_Toplevel);328 setStackIntegrationType(fAsTopLevel ? UIPopupIntegrationType_Toplevel : UIPopupIntegrationType_Embedded); 324 329 325 330 /* Return stack again: */ … … 389 394 } 390 395 391 void UIPopupCenter::sltR aisePopupStack()392 { 393 r aisePopupStack(vboxGlobal().activeMachineWindow());396 void UIPopupCenter::sltReinstallPopupStack(bool fAsTopLevel) 397 { 398 reinstallPopupStack(vboxGlobal().activeMachineWindow(), fAsTopLevel); 394 399 } 395 400 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h
r47210 r47493 116 116 void sltShowPopupStack(); 117 117 void sltHidePopupStack(); 118 void sltR aisePopupStack();118 void sltReinstallPopupStack(bool fAsTopLevel); 119 119 void sltRemovePopupStack(); 120 120 … … 140 140 void showPopupStack(QWidget *pParent); 141 141 void hidePopupStack(QWidget *pParent); 142 void r aisePopupStack(QWidget *pParent);142 void reinstallPopupStack(QWidget *pParent, bool fAsTopLevel); 143 143 void assignPopupStackParent(UIPopupStack *pPopupStack, QWidget *pParent); 144 144 void unassignPopupStackParent(UIPopupStack *pPopupStack, QWidget *pParent); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r47485 r47493 348 348 case VBOX3D_NOTIFY_EVENT_TYPE_VISIBLE_3DDATA: 349 349 { 350 /* Notify GUI about 3D overlay visibility change: */ 350 351 BOOL fVisible = !!pData; 351 352 /* @todo: implement 3D visibility handling */ 353 // /* Notify GUI about 3D event: */ 354 // emit sigNotify3DEvent(); 355 352 LogRelFlow(("UIFrameBuffer::Notify3DEvent: " 353 "VBOX3D_NOTIFY_EVENT_TYPE_VISIBLE_3DDATA=%s\n", 354 fVisible ? "TRUE" : "FALSE")); 355 emit sigNotifyAbout3DOverlayVisibilityChange(fVisible); 356 356 return S_OK; 357 357 } … … 427 427 m_pMachineView, SLOT(sltHandleSetVisibleRegion(QRegion)), 428 428 Qt::QueuedConnection); 429 connect(this, SIGNAL(sigNotify 3DEvent()),430 m_pMachineView, SLOT(slt Notify3DEvent()),429 connect(this, SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 430 m_pMachineView, SLOT(sltHandle3DOverlayVisibilityChange(bool)), 431 431 Qt::QueuedConnection); 432 432 } … … 440 440 disconnect(this, SIGNAL(sigSetVisibleRegion(QRegion)), 441 441 m_pMachineView, SLOT(sltHandleSetVisibleRegion(QRegion))); 442 disconnect(this, SIGNAL(sigNotify 3DEvent()),443 m_pMachineView, SLOT(slt Notify3DEvent()));444 } 445 442 disconnect(this, SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 443 m_pMachineView, SLOT(sltHandle3DOverlayVisibilityChange(bool))); 444 } 445 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r47485 r47493 99 99 void sigNotifyUpdate(int iX, int iY, int iWidth, int iHeight); 100 100 void sigSetVisibleRegion(QRegion region); 101 void sigNotify 3DEvent();101 void sigNotifyAbout3DOverlayVisibilityChange(bool fVisible); 102 102 103 103 public: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r47478 r47493 351 351 } 352 352 353 void UIMachineLogic::notifyAbout3D Event()354 { 355 /* Notify listener about 3D event: */356 emit sigNotify 3DEvent();353 void UIMachineLogic::notifyAbout3DOverlayVisibilityChange(bool fVisible) 354 { 355 /* Notify listener about 3D overlay visibility change: */ 356 emit sigNotifyAbout3DOverlayVisibilityChange(fVisible); 357 357 } 358 358 … … 549 549 connect(this, SIGNAL(sigMachineWindowsDestroyed()), 550 550 &popupCenter(), SLOT(sltHidePopupStack())); 551 connect(this, SIGNAL(sigNotify 3DEvent()),552 &popupCenter(), SLOT(sltR aisePopupStack()));551 connect(this, SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 552 &popupCenter(), SLOT(sltReinstallPopupStack(bool))); 553 553 } 554 554 … … 560 560 disconnect(this, SIGNAL(sigMachineWindowsDestroyed()), 561 561 &popupCenter(), SLOT(sltHidePopupStack())); 562 disconnect(this, SIGNAL(sigNotify 3DEvent()),563 &popupCenter(), SLOT(sltR aisePopupStack()));562 disconnect(this, SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 563 &popupCenter(), SLOT(sltReinstallPopupStack(bool))); 564 564 } 565 565 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r47478 r47493 58 58 void sigMachineWindowsCreated(); 59 59 void sigMachineWindowsDestroyed(); 60 void sigNotify 3DEvent();60 void sigNotifyAbout3DOverlayVisibilityChange(bool fVisible); 61 61 62 62 public: … … 101 101 void powerOff(bool fDiscardingState); 102 102 103 /* API: 3D eventstuff: */104 void notifyAbout3D Event();103 /* API: 3D overlay visibility stuff: */ 104 void notifyAbout3DOverlayVisibilityChange(bool fVisible); 105 105 106 106 protected slots: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r47396 r47493 293 293 } 294 294 295 void UIMachineView::slt Notify3DEvent()296 { 297 machineLogic()->notifyAbout3D Event();295 void UIMachineView::sltHandle3DOverlayVisibilityChange(bool fVisible) 296 { 297 machineLogic()->notifyAbout3DOverlayVisibilityChange(fVisible); 298 298 } 299 299 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r47103 r47493 103 103 virtual void sltHandleSetVisibleRegion(QRegion region); 104 104 105 /* Handler: Frame-buffer Notify3DEventstuff: */106 virtual void slt Notify3DEvent();105 /* Handler: Frame-buffer 3D overlay visibility stuff: */ 106 virtual void sltHandle3DOverlayVisibilityChange(bool fVisible); 107 107 108 108 /* Watch dog for desktop resizes: */
Note:
See TracChangeset
for help on using the changeset viewer.