Changeset 44865 in vbox
- Timestamp:
- Feb 28, 2013 12:23:20 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r44841 r44865 440 440 /* Deliver event to corresponding machine-window: */ 441 441 if (uScreenId < (ulong)machineWindows().size()) 442 machineWindows()[uScreenId]->handleGuestMonitorChange(); 442 machineWindows()[uScreenId]->handleScreenCountChange(); 443 } 444 445 void UIMachineLogic::sltHostScreenCountChanged(int /*cHostScreenCount*/) 446 { 447 /* Deliver event to all machine-windows: */ 448 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 449 pMachineWindow->handleScreenCountChange(); 443 450 } 444 451 … … 571 578 #endif /* Q_WS_MAC */ 572 579 573 /* Guest 580 /* Guest-monitor-change updater: */ 574 581 connect(uisession(), SIGNAL(sigGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect)), 575 582 this, SLOT(sltGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect))); 583 584 /* Host-screen-change updater: */ 585 connect(uisession(), SIGNAL(sigHostScreenCountChanged(int)), 586 this, SLOT(sltHostScreenCountChanged(int))); 576 587 } 577 588 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r44827 r44865 98 98 #endif /* RT_OS_DARWIN */ 99 99 virtual void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 100 101 /* Qt callback handler: */ 102 virtual void sltHostScreenCountChanged(int cHostScreenCount); 100 103 101 104 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r44827 r44865 605 605 } 606 606 607 void UIMachineWindow::handle GuestMonitorChange()607 void UIMachineWindow::handleScreenCountChange() 608 608 { 609 609 showInNecessaryMode(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r44859 r44865 105 105 106 106 /* Visibility stuff: */ 107 void handle GuestMonitorChange();107 void handleScreenCountChange(); 108 108 109 109 /* Update stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r44841 r44865 20 20 /* Qt includes: */ 21 21 #include <QApplication> 22 #include <QDesktopWidget> 22 23 #include <QWidget> 23 24 #include <QTimer> … … 104 105 , m_fIsHidingHostPointer(true) 105 106 { 107 /* Prepare connections: */ 108 prepareConnections(); 109 106 110 /* Prepare console event-handlers: */ 107 111 prepareConsoleEventHandlers(); … … 721 725 } 722 726 727 void UISession::prepareConnections() 728 { 729 connect(QApplication::desktop(), SIGNAL(screenCountChanged(int)), 730 this, SIGNAL(sigHostScreenCountChanged(int))); 731 } 732 723 733 void UISession::prepareScreens() 724 734 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r44841 r44865 184 184 void sigGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 185 185 186 /* Qt callback signal: */ 187 void sigHostScreenCountChanged(int cHostScreenCount); 188 186 189 /* Session signals: */ 187 190 void sigMachineStarted(); … … 211 214 212 215 /* Prepare helpers: */ 216 void prepareConnections(); 213 217 void prepareConsoleEventHandlers(); 214 218 void prepareScreens(); … … 221 225 void cleanupMenuPool(); 222 226 void cleanupFramebuffers(); 223 //void cleanupS ession() {}227 //void cleanupScreens() {} 224 228 void cleanupConsoleEventHandlers(); 229 //void cleanupConnections() {} 225 230 226 231 /* Common helpers: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r44861 r44865 134 134 /* Call to base-class: */ 135 135 UIMachineLogic::sltGuestMonitorChange(changeType, uScreenId, screenGeo); 136 } 137 138 void UIMachineLogicFullscreen::sltHostScreenCountChanged(int cScreenCount) 139 { 140 /* Update multi-screen layout before any window update: */ 141 m_pScreenLayout->rebuild(); 142 143 /* Call to base-class: */ 144 UIMachineLogic::sltHostScreenCountChanged(cScreenCount); 136 145 } 137 146 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r44859 r44865 54 54 #endif /* Q_WS_MAC */ 55 55 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 56 void sltHostScreenCountChanged(int cScreenCount); 56 57 57 58 private: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r44861 r44865 110 110 } 111 111 112 void UIMachineLogicSeamless::sltHostScreenCountChanged(int cScreenCount) 113 { 114 /* Update multi-screen layout before any window update: */ 115 m_pScreenLayout->rebuild(); 116 117 /* Call to base-class: */ 118 UIMachineLogic::sltHostScreenCountChanged(cScreenCount); 119 } 120 112 121 void UIMachineLogicSeamless::prepareActionGroups() 113 122 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h
r44859 r44865 47 47 48 48 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 49 void sltHostScreenCountChanged(int cScreenCount); 49 50 50 51 private:
Note:
See TracChangeset
for help on using the changeset viewer.