Changeset 71101 in vbox for trunk/src/VBox
- Timestamp:
- Feb 22, 2018 1:30:02 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r71049 r71101 379 379 src/runtime/information/guestctrl/UIGuestControlInterface.h \ 380 380 src/runtime/information/guestctrl/UIGuestControlTreeItem.h \ 381 src/runtime/information/guestctrl/UI InformationGuestSession.h \381 src/runtime/information/guestctrl/UIGuestControlWidget.h \ 382 382 src/runtime/normal/UIKeyboardHandlerNormal.h \ 383 383 src/runtime/normal/UIMachineLogicNormal.h \ … … 565 565 src/runtime/UIIndicatorsPool.cpp \ 566 566 src/runtime/UIStatusBarEditorWindow.cpp \ 567 src/runtime/information/guestctrl/UI InformationGuestSession.cpp \567 src/runtime/information/guestctrl/UIGuestControlWidget.cpp \ 568 568 src/selector/UIActionPoolSelector.cpp \ 569 569 src/selector/UIDesktopPane.cpp \ … … 708 708 src/runtime/information/guestctrl/UIGuestControlConsole.cpp \ 709 709 src/runtime/information/guestctrl/UIGuestControlInterface.cpp \ 710 src/runtime/information/guestctrl/UIInformationGuestSession.cpp \711 710 src/runtime/information/guestctrl/UIGuestControlTreeItem.cpp \ 711 src/runtime/information/guestctrl/UIGuestControlWidget.cpp \ 712 712 src/runtime/normal/UIKeyboardHandlerNormal.cpp \ 713 713 src/runtime/normal/UIMachineLogicNormal.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r71037 r71101 38 38 # include "VBoxUtils.h" 39 39 # include "UIInformationConfiguration.h" 40 # include "UI InformationGuestSession.h"40 # include "UIGuestControlWidget.h" 41 41 # include "UIInformationRuntime.h" 42 42 # include "UIMachine.h" … … 245 245 if(m_pMachineWindow->console().isOk()) 246 246 { 247 UI InformationGuestSession *pGuestSessionWidget =248 new UI InformationGuestSession(this, m_pMachineWindow->console().GetGuest());249 if (pGuest SessionWidget)247 UIGuestControlWidget *pGuestControlWidget = 248 new UIGuestControlWidget(this, m_pMachineWindow->console().GetGuest()); 249 if (pGuestControlWidget) 250 250 { 251 m_tabs.insert(2, pGuest SessionWidget);251 m_tabs.insert(2, pGuestControlWidget); 252 252 m_pTabWidget->addTab(m_tabs.value(2), QString()); 253 253 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlWidget.cpp
r71100 r71101 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI InformationGuestSessionclass implementation.3 * VBox Qt GUI - UIGuestControlWidget class implementation. 4 4 */ 5 5 … … 32 32 # include "UIGuestControlInterface.h" 33 33 # include "UIGuestControlTreeItem.h" 34 # include "UI InformationGuestSession.h"34 # include "UIGuestControlWidget.h" 35 35 # include "UIVMInformationDialog.h" 36 36 # include "VBoxGlobal.h" … … 164 164 }; 165 165 166 UI InformationGuestSession::UIInformationGuestSession(QWidget *pParent, const CGuest &comGuest)166 UIGuestControlWidget::UIGuestControlWidget(QWidget *pParent, const CGuest &comGuest) 167 167 : QWidget(pParent) 168 168 , m_comGuest(comGuest) … … 180 180 } 181 181 182 void UI InformationGuestSession::prepareObjects()182 void UIGuestControlWidget::prepareObjects() 183 183 { 184 184 m_pControlInterface = new UIGuestControlInterface(this, m_comGuest); … … 226 226 } 227 227 228 void UI InformationGuestSession::updateTreeWidget()228 void UIGuestControlWidget::updateTreeWidget() 229 229 { 230 230 if (!m_pTreeWidget) … … 236 236 } 237 237 238 void UI InformationGuestSession::prepareConnections()238 void UIGuestControlWidget::prepareConnections() 239 239 { 240 240 qRegisterMetaType<QVector<int> >(); 241 241 connect(m_pControlInterface, &UIGuestControlInterface::sigOutputString, 242 this, &UI InformationGuestSession::sltConsoleOutputReceived);242 this, &UIGuestControlWidget::sltConsoleOutputReceived); 243 243 connect(m_pConsole, &UIGuestControlConsole::commandEntered, 244 this, &UI InformationGuestSession::sltConsoleCommandEntered);244 this, &UIGuestControlWidget::sltConsoleCommandEntered); 245 245 246 246 if (m_pTreeWidget) 247 247 connect(m_pTreeWidget, &UIGuestControlTreeWidget::sigCloseSessionOrProcess, 248 this, &UI InformationGuestSession::sltCloseSessionOrProcess);248 this, &UIGuestControlWidget::sltCloseSessionOrProcess); 249 249 250 250 if (m_pQtListener) 251 251 { 252 252 connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigGuestSessionRegistered, 253 this, &UI InformationGuestSession::sltGuestSessionRegistered, Qt::DirectConnection);253 this, &UIGuestControlWidget::sltGuestSessionRegistered, Qt::DirectConnection); 254 254 connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigGuestSessionUnregistered, 255 this, &UI InformationGuestSession::sltGuestSessionUnregistered, Qt::DirectConnection);256 } 257 } 258 259 void UI InformationGuestSession::sltGuestSessionsUpdated()255 this, &UIGuestControlWidget::sltGuestSessionUnregistered, Qt::DirectConnection); 256 } 257 } 258 259 void UIGuestControlWidget::sltGuestSessionsUpdated() 260 260 { 261 261 updateTreeWidget(); 262 262 } 263 263 264 void UI InformationGuestSession::sltConsoleCommandEntered(const QString &strCommand)264 void UIGuestControlWidget::sltConsoleCommandEntered(const QString &strCommand) 265 265 { 266 266 if (m_pControlInterface) … … 270 270 } 271 271 272 void UI InformationGuestSession::sltConsoleOutputReceived(const QString &strOutput)272 void UIGuestControlWidget::sltConsoleOutputReceived(const QString &strOutput) 273 273 { 274 274 if (m_pConsole) … … 278 278 } 279 279 280 void UI InformationGuestSession::sltCloseSessionOrProcess()280 void UIGuestControlWidget::sltCloseSessionOrProcess() 281 281 { 282 282 if (!m_pTreeWidget) … … 307 307 } 308 308 309 void UI InformationGuestSession::prepareListener()309 void UIGuestControlWidget::prepareListener() 310 310 { 311 311 /* Create event listener instance: */ … … 336 336 } 337 337 338 void UI InformationGuestSession::initGuestSessionTree()338 void UIGuestControlWidget::initGuestSessionTree() 339 339 { 340 340 if (!m_comGuest.isOk()) … … 348 348 } 349 349 350 void UI InformationGuestSession::cleanupListener()350 void UIGuestControlWidget::cleanupListener() 351 351 { 352 352 /* If event listener registered as passive one: */ … … 370 370 371 371 372 void UI InformationGuestSession::sltGuestSessionRegistered(CGuestSession guestSession)372 void UIGuestControlWidget::sltGuestSessionRegistered(CGuestSession guestSession) 373 373 { 374 374 if (!guestSession.isOk()) … … 377 377 } 378 378 379 void UI InformationGuestSession::addGuestSession(CGuestSession guestSession)379 void UIGuestControlWidget::addGuestSession(CGuestSession guestSession) 380 380 { 381 381 UIGuestSessionTreeItem* sessionTreeItem = new UIGuestSessionTreeItem(m_pTreeWidget, guestSession); 382 382 connect(sessionTreeItem, &UIGuestSessionTreeItem::sigGuessSessionUpdated, 383 this, &UI InformationGuestSession::sltTreeItemUpdated);383 this, &UIGuestControlWidget::sltTreeItemUpdated); 384 384 connect(sessionTreeItem, &UIGuestSessionTreeItem::sigGuestSessionErrorText, 385 this, &UI InformationGuestSession::sltGuestControlErrorText);386 } 387 388 void UI InformationGuestSession::sltGuestControlErrorText(QString strError)385 this, &UIGuestControlWidget::sltGuestControlErrorText); 386 } 387 388 void UIGuestControlWidget::sltGuestControlErrorText(QString strError) 389 389 { 390 390 if (m_pConsole) … … 394 394 } 395 395 396 void UI InformationGuestSession::sltTreeItemUpdated()396 void UIGuestControlWidget::sltTreeItemUpdated() 397 397 { 398 398 if (m_pTreeWidget) … … 400 400 } 401 401 402 void UI InformationGuestSession::sltGuestSessionUnregistered(CGuestSession guestSession)402 void UIGuestControlWidget::sltGuestSessionUnregistered(CGuestSession guestSession) 403 403 { 404 404 if (!guestSession.isOk()) … … 424 424 } 425 425 426 #include "UI InformationGuestSession.moc"426 #include "UIGuestControlWidget.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlWidget.h
r71100 r71101 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI InformationGuestSessionclass declaration.3 * VBox Qt GUI - UIGuestControlWidget class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef ___UI InformationGuestSession_h___19 #define ___UI InformationGuestSession_h___18 #ifndef ___UIGuestControlWidget_h___ 19 #define ___UIGuestControlWidget_h___ 20 20 21 21 /* Qt includes: */ … … 41 41 /** QWidget extension 42 42 * providing GUI with guest session information and control tab in session-information window. */ 43 class UI InformationGuestSession: public QWidget43 class UIGuestControlWidget : public QWidget 44 44 { 45 45 Q_OBJECT; … … 47 47 public: 48 48 49 UI InformationGuestSession(QWidget *pParent, const CGuest &comGuest);49 UIGuestControlWidget(QWidget *pParent, const CGuest &comGuest); 50 50 51 51 private slots: … … 85 85 }; 86 86 87 #endif /* !___UI InformationGuestSession_h___ */87 #endif /* !___UIGuestControlWidget_h___ */
Note:
See TracChangeset
for help on using the changeset viewer.