Changeset 65272 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 13, 2017 7:20:17 AM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r63291 r65272 61 61 #include "CVRDEServerInfo.h" 62 62 63 63 64 /* static */ 64 65 UIVMInformationDialog* UIVMInformationDialog::m_spInstance = 0; … … 130 131 switch (pEvent->type()) 131 132 { 132 /* Handle every Resize and Move we keep track of the geometry.*/133 /* Handle Resize event to keep track of the geometry: */ 133 134 case QEvent::Resize: 134 135 { … … 140 141 break; 141 142 } 143 /* Handle Move event to keep track of the geometry: */ 142 144 case QEvent::Move: 143 145 { … … 183 185 184 186 #ifdef VBOX_WS_MAC 185 /* No window-icon on Mac O XX, because it acts as proxy icon which isn't necessary here. */187 /* No window-icon on Mac OS X, because it acts as proxy icon which isn't necessary here. */ 186 188 setWindowIcon(QIcon()); 187 #else /* !VBOX_WS_MAC */188 /* Assign window-icon (s: */189 #else 190 /* Assign window-icons: */ 189 191 setWindowIcon(UIIconPool::iconSetFull(":/session_info_32px.png", ":/session_info_16px.png")); 190 #endif /* !VBOX_WS_MAC */192 #endif 191 193 192 194 /* Prepare central-widget: */ 193 195 prepareCentralWidget(); 194 196 195 /* Configure handlers: */197 /* Assign tab-widget page change handler: */ 196 198 connect(m_pTabWidget, SIGNAL(currentChanged(int)), this, SLOT(sltHandlePageChanged(int))); 197 199 … … 235 237 centralWidget()->layout()->addWidget(m_pTabWidget); 236 238 237 /* Create tabs: */ 238 /* Create Configuration details tab: */ 239 /* Create Configuration Details tab: */ 239 240 UIInformationConfiguration *pInformationConfigurationWidget = new UIInformationConfiguration(this, gpMachine->uisession()->machine(), gpMachine->uisession()->console()); 240 241 AssertPtrReturnVoid(pInformationConfigurationWidget); 241 242 { 242 //pInformationWidget->setItems(items);243 243 m_tabs.insert(0, pInformationConfigurationWidget); 244 244 m_pTabWidget->addTab(m_tabs.value(0), QString()); 245 245 } 246 246 247 /* Create Runtime information tab: */247 /* Create Runtime Information tab: */ 248 248 UIInformationRuntime *pInformationRuntimeWidget = new UIInformationRuntime(this, gpMachine->uisession()->machine(), gpMachine->uisession()->console()); 249 249 AssertPtrReturnVoid(pInformationRuntimeWidget); … … 252 252 m_pTabWidget->addTab(m_tabs.value(1), QString()); 253 253 } 254 /* Set runtime information tab as default: */ 254 255 /* Set Runtime Information tab as default: */ 255 256 m_pTabWidget->setCurrentIndex(1); 256 257 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.h
r63291 r65272 19 19 #define ___UIVMInformationDialog_h___ 20 20 21 /* Qt includes: */22 23 21 /* GUI includes: */ 24 22 #include "QIMainWindow.h" … … 34 32 class QIDialogButtonBox; 35 33 36 /** QIMainWindow based dialog providing user with VM details and statistics. */ 34 35 /** QIMainWindow subclass providing user 36 * with the dialog unifying VM details and statistics. */ 37 37 class UIVMInformationDialog : public QIWithRetranslateUI<QIMainWindow> 38 38 { … … 47 47 protected: 48 48 49 /** Information dialog constructor. */49 /** Constructs information dialog for passed @a pMachineWindow. */ 50 50 UIVMInformationDialog(UIMachineWindow *pMachineWindow); 51 /** Information dialog destructor. */51 /** Destructs information dialog. */ 52 52 ~UIVMInformationDialog(); 53 53 … … 55 55 virtual bool shouldBeMaximized() const /* override */; 56 56 57 /** Translation handler. */57 /** Handles translation event. */ 58 58 void retranslateUi(); 59 59 60 /** Common event-handler. */60 /** Handles any Qt @a pEvent. */ 61 61 bool event(QEvent *pEvent); 62 62 63 63 private slots: 64 64 65 /** Slot to destroydialog immediately. */65 /** Destroys dialog immediately. */ 66 66 void suicide() { delete this; } 67 /** Slot to handletab-widget page change. */67 /** Handles tab-widget page change. */ 68 68 void sltHandlePageChanged(int iIndex); 69 69 70 70 private: 71 71 72 /** General prepare helper. */72 /** Prepares all. */ 73 73 void prepare(); 74 /** Prepare helper for dialog itself. */74 /** Prepares this. */ 75 75 void prepareThis(); 76 /** Prepare helper forcentral-widget. */76 /** Prepares central-widget. */ 77 77 void prepareCentralWidget(); 78 /** Prepare helper fortab-widget. */78 /** Prepares tab-widget. */ 79 79 void prepareTabWidget(); 80 /** Prepare helper for@a iTabIndex. */80 /** Prepares tab with @a iTabIndex. */ 81 81 void prepareTab(int iTabIndex); 82 /** Prepare helper forbutton-box. */82 /** Prepares button-box. */ 83 83 void prepareButtonBox(); 84 /** Load settings helper. */84 /** Loads settings. */ 85 85 void loadSettings(); 86 86 87 /** Save settings helper. */87 /** Saves settings. */ 88 88 void saveSettings(); 89 /** General cleanup helper. */89 /** Cleanups all. */ 90 90 void cleanup(); 91 91 92 92 /** @name General variables. 93 93 * @{ */ 94 /** Dialog instance pointer. */94 /** Holds the dialog instance. */ 95 95 static UIVMInformationDialog *m_spInstance; 96 96 /** @} */ … … 98 98 /** @name Widget variables. 99 99 * @{ */ 100 /** Dialog tab-widget. */100 /** Holds the dialog tab-widget instance. */ 101 101 QITabWidget *m_pTabWidget; 102 /** Dialog tabs map. */102 /** Holds the map of dialog tab instances. */ 103 103 QMap<int, QWidget*> m_tabs; 104 /** Dialog button-box. */104 /** Holds the dialog button-box instance. */ 105 105 QIDialogButtonBox *m_pButtonBox; 106 /** machine-window. */106 /** Holds the machine-window reference. */ 107 107 UIMachineWindow *m_pMachineWindow; 108 108 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.