Changeset 98039 in vbox
- Timestamp:
- Jan 10, 2023 4:09:45 PM (23 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp
r96407 r98039 82 82 return UIKeyboardHandler::eventFilter(pWatchedObject, pEvent); 83 83 } 84 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIKeyboardHandlerFullscreen.h
r96407 r98039 41 41 Q_OBJECT; 42 42 43 p rotected:43 public: 44 44 45 45 /** Fullscreen keyboard-handler constructor. */ … … 52 52 /** General event-filter. */ 53 53 bool eventFilter(QObject *pWatched, QEvent *pEvent); 54 55 /* Friend class: */56 friend class UIKeyboardHandler;57 54 }; 58 55 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r97682 r98039 70 70 } 71 71 72 int UIMachineLogicFullscreen::hostScreenForGuestScreen(int iScreenId) const 73 { 74 return m_pScreenLayout->hostScreenForGuestScreen(iScreenId); 75 } 76 77 bool UIMachineLogicFullscreen::hasHostScreenForGuestScreen(int iScreenId) const 78 { 79 return m_pScreenLayout->hasHostScreenForGuestScreen(iScreenId); 80 } 81 72 82 bool UIMachineLogicFullscreen::checkAvailability() 73 83 { … … 128 138 pMachineWindow->showInNecessaryMode(); 129 139 #endif /* !VBOX_WS_MAC */ 130 }131 132 int UIMachineLogicFullscreen::hostScreenForGuestScreen(int iScreenId) const133 {134 return m_pScreenLayout->hostScreenForGuestScreen(iScreenId);135 }136 137 bool UIMachineLogicFullscreen::hasHostScreenForGuestScreen(int iScreenId) const138 {139 return m_pScreenLayout->hasHostScreenForGuestScreen(iScreenId);140 140 } 141 141 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r96407 r98039 43 43 class UIMultiScreenLayout; 44 44 45 /* Fullscreen machine logic implementation:*/45 /** UIMachineLogic subclass used as full-screen machine logic implementation. */ 46 46 class UIMachineLogicFullscreen : public UIMachineLogic 47 47 { … … 57 57 #endif /* RT_OS_DARWIN */ 58 58 59 #ifdef VBOX_WS_MAC60 59 public: 61 60 61 /** Constructs full-screen logic passing @a pParent to the base-class. 62 * @param pSession Brings the session UI reference. */ 63 UIMachineLogicFullscreen(QObject *pParent, UISession *pSession); 64 /** Destructs full-screen logic. */ 65 virtual ~UIMachineLogicFullscreen() RT_OVERRIDE; 66 67 /** Returns an index of host-screen for guest-screen with @a iScreenId specified. */ 68 int hostScreenForGuestScreen(int iScreenId) const; 69 /** Returns whether there is a host-screen for guest-screen with @a iScreenId specified. */ 70 bool hasHostScreenForGuestScreen(int iScreenId) const; 71 72 #ifdef VBOX_WS_MAC 62 73 /** Returns whether screens have separate spaces. */ 63 74 bool screensHaveSeparateSpaces() const { return m_fScreensHaveSeparateSpaces; } … … 65 76 66 77 protected: 67 68 /* Constructor/destructor: */69 UIMachineLogicFullscreen(QObject *pParent, UISession *pSession);70 ~UIMachineLogicFullscreen();71 78 72 79 /* Check if this logic is available: */ … … 78 85 /** Adjusts machine-window geometry if necessary for 'Fullscreen'. */ 79 86 virtual void adjustMachineWindowsGeometry(); 80 81 /* Helpers: Multi-screen stuff: */82 int hostScreenForGuestScreen(int iScreenId) const;83 bool hasHostScreenForGuestScreen(int iScreenId) const;84 87 85 88 private slots: … … 172 175 QSet<UIMachineWindow*> m_invalidFullscreenMachineWindows; 173 176 #endif /* VBOX_WS_MAC */ 174 175 /* Friend classes: */176 friend class UIMachineLogic;177 friend class UIMachineWindowFullscreen;178 friend class UIMachineViewFullscreen;179 177 }; 180 178 181 179 #endif /* !FEQT_INCLUDED_SRC_runtime_fullscreen_UIMachineLogicFullscreen_h */ 182 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h
r97975 r98039 32 32 #endif 33 33 34 /* Local includes*/34 /* GUI includes: */ 35 35 #include "UIMachineView.h" 36 36 37 /** UIMachineView subclass used as full-screen machine view implementation. */ 37 38 class UIMachineViewFullscreen : public UIMachineView 38 39 { 39 40 Q_OBJECT; 40 41 41 p rotected:42 public: 42 43 43 44 /* Fullscreen machine-view constructor: */ … … 80 81 /* Private variables: */ 81 82 bool m_fGuestAutoresizeEnabled : 1; 82 83 /* Friend classes: */84 friend class UIMachineView;85 83 }; 86 84 87 85 #endif /* !FEQT_INCLUDED_SRC_runtime_fullscreen_UIMachineViewFullscreen_h */ 88 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r96407 r98039 40 40 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 41 41 42 /** UIMachineWindow reimplementation, 43 * providing GUI with machine-window for the full-screen mode. */ 42 /** UIMachineWindow subclass used as full-screen machine window implementation. */ 44 43 class UIMachineWindowFullscreen : public UIMachineWindow 45 44 { … … 60 59 #endif /* RT_OS_DARWIN */ 61 60 62 p rotected:61 public: 63 62 64 63 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ 65 64 UIMachineWindowFullscreen(UIMachineLogic *pMachineLogic, ulong uScreenId); 65 66 protected: 66 67 67 68 #ifdef VBOX_WS_MAC … … 159 160 bool m_fIsMinimized; 160 161 #endif 161 162 /** Factory support. */163 friend class UIMachineWindow;164 162 }; 165 163 166 164 #endif /* !FEQT_INCLUDED_SRC_runtime_fullscreen_UIMachineWindowFullscreen_h */ 167 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIKeyboardHandlerNormal.cpp
r96407 r98039 123 123 } 124 124 #endif /* !VBOX_WS_MAC */ 125 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIKeyboardHandlerNormal.h
r96407 r98039 41 41 Q_OBJECT; 42 42 43 p rotected:43 public: 44 44 45 45 /** Normal keyboard-handler constructor. */ … … 54 54 bool eventFilter(QObject *pWatched, QEvent *pEvent); 55 55 #endif /* !VBOX_WS_MAC */ 56 57 /* Friend class: */58 friend class UIKeyboardHandler;59 56 }; 60 57 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.h
r96407 r98039 32 32 #endif 33 33 34 /* Localincludes: */34 /* GUI includes: */ 35 35 #include "UIMachineLogic.h" 36 36 37 /* Normal machine logic implementation:*/37 /** UIMachineLogic subclass used as normal machine logic implementation. */ 38 38 class UIMachineLogicNormal : public UIMachineLogic 39 39 { 40 40 Q_OBJECT; 41 41 42 public: 43 44 /** Constructs normal logic passing @a pParent to the base-class. 45 * @param pSession Brings the session UI reference. */ 46 UIMachineLogicNormal(QObject *pParent, UISession *pSession); 47 42 48 protected: 43 44 /* Constructor: */45 UIMachineLogicNormal(QObject *pParent, UISession *pSession);46 49 47 50 /* Check if this logic is available: */ … … 101 104 QMenu *m_pPopupMenu; 102 105 #endif /* !VBOX_WS_MAC */ 103 104 /* Friend classes: */105 friend class UIMachineLogic;106 106 }; 107 107 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h
r97975 r98039 32 32 #endif 33 33 34 /* Local includes*/34 /* GUI includes: */ 35 35 #include "UIMachineView.h" 36 36 37 /** UIMachineView subclass used as normal machine view implementation. */ 37 38 class UIMachineViewNormal : public UIMachineView 38 39 { 39 40 Q_OBJECT; 40 41 41 p rotected:42 public: 42 43 43 44 /* Normal machine-view constructor: */ … … 84 85 /* Private members: */ 85 86 bool m_fGuestAutoresizeEnabled : 1; 86 87 /* Friend classes: */88 friend class UIMachineView;89 87 }; 90 88 91 89 #endif /* !FEQT_INCLUDED_SRC_runtime_normal_UIMachineViewNormal_h */ 92 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r96407 r98039 40 40 class UIAction; 41 41 42 /** UIMachineWindow reimplementation, 43 * providing GUI with machine-window for the normal mode. */ 42 /** UIMachineWindow subclass used as normal machine window implementation. */ 44 43 class UIMachineWindowNormal : public UIMachineWindow 45 44 { … … 51 50 void sigGeometryChange(const QRect &rect); 52 51 53 p rotected:52 public: 54 53 55 54 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ … … 156 155 /** Holds the geometry save timer ID. */ 157 156 int m_iGeometrySaveTimerId; 158 159 /** Factory support. */160 friend class UIMachineWindow;161 157 }; 162 158 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIKeyboardHandlerScale.cpp
r96407 r98039 90 90 } 91 91 #endif /* !VBOX_WS_MAC */ 92 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIKeyboardHandlerScale.h
r96407 r98039 41 41 Q_OBJECT; 42 42 43 p rotected:43 public: 44 44 45 45 /** Scale keyboard-handler constructor. */ … … 54 54 bool eventFilter(QObject *pWatched, QEvent *pEvent); 55 55 #endif /* !VBOX_WS_MAC */ 56 57 /* Friend class: */58 friend class UIKeyboardHandler;59 56 }; 60 57 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.h
r96407 r98039 32 32 #endif 33 33 34 /* Localincludes: */34 /* GUI includes: */ 35 35 #include "UIMachineLogic.h" 36 36 37 /* Scale machine logic implementation:*/37 /** UIMachineLogic subclass used as scaled machine logic implementation. */ 38 38 class UIMachineLogicScale : public UIMachineLogic 39 39 { 40 40 Q_OBJECT; 41 41 42 public: 43 44 /** Constructs scaled logic passing @a pParent to the base-class. 45 * @param pSession Brings the session UI reference. */ 46 UIMachineLogicScale(QObject *pParent, UISession *pSession); 47 42 48 protected: 43 44 /* Constructor: */45 UIMachineLogicScale(QObject *pParent, UISession *pSession);46 49 47 50 /* Check if this logic is available: */ … … 83 86 QMenu *m_pPopupMenu; 84 87 #endif /* !RT_OS_DARWIN */ 85 86 /* Friend classes: */87 friend class UIMachineLogic;88 88 }; 89 89 90 90 #endif /* !FEQT_INCLUDED_SRC_runtime_scale_UIMachineLogicScale_h */ 91 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r97977 r98039 227 227 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 228 228 } 229 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.h
r96407 r98039 32 32 #endif 33 33 34 /* Local includes*/34 /* GUI includes: */ 35 35 #include "UIMachineView.h" 36 36 37 /** UIMachineView subclass used as scaled machine view implementation. */ 37 38 class UIMachineViewScale : public UIMachineView 38 39 { 39 40 Q_OBJECT; 40 41 41 p rotected:42 public: 42 43 43 44 /* Scale machine-view constructor: */ … … 67 68 QSize calculateMaxGuestSize() const; 68 69 void updateSliders(); 69 70 /* Friend classes: */71 friend class UIMachineView;72 70 }; 73 71 74 72 #endif /* !FEQT_INCLUDED_SRC_runtime_scale_UIMachineViewScale_h */ 75 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h
r96407 r98039 35 35 #include "UIMachineWindow.h" 36 36 37 /** UIMachineWindow reimplementation, 38 * providing GUI with machine-window for the scale mode. */ 37 /** UIMachineWindow subclass used as scaled machine window implementation. */ 39 38 class UIMachineWindowScale : public UIMachineWindow 40 39 { 41 40 Q_OBJECT; 42 41 43 p rotected:42 public: 44 43 45 44 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ … … 87 86 /** Holds the geometry save timer ID. */ 88 87 int m_iGeometrySaveTimerId; 89 90 /** Factory support. */91 friend class UIMachineWindow;92 88 }; 93 89 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIKeyboardHandlerSeamless.cpp
r96407 r98039 90 90 } 91 91 #endif /* !VBOX_WS_MAC */ 92 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIKeyboardHandlerSeamless.h
r96407 r98039 41 41 Q_OBJECT; 42 42 43 p rotected:43 public: 44 44 45 45 /** Seamless keyboard-handler constructor. */ … … 54 54 bool eventFilter(QObject *pWatched, QEvent *pEvent); 55 55 #endif /* !VBOX_WS_MAC */ 56 57 /* Friend class: */58 friend class UIKeyboardHandler;59 56 }; 60 57 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r97514 r98039 66 66 } 67 67 68 int UIMachineLogicSeamless::hostScreenForGuestScreen(int iScreenId) const 69 { 70 return m_pScreenLayout->hostScreenForGuestScreen(iScreenId); 71 } 72 73 bool UIMachineLogicSeamless::hasHostScreenForGuestScreen(int iScreenId) const 74 { 75 return m_pScreenLayout->hasHostScreenForGuestScreen(iScreenId); 76 } 77 68 78 bool UIMachineLogicSeamless::checkAvailability() 69 79 { … … 102 112 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 103 113 pMachineWindow->showInNecessaryMode(); 104 }105 106 int UIMachineLogicSeamless::hostScreenForGuestScreen(int iScreenId) const107 {108 return m_pScreenLayout->hostScreenForGuestScreen(iScreenId);109 }110 111 bool UIMachineLogicSeamless::hasHostScreenForGuestScreen(int iScreenId) const112 {113 return m_pScreenLayout->hasHostScreenForGuestScreen(iScreenId);114 114 } 115 115 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h
r97512 r98039 32 32 #endif 33 33 34 /* Localincludes: */34 /* GUI includes: */ 35 35 #include "UIMachineLogic.h" 36 36 … … 38 38 class UIMultiScreenLayout; 39 39 40 /* Seamless machine logic implementation:*/40 /** UIMachineLogic subclass used as seamless machine logic implementation. */ 41 41 class UIMachineLogicSeamless : public UIMachineLogic 42 42 { 43 43 Q_OBJECT; 44 44 45 public: 46 47 /** Constructs seamless logic passing @a pParent to the base-class. 48 * @param pSession Brings the session UI reference. */ 49 UIMachineLogicSeamless(QObject *pParent, UISession *pSession); 50 /** Destructs seamless logic. */ 51 virtual ~UIMachineLogicSeamless() RT_OVERRIDE; 52 53 /** Returns an index of host-screen for guest-screen with @a iScreenId specified. */ 54 int hostScreenForGuestScreen(int iScreenId) const; 55 /** Returns whether there is a host-screen for guest-screen with @a iScreenId specified. */ 56 bool hasHostScreenForGuestScreen(int iScreenId) const; 57 45 58 protected: 46 47 /* Constructor/destructor: */48 UIMachineLogicSeamless(QObject *pParent, UISession *pSession);49 ~UIMachineLogicSeamless();50 59 51 60 /* Check if this logic is available: */ … … 57 66 /** Adjusts machine-window geometry if necessary for 'Seamless'. */ 58 67 virtual void adjustMachineWindowsGeometry(); 59 60 /* Helpers: Multi-screen stuff: */61 int hostScreenForGuestScreen(int iScreenId) const;62 bool hasHostScreenForGuestScreen(int iScreenId) const;63 68 64 69 private slots: … … 110 115 QMenu *m_pPopupMenu; 111 116 #endif /* !RT_OS_DARWIN */ 112 113 /* Friend classes: */114 friend class UIMachineLogic;115 friend class UIMachineWindowSeamless;116 friend class UIMachineViewSeamless;117 117 }; 118 118 119 119 #endif /* !FEQT_INCLUDED_SRC_runtime_seamless_UIMachineLogicSeamless_h */ 120 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h
r96407 r98039 32 32 #endif 33 33 34 /* Local includes*/34 /* GUI includes: */ 35 35 #include "UIMachineView.h" 36 36 37 /** UIMachineView subclass used as seamless machine view implementation. */ 37 38 class UIMachineViewSeamless : public UIMachineView 38 39 { 39 40 Q_OBJECT; 40 41 41 p rotected:42 public: 42 43 43 44 /* Seamless machine-view constructor: */ … … 77 78 QRect workingArea() const; 78 79 QSize calculateMaxGuestSize() const; 79 80 /* Friend classes: */81 friend class UIMachineView;82 80 }; 83 81 84 82 #endif /* !FEQT_INCLUDED_SRC_runtime_seamless_UIMachineViewSeamless_h */ 85 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r96407 r98039 40 40 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 41 41 42 /** UIMachineWindow reimplementation, 43 * providing GUI with machine-window for the seamless mode. */ 42 /** UIMachineWindow subclass used as seamless machine window implementation. */ 44 43 class UIMachineWindowSeamless : public UIMachineWindow 45 44 { 46 45 Q_OBJECT; 47 46 48 p rotected:47 public: 49 48 50 49 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ … … 132 131 bool m_fIsMinimized; 133 132 #endif 134 135 /** Factory support. */136 friend class UIMachineWindow;137 133 }; 138 134 139 135 #endif /* !FEQT_INCLUDED_SRC_runtime_seamless_UIMachineWindowSeamless_h */ 140
Note:
See TracChangeset
for help on using the changeset viewer.