Changeset 86231 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 23, 2020 10:55:30 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r82968 r86231 67 67 } 68 68 69 void QIManagerDialog::closeEvent(QCloseEvent *pEvent) 70 { 71 /* Ignore the event itself: */ 72 pEvent->ignore(); 73 /* But tell the listener to close us (once): */ 74 if (!m_fCloseEmitted) 75 { 76 m_fCloseEmitted = true; 77 emit sigClose(); 78 } 79 } 80 69 81 void QIManagerDialog::prepare() 70 82 { … … 219 231 cleanupMenuBar(); 220 232 } 221 222 void QIManagerDialog::closeEvent(QCloseEvent *pEvent)223 {224 /* Ignore the event itself: */225 pEvent->ignore();226 /* But tell the listener to close us (once): */227 if (!m_fCloseEmitted)228 {229 m_fCloseEmitted = true;230 emit sigClose();231 }232 } -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.h
r82968 r86231 104 104 QIManagerDialog(QWidget *pCenterWidget); 105 105 106 /** @name Prepare/cleanup cascade. 107 * @{ */ 108 /** Prepares all. 109 * @note Normally you don't need to reimplement it. */ 110 void prepare(); 106 /** @name Virtual prepare/cleanup cascade. 107 * @{ */ 111 108 /** Configures all. 112 109 * @note Injected into prepare(), reimplement to configure all there. */ 113 110 virtual void configure() {} 114 /** Prepares central-widget.115 * @note Injected into prepare(), normally you don't need to reimplement it. */116 void prepareCentralWidget();117 111 /** Configures central-widget. 118 112 * @note Injected into prepareCentralWidget(), reimplement to configure central-widget there. */ 119 113 virtual void configureCentralWidget() {} 120 /** Prepares button-box.121 * @note Injected into prepareCentralWidget(), normally you don't need to reimplement it. */122 void prepareButtonBox();123 114 /** Configures button-box. 124 115 * @note Injected into prepareButtonBox(), reimplement to configure button-box there. */ 125 116 virtual void configureButtonBox() {} 126 /** Prepares menu-bar.127 * @note Injected into prepare(), normally you don't need to reimplement it. */128 void prepareMenuBar();129 #ifdef VBOX_WS_MAC130 /** Prepares toolbar.131 * @note Injected into prepare(), normally you don't need to reimplement it. */132 void prepareToolBar();133 #endif134 117 /** Performs final preparations. 135 118 * @note Injected into prepare(), reimplement to postprocess all there. */ 136 119 virtual void finalize() {} 137 /** Loads dialog setting such as geometryfrom extradata. */120 /** Loads dialog setting from extradata. */ 138 121 virtual void loadSettings() {} 139 122 140 123 /** Saves dialog setting into extradata. */ 141 virtual void saveSettings() const {} 142 /** Cleanup menu-bar. 143 * @note Injected into cleanup(), normally you don't need to reimplement it. */ 144 void cleanupMenuBar(); 145 /** Cleanups all. 146 * @note Normally you don't need to reimplement it. */ 147 void cleanup(); 124 virtual void saveSettings() {} 148 125 /** @} */ 149 126 … … 172 149 * @{ */ 173 150 /** Handles close @a pEvent. */ 174 v oid closeEvent(QCloseEvent *pEvent);151 virtual void closeEvent(QCloseEvent *pEvent) /* override */; 175 152 /** @} */ 176 153 177 154 private: 155 156 /** @name Private prepare/cleanup cascade. 157 * @{ */ 158 /** Prepares all. */ 159 void prepare(); 160 /** Prepares central-widget. */ 161 void prepareCentralWidget(); 162 /** Prepares button-box. */ 163 void prepareButtonBox(); 164 /** Prepares menu-bar. */ 165 void prepareMenuBar(); 166 #ifdef VBOX_WS_MAC 167 /** Prepares toolbar. */ 168 void prepareToolBar(); 169 #endif 170 171 /** Cleanup menu-bar. */ 172 void cleanupMenuBar(); 173 /** Cleanups all. */ 174 void cleanup(); 175 /** @} */ 178 176 179 177 /** @name General stuff. -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerDialog.cpp
r82968 r86231 118 118 } 119 119 120 void UIFileManagerDialog::saveSettings() const120 void UIFileManagerDialog::saveSettings() 121 121 { 122 122 /* Save geometry to extradata: */ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerDialog.h
r82968 r86231 88 88 /** Perform final preparations. */ 89 89 virtual void finalize() /* override */; 90 /** Loads dialog setting such as geometryfrom extradata. */90 /** Loads dialog setting from extradata. */ 91 91 virtual void loadSettings() /* override */; 92 92 93 93 /** Saves dialog setting into extradata. */ 94 virtual void saveSettings() const/* override */;94 virtual void saveSettings() /* override */; 95 95 /** @} */ 96 96 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlDialog.cpp
r82968 r86231 119 119 } 120 120 121 void UIGuestProcessControlDialog::saveSettings() const121 void UIGuestProcessControlDialog::saveSettings() 122 122 { 123 123 /* Save geometry to extradata: */ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlDialog.h
r82968 r86231 86 86 /** Perform final preparations. */ 87 87 virtual void finalize() /* override */; 88 /** Loads dialog setting such as geometryfrom extradata. */88 /** Loads dialog setting from extradata. */ 89 89 virtual void loadSettings() /* override */; 90 90 91 91 /** Saves dialog setting into extradata. */ 92 virtual void saveSettings() const/* override */;92 virtual void saveSettings() /* override */; 93 93 /** @} */ 94 94 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.cpp
r82968 r86231 136 136 } 137 137 138 void UIVMLogViewerDialog::saveSettings() const138 void UIVMLogViewerDialog::saveSettings() 139 139 { 140 140 /* Save geometry to extradata: */ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerDialog.h
r82968 r86231 95 95 /** Perform final preparations. */ 96 96 virtual void finalize() /* override */; 97 /** Loads dialog setting such as geometryfrom extradata. */97 /** Loads dialog setting from extradata. */ 98 98 virtual void loadSettings() /* override */; 99 99 100 100 /** Saves dialog setting into extradata. */ 101 virtual void saveSettings() const/* override */;101 virtual void saveSettings() /* override */; 102 102 /** @} */ 103 103
Note:
See TracChangeset
for help on using the changeset viewer.