- Timestamp:
- Jul 20, 2015 4:41:01 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r57021 r57027 5 5 6 6 /* 7 * Copyright (C) 2010-201 3Oracle Corporation7 * Copyright (C) 2010-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineWindowFullscreen_h__19 #define __ UIMachineWindowFullscreen_h__18 #ifndef ___UIMachineWindowFullscreen_h___ 19 #define ___UIMachineWindowFullscreen_h___ 20 20 21 /* Localincludes: */21 /* GUI includes: */ 22 22 #include "UIMachineWindow.h" 23 23 … … 27 27 #endif /* Q_WS_WIN || Q_WS_X11 */ 28 28 29 /* Fullscreen machine-window implementation: */ 29 /** UIMachineWindow reimplementation, 30 * providing GUI with machine-window for the full-screen mode. */ 30 31 class UIMachineWindowFullscreen : public UIMachineWindow 31 32 { … … 48 49 protected: 49 50 50 /* Constructor:*/51 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ 51 52 UIMachineWindowFullscreen(UIMachineLogic *pMachineLogic, ulong uScreenId); 52 53 … … 61 62 62 63 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 63 /* Session event-handlers:*/64 /** Handles machine state change event. */ 64 65 void sltMachineStateChanged(); 65 66 … … 77 78 private: 78 79 79 /* Prepare helpers:*/80 /** Prepare visual-state routine. */ 80 81 void prepareVisualState(); 81 82 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 83 /** Prepare mini-toolbar routine. */ 82 84 void prepareMiniToolbar(); 83 85 #endif /* Q_WS_WIN || Q_WS_X11 */ 84 86 85 /* Cleanup helpers: */86 87 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 88 /** Cleanup mini-toolbar routine. */ 87 89 void cleanupMiniToolbar(); 88 90 #endif /* Q_WS_WIN || Q_WS_X11 */ 91 /** Cleanup visual-state routine. */ 89 92 void cleanupVisualState(); 90 93 91 /* Show stuff:*/94 /** Updates geometry according to visual-state. */ 92 95 void placeOnScreen(); 96 /** Updates visibility according to visual-state. */ 93 97 void showInNecessaryMode(); 94 98 … … 97 101 98 102 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 99 /* Update routines:*/103 /** Common update routine. */ 100 104 void updateAppearanceOf(int iElement); 101 105 #endif /* Q_WS_WIN || Q_WS_X11 */ … … 113 117 #endif /* Q_WS_MAC */ 114 118 115 /* Factory support:*/119 /** Factory support. */ 116 120 friend class UIMachineWindow; 117 121 }; 118 122 119 #endif / / __UIMachineWindowFullscreen_h__123 #endif /* !___UIMachineWindowFullscreen_h___ */ 120 124 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r55401 r57027 5 5 6 6 /* 7 * Copyright (C) 2010-201 2Oracle Corporation7 * Copyright (C) 2010-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineWindowNormal_h__19 #define __ UIMachineWindowNormal_h__18 #ifndef ___UIMachineWindowNormal_h___ 19 #define ___UIMachineWindowNormal_h___ 20 20 21 /* Localincludes: */21 /* GUI includes: */ 22 22 #include "UIMachineWindow.h" 23 23 … … 26 26 class UIIndicatorsPool; 27 27 28 /* Normal machine-window implementation: */ 28 /** UIMachineWindow reimplementation, 29 * providing GUI with machine-window for the normal mode. */ 29 30 class UIMachineWindowNormal : public UIMachineWindow 30 31 { … … 38 39 protected: 39 40 40 /* Constructor:*/41 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ 41 42 UIMachineWindowNormal(UIMachineLogic *pMachineLogic, ulong uScreenId); 42 43 … … 48 49 #endif /* Q_WS_X11 */ 49 50 50 /* Session event-handlers:*/51 /** Handles machine state change event. */ 51 52 void sltMachineStateChanged(); 53 /** Handles medium change event. */ 52 54 void sltMediumChange(const CMediumAttachment &attachment); 55 /** Handles USB controller change event. */ 53 56 void sltUSBControllerChange(); 57 /** Handles USB device state change event. */ 54 58 void sltUSBDeviceStateChange(); 59 /** Handles network adapter change event. */ 55 60 void sltNetworkAdapterChange(); 61 /** Handles shared folder change event. */ 56 62 void sltSharedFolderChange(); 63 /** Handles video capture change event. */ 57 64 void sltVideoCaptureChange(); 65 /** Handles CPU execution cap change event. */ 58 66 void sltCPUExecutionCapChange(); 59 67 … … 74 82 private: 75 83 76 /* Prepare helpers:*/84 /** Prepare session connections routine. */ 77 85 void prepareSessionConnections(); 78 86 #ifndef Q_WS_MAC 87 /** Prepare menu routine. */ 79 88 void prepareMenu(); 80 89 #endif /* !Q_WS_MAC */ 90 /** Prepare status-bar routine. */ 81 91 void prepareStatusBar(); 92 /** Prepare visual-state routine. */ 82 93 void prepareVisualState(); 94 /** Load settings routine. */ 83 95 void loadSettings(); 84 96 85 /* Cleanup helpers:*/97 /** Save settings routine. */ 86 98 void saveSettings(); 87 //coid cleanupVisualState() {}88 //void cleanupStatusBar() {}89 #ifndef Q_WS_MAC90 //void cleanupMenu() {}91 #endif /* !Q_WS_MAC */92 //void cleanupConsoleConnections() {}93 99 94 /* Show stuff:*/100 /** Updates visibility according to visual-state. */ 95 101 void showInNecessaryMode(); 96 102 97 /* Helper: Machine-window geometry stuff:*/103 /** Normalizes geometry according to guest-size. */ 98 104 void normalizeGeometry(bool fAdjustPosition); 99 105 100 /* Update stuff:*/106 /** Common update routine. */ 101 107 void updateAppearanceOf(int aElement); 102 108 … … 106 112 #endif /* !Q_WS_MAC */ 107 113 108 /* Event handler:*/114 /** Common @a pEvent handler. */ 109 115 bool event(QEvent *pEvent); 110 116 111 /* Helpers:*/117 /** Returns whether this window is maximized. */ 112 118 bool isMaximizedChecked(); 113 119 … … 115 121 UIIndicatorsPool *m_pIndicatorsPool; 116 122 117 /** Holds current window geometry. */123 /** Holds the current window geometry. */ 118 124 QRect m_normalGeometry; 119 125 120 /* Factory support:*/126 /** Factory support. */ 121 127 friend class UIMachineWindow; 122 128 }; 123 129 124 #endif / / __UIMachineWindowNormal_h__130 #endif /* !___UIMachineWindowNormal_h___ */ 125 131 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h
r55401 r57027 5 5 6 6 /* 7 * Copyright (C) 2010-201 2Oracle Corporation7 * Copyright (C) 2010-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineWindowScale_h__19 #define __ UIMachineWindowScale_h__18 #ifndef ___UIMachineWindowScale_h___ 19 #define ___UIMachineWindowScale_h___ 20 20 21 /* Localincludes: */21 /* GUI includes: */ 22 22 #include "UIMachineWindow.h" 23 23 24 /* Scale machine-window implementation: */ 24 /** UIMachineWindow reimplementation, 25 * providing GUI with machine-window for the scale mode. */ 25 26 class UIMachineWindowScale : public UIMachineWindow 26 27 { … … 29 30 protected: 30 31 31 /* Constructor:*/32 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ 32 33 UIMachineWindowScale(UIMachineLogic *pMachineLogic, ulong uScreenId); 33 34 34 35 private: 35 36 36 /* Prepare helpers:*/37 /** Prepare main-layout routine. */ 37 38 void prepareMainLayout(); 38 39 #ifdef Q_WS_MAC 40 /** Prepare visual-state routine. */ 39 41 void prepareVisualState(); 40 42 #endif /* Q_WS_MAC */ 43 /** Load settings routine. */ 41 44 void loadSettings(); 42 45 43 /* Cleanup helpers:*/46 /** Save settings routine. */ 44 47 void saveSettings(); 45 #ifdef Q_WS_MAC46 //void cleanupVisualState() {}47 #endif /* Q_WS_MAC */48 //void cleanupMainLayout() {}49 48 50 /* Show stuff:*/49 /** Updates visibility according to visual-state. */ 51 50 void showInNecessaryMode(); 52 51 53 /* Event handlers:*/52 /** Common @a pEvent handler. */ 54 53 bool event(QEvent *pEvent); 55 54 #ifdef Q_WS_WIN 55 /** Windows: Common native @a pEvent handler. */ 56 56 bool winEvent(MSG *pMessage, long *pResult); 57 57 #endif /* Q_WS_WIN */ 58 58 59 /* Helpers:*/59 /** Returns whether this window is maximized. */ 60 60 bool isMaximizedChecked(); 61 61 62 /* Variables:*/62 /** Holds the current window geometry. */ 63 63 QRect m_normalGeometry; 64 64 65 /* Factory support:*/65 /** Factory support. */ 66 66 friend class UIMachineWindow; 67 67 }; 68 68 69 #endif / / __UIMachineWindowScale_h__69 #endif /* !___UIMachineWindowScale_h___ */ 70 70 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r57021 r57027 5 5 6 6 /* 7 * Copyright (C) 2010-201 3Oracle Corporation7 * Copyright (C) 2010-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineWindowSeamless_h__19 #define __ UIMachineWindowSeamless_h__18 #ifndef ___UIMachineWindowSeamless_h___ 19 #define ___UIMachineWindowSeamless_h___ 20 20 21 /* Localincludes: */21 /* GUI includes: */ 22 22 #include "UIMachineWindow.h" 23 23 … … 27 27 #endif /* Q_WS_WIN || Q_WS_X11 */ 28 28 29 /* Seamless machine-window implementation: */ 29 /** UIMachineWindow reimplementation, 30 * providing GUI with machine-window for the seamless mode. */ 30 31 class UIMachineWindowSeamless : public UIMachineWindow 31 32 { … … 34 35 protected: 35 36 36 /* Constructor:*/37 /** Constructor, passes @a pMachineLogic and @a uScreenId to the UIMachineWindow constructor. */ 37 38 UIMachineWindowSeamless(UIMachineLogic *pMachineLogic, ulong uScreenId); 38 39 … … 40 41 41 42 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 42 /* Session event-handlers:*/43 /** Handles machine state change event. */ 43 44 void sltMachineStateChanged(); 44 45 … … 49 50 private: 50 51 51 /* Prepare helpers:*/52 /** Prepare visual-state routine. */ 52 53 void prepareVisualState(); 53 54 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 55 /** Prepare mini-toolbar routine. */ 54 56 void prepareMiniToolbar(); 55 57 #endif /* Q_WS_WIN || Q_WS_X11 */ 56 58 57 /* Cleanup helpers: */58 59 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 60 /** Cleanup mini-toolbar routine. */ 59 61 void cleanupMiniToolbar(); 60 62 #endif /* Q_WS_WIN || Q_WS_X11 */ 63 /** Cleanup visual-state routine. */ 61 64 void cleanupVisualState(); 62 65 63 /* Show stuff:*/66 /** Updates geometry according to visual-state. */ 64 67 void placeOnScreen(); 68 /** Updates visibility according to visual-state. */ 65 69 void showInNecessaryMode(); 66 70 … … 69 73 70 74 #if defined(Q_WS_WIN) || defined(Q_WS_X11) 71 /* Update routines:*/75 /** Common update routine. */ 72 76 void updateAppearanceOf(int iElement); 73 77 #endif /* Q_WS_WIN || Q_WS_X11 */ 74 78 75 79 #if defined(VBOX_WITH_TRANSLUCENT_SEAMLESS) && defined(Q_WS_WIN) 76 /* Handler: Translucency stuff:*/80 /** Windows: Translucency stuff workaround. */ 77 81 void showEvent(QShowEvent *pEvent); 78 82 #endif /* VBOX_WITH_TRANSLUCENT_SEAMLESS && Q_WS_WIN */ … … 95 99 #endif /* VBOX_WITH_MASKED_SEAMLESS */ 96 100 97 /* Factory support:*/101 /** Factory support. */ 98 102 friend class UIMachineWindow; 99 103 }; 100 104 101 #endif / / __UIMachineWindowSeamless_h__105 #endif /* !___UIMachineWindowSeamless_h___ */ 102 106
Note:
See TracChangeset
for help on using the changeset viewer.