Changeset 52275 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 5, 2014 1:57:21 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r52236 r52275 611 611 } 612 612 613 void UIMachineLogic::sltHostScreenCountChange d()613 void UIMachineLogic::sltHostScreenCountChange() 614 614 { 615 615 LogRel(("UIMachineLogic: Host-screen count changed.\n")); … … 620 620 } 621 621 622 void UIMachineLogic::sltHostScreenGeometryChange d()622 void UIMachineLogic::sltHostScreenGeometryChange() 623 623 { 624 624 LogRel(("UIMachineLogic: Host-screen geometry changed.\n")); 625 626 /* Make sure all machine-window(s) have proper geometry: */ 627 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 628 pMachineWindow->showInNecessaryMode(); 629 } 630 631 void UIMachineLogic::sltHostScreenAvailableAreaChange() 632 { 633 LogRel(("UIMachineLogic: Host-screen available-area changed.\n")); 625 634 626 635 /* Make sure all machine-window(s) have proper geometry: */ … … 805 814 806 815 /* Host-screen-change updaters: */ 807 connect(uisession(), SIGNAL(sigHostScreenCountChanged()), this, SLOT(sltHostScreenCountChanged())); 808 connect(uisession(), SIGNAL(sigHostScreenGeometryChanged()), this, SLOT(sltHostScreenGeometryChanged())); 816 connect(uisession(), SIGNAL(sigHostScreenCountChange()), this, SLOT(sltHostScreenCountChange())); 817 connect(uisession(), SIGNAL(sigHostScreenGeometryChange()), this, SLOT(sltHostScreenGeometryChange())); 818 connect(uisession(), SIGNAL(sigHostScreenAvailableAreaChange()), this, SLOT(sltHostScreenAvailableAreaChange())); 809 819 810 820 /* Frame-buffer connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r52236 r52275 135 135 virtual void sltShowWindows(); 136 136 #endif /* RT_OS_DARWIN */ 137 /** Handles guest-screen count change. */ 137 138 virtual void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 138 139 139 /* Qt callback handler: */ 140 virtual void sltHostScreenCountChanged(); 141 virtual void sltHostScreenGeometryChanged(); 140 /** Handles host-screen count change. */ 141 virtual void sltHostScreenCountChange(); 142 /** Handles host-screen geometry change. */ 143 virtual void sltHostScreenGeometryChange(); 144 /** Handles host-screen available-area change. */ 145 virtual void sltHostScreenAvailableAreaChange(); 142 146 143 147 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r52239 r52275 885 885 886 886 /* Notify current machine-logic: */ 887 emit sigHostScreenCountChange d();887 emit sigHostScreenCountChange(); 888 888 } 889 889 … … 896 896 897 897 /* Notify current machine-logic: */ 898 emit sigHostScreenGeometryChanged(); 898 emit sigHostScreenGeometryChange(); 899 } 900 901 void UISession::sltHandleHostScreenAvailableAreaChange() 902 { 903 LogRelFlow(("UISession: Host-screen available-area changed.\n")); 904 905 /* Notify current machine-logic: */ 906 emit sigHostScreenAvailableAreaChange(); 899 907 } 900 908 … … 1084 1092 this, SLOT(sltHandleHostScreenGeometryChange())); 1085 1093 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), 1086 this, SLOT(sltHandleHostScreen GeometryChange()));1094 this, SLOT(sltHandleHostScreenAvailableAreaChange())); 1087 1095 #endif /* !Q_WS_MAC */ 1088 1096 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r52239 r52275 251 251 void sigGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 252 252 253 /* Notifiers: Qt callback stuff: */ 254 void sigHostScreenCountChanged(); 255 void sigHostScreenGeometryChanged(); 253 /** Notifies about host-screen count change. */ 254 void sigHostScreenCountChange(); 255 /** Notifies about host-screen geometry change. */ 256 void sigHostScreenGeometryChange(); 257 /** Notifies about host-screen available-area change. */ 258 void sigHostScreenAvailableAreaChange(); 256 259 257 260 /* Session signals: */ … … 291 294 void sltCheckIfHostDisplayChanged(); 292 295 #endif /* RT_OS_DARWIN */ 296 297 /** Handles host-screen count change. */ 293 298 void sltHandleHostScreenCountChange(); 299 /** Handles host-screen geometry change. */ 294 300 void sltHandleHostScreenGeometryChange(); 301 /** Handles host-screen available-area change. */ 302 void sltHandleHostScreenAvailableAreaChange(); 295 303 296 304 private: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52239 r52275 402 402 void UIMachineLogicFullscreen::sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo) 403 403 { 404 LogRel(("UIMachineLogicFullscreen: :sltGuestMonitorChange:Guest-screen count changed.\n"));404 LogRel(("UIMachineLogicFullscreen: Guest-screen count changed.\n")); 405 405 406 406 /* Update multi-screen layout before any window update: */ … … 421 421 } 422 422 423 void UIMachineLogicFullscreen::sltHostScreenCountChange d()424 { 425 LogRel(("UIMachineLogicFullscreen: :sltHostScreenCountChanged:Host-screen count changed.\n"));423 void UIMachineLogicFullscreen::sltHostScreenCountChange() 424 { 425 LogRel(("UIMachineLogicFullscreen: Host-screen count changed.\n")); 426 426 427 427 /* Update multi-screen layout before any window update: */ … … 431 431 /* Call to base-class for Lion and previous: */ 432 432 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) 433 UIMachineLogic::sltHostScreenCountChange d();433 UIMachineLogic::sltHostScreenCountChange(); 434 434 /* Revalidate 'fullscreen' windows for ML and next: */ 435 435 else revalidateNativeFullScreen(); 436 436 #else /* !Q_WS_MAC */ 437 437 /* Call to base-class: */ 438 UIMachineLogic::sltHostScreenCountChange d();438 UIMachineLogic::sltHostScreenCountChange(); 439 439 #endif /* !Q_WS_MAC */ 440 } 441 442 void UIMachineLogicFullscreen::sltHostScreenAvailableAreaChange() 443 { 444 LogRel(("UIMachineLogicFullscreen: Host-screen available-area change ignored.\n")); 440 445 } 441 446 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r52184 r52275 94 94 void sltScreenLayoutChanged(); 95 95 96 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 97 void sltHostScreenCountChanged(); 96 /** Handles guest-screen count change. */ 97 virtual void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 98 /** Handles host-screen count change. */ 99 virtual void sltHostScreenCountChange(); 100 /** Handles host-screen available-area change. */ 101 virtual void sltHostScreenAvailableAreaChange(); 98 102 99 103 private: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r52239 r52275 176 176 void UIMachineLogicSeamless::sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo) 177 177 { 178 LogRel Flow(("UIMachineLogicSeamless: Guest-screen count changed.\n"));178 LogRel(("UIMachineLogicSeamless: Guest-screen count changed.\n")); 179 179 180 180 /* Update multi-screen layout before any window update: */ … … 187 187 } 188 188 189 void UIMachineLogicSeamless::sltHostScreenCountChange d()190 { 191 LogRel Flow(("UIMachineLogicSeamless: Host-screen count changed.\n"));189 void UIMachineLogicSeamless::sltHostScreenCountChange() 190 { 191 LogRel(("UIMachineLogicSeamless: Host-screen count changed.\n")); 192 192 193 193 /* Update multi-screen layout before any window update: */ … … 195 195 196 196 /* Call to base-class: */ 197 UIMachineLogic::sltHostScreenCountChange d();197 UIMachineLogic::sltHostScreenCountChange(); 198 198 } 199 199 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h
r52184 r52275 57 57 void sltScreenLayoutChanged(); 58 58 59 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 60 void sltHostScreenCountChanged(); 59 /** Handles guest-screen count change. */ 60 virtual void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 61 /** Handles host-screen count change. */ 62 virtual void sltHostScreenCountChange(); 61 63 62 64 #ifndef RT_OS_DARWIN
Note:
See TracChangeset
for help on using the changeset viewer.