VirtualBox

Changeset 71101 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 22, 2018 1:30:02 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt bugref:6699 Rename UIInformationGuestSession to UIGuestControlWidget

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r71049 r71101  
    379379        src/runtime/information/guestctrl/UIGuestControlInterface.h \
    380380        src/runtime/information/guestctrl/UIGuestControlTreeItem.h \
    381         src/runtime/information/guestctrl/UIInformationGuestSession.h \
     381        src/runtime/information/guestctrl/UIGuestControlWidget.h \
    382382        src/runtime/normal/UIKeyboardHandlerNormal.h \
    383383        src/runtime/normal/UIMachineLogicNormal.h \
     
    565565        src/runtime/UIIndicatorsPool.cpp \
    566566        src/runtime/UIStatusBarEditorWindow.cpp \
    567         src/runtime/information/guestctrl/UIInformationGuestSession.cpp \
     567        src/runtime/information/guestctrl/UIGuestControlWidget.cpp \
    568568        src/selector/UIActionPoolSelector.cpp \
    569569        src/selector/UIDesktopPane.cpp \
     
    708708        src/runtime/information/guestctrl/UIGuestControlConsole.cpp \
    709709        src/runtime/information/guestctrl/UIGuestControlInterface.cpp \
    710         src/runtime/information/guestctrl/UIInformationGuestSession.cpp \
    711710        src/runtime/information/guestctrl/UIGuestControlTreeItem.cpp \
     711        src/runtime/information/guestctrl/UIGuestControlWidget.cpp \
    712712        src/runtime/normal/UIKeyboardHandlerNormal.cpp \
    713713        src/runtime/normal/UIMachineLogicNormal.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r71037 r71101  
    3838# include "VBoxUtils.h"
    3939# include "UIInformationConfiguration.h"
    40 # include "UIInformationGuestSession.h"
     40# include "UIGuestControlWidget.h"
    4141# include "UIInformationRuntime.h"
    4242# include "UIMachine.h"
     
    245245        if(m_pMachineWindow->console().isOk())
    246246        {
    247             UIInformationGuestSession *pGuestSessionWidget =
    248                 new UIInformationGuestSession(this, m_pMachineWindow->console().GetGuest());
    249             if (pGuestSessionWidget)
     247            UIGuestControlWidget *pGuestControlWidget =
     248                new UIGuestControlWidget(this, m_pMachineWindow->console().GetGuest());
     249            if (pGuestControlWidget)
    250250            {
    251                 m_tabs.insert(2, pGuestSessionWidget);
     251                m_tabs.insert(2, pGuestControlWidget);
    252252                m_pTabWidget->addTab(m_tabs.value(2), QString());
    253253            }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlWidget.cpp

    r71100 r71101  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIInformationGuestSession class implementation.
     3 * VBox Qt GUI - UIGuestControlWidget class implementation.
    44 */
    55
     
    3232# include "UIGuestControlInterface.h"
    3333# include "UIGuestControlTreeItem.h"
    34 # include "UIInformationGuestSession.h"
     34# include "UIGuestControlWidget.h"
    3535# include "UIVMInformationDialog.h"
    3636# include "VBoxGlobal.h"
     
    164164};
    165165
    166 UIInformationGuestSession::UIInformationGuestSession(QWidget *pParent, const CGuest &comGuest)
     166UIGuestControlWidget::UIGuestControlWidget(QWidget *pParent, const CGuest &comGuest)
    167167    : QWidget(pParent)
    168168    , m_comGuest(comGuest)
     
    180180}
    181181
    182 void UIInformationGuestSession::prepareObjects()
     182void UIGuestControlWidget::prepareObjects()
    183183{
    184184    m_pControlInterface = new UIGuestControlInterface(this, m_comGuest);
     
    226226}
    227227
    228 void UIInformationGuestSession::updateTreeWidget()
     228void UIGuestControlWidget::updateTreeWidget()
    229229{
    230230    if (!m_pTreeWidget)
     
    236236}
    237237
    238 void UIInformationGuestSession::prepareConnections()
     238void UIGuestControlWidget::prepareConnections()
    239239{
    240240    qRegisterMetaType<QVector<int> >();
    241241    connect(m_pControlInterface, &UIGuestControlInterface::sigOutputString,
    242             this, &UIInformationGuestSession::sltConsoleOutputReceived);
     242            this, &UIGuestControlWidget::sltConsoleOutputReceived);
    243243    connect(m_pConsole, &UIGuestControlConsole::commandEntered,
    244             this, &UIInformationGuestSession::sltConsoleCommandEntered);
     244            this, &UIGuestControlWidget::sltConsoleCommandEntered);
    245245
    246246    if (m_pTreeWidget)
    247247        connect(m_pTreeWidget, &UIGuestControlTreeWidget::sigCloseSessionOrProcess,
    248                 this, &UIInformationGuestSession::sltCloseSessionOrProcess);
     248                this, &UIGuestControlWidget::sltCloseSessionOrProcess);
    249249
    250250    if (m_pQtListener)
    251251    {
    252252        connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigGuestSessionRegistered,
    253                 this, &UIInformationGuestSession::sltGuestSessionRegistered, Qt::DirectConnection);
     253                this, &UIGuestControlWidget::sltGuestSessionRegistered, Qt::DirectConnection);
    254254        connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigGuestSessionUnregistered,
    255                 this, &UIInformationGuestSession::sltGuestSessionUnregistered, Qt::DirectConnection);
    256     }
    257 }
    258 
    259 void UIInformationGuestSession::sltGuestSessionsUpdated()
     255                this, &UIGuestControlWidget::sltGuestSessionUnregistered, Qt::DirectConnection);
     256    }
     257}
     258
     259void UIGuestControlWidget::sltGuestSessionsUpdated()
    260260{
    261261    updateTreeWidget();
    262262}
    263263
    264 void UIInformationGuestSession::sltConsoleCommandEntered(const QString &strCommand)
     264void UIGuestControlWidget::sltConsoleCommandEntered(const QString &strCommand)
    265265{
    266266    if (m_pControlInterface)
     
    270270}
    271271
    272 void UIInformationGuestSession::sltConsoleOutputReceived(const QString &strOutput)
     272void UIGuestControlWidget::sltConsoleOutputReceived(const QString &strOutput)
    273273{
    274274    if (m_pConsole)
     
    278278}
    279279
    280 void UIInformationGuestSession::sltCloseSessionOrProcess()
     280void UIGuestControlWidget::sltCloseSessionOrProcess()
    281281{
    282282    if (!m_pTreeWidget)
     
    307307}
    308308
    309 void UIInformationGuestSession::prepareListener()
     309void UIGuestControlWidget::prepareListener()
    310310{
    311311    /* Create event listener instance: */
     
    336336}
    337337
    338 void UIInformationGuestSession::initGuestSessionTree()
     338void UIGuestControlWidget::initGuestSessionTree()
    339339{
    340340    if (!m_comGuest.isOk())
     
    348348}
    349349
    350 void UIInformationGuestSession::cleanupListener()
     350void UIGuestControlWidget::cleanupListener()
    351351{
    352352    /* If event listener registered as passive one: */
     
    370370
    371371
    372 void UIInformationGuestSession::sltGuestSessionRegistered(CGuestSession guestSession)
     372void UIGuestControlWidget::sltGuestSessionRegistered(CGuestSession guestSession)
    373373{
    374374    if (!guestSession.isOk())
     
    377377}
    378378
    379 void UIInformationGuestSession::addGuestSession(CGuestSession guestSession)
     379void UIGuestControlWidget::addGuestSession(CGuestSession guestSession)
    380380{
    381381    UIGuestSessionTreeItem* sessionTreeItem = new UIGuestSessionTreeItem(m_pTreeWidget, guestSession);
    382382    connect(sessionTreeItem, &UIGuestSessionTreeItem::sigGuessSessionUpdated,
    383             this, &UIInformationGuestSession::sltTreeItemUpdated);
     383            this, &UIGuestControlWidget::sltTreeItemUpdated);
    384384    connect(sessionTreeItem, &UIGuestSessionTreeItem::sigGuestSessionErrorText,
    385             this, &UIInformationGuestSession::sltGuestControlErrorText);
    386 }
    387 
    388 void UIInformationGuestSession::sltGuestControlErrorText(QString strError)
     385            this, &UIGuestControlWidget::sltGuestControlErrorText);
     386}
     387
     388void UIGuestControlWidget::sltGuestControlErrorText(QString strError)
    389389{
    390390    if (m_pConsole)
     
    394394}
    395395
    396 void UIInformationGuestSession::sltTreeItemUpdated()
     396void UIGuestControlWidget::sltTreeItemUpdated()
    397397{
    398398    if (m_pTreeWidget)
     
    400400}
    401401
    402 void UIInformationGuestSession::sltGuestSessionUnregistered(CGuestSession guestSession)
     402void UIGuestControlWidget::sltGuestSessionUnregistered(CGuestSession guestSession)
    403403{
    404404    if (!guestSession.isOk())
     
    424424}
    425425
    426 #include "UIInformationGuestSession.moc"
     426#include "UIGuestControlWidget.moc"
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlWidget.h

    r71100 r71101  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIInformationGuestSession class declaration.
     3 * VBox Qt GUI - UIGuestControlWidget class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef ___UIInformationGuestSession_h___
    19 #define ___UIInformationGuestSession_h___
     18#ifndef ___UIGuestControlWidget_h___
     19#define ___UIGuestControlWidget_h___
    2020
    2121/* Qt includes: */
     
    4141/** QWidget extension
    4242  * providing GUI with guest session information and control tab in session-information window. */
    43 class UIInformationGuestSession : public QWidget
     43class UIGuestControlWidget : public QWidget
    4444{
    4545    Q_OBJECT;
     
    4747public:
    4848
    49     UIInformationGuestSession(QWidget *pParent, const CGuest &comGuest);
     49    UIGuestControlWidget(QWidget *pParent, const CGuest &comGuest);
    5050
    5151private slots:
     
    8585};
    8686
    87 #endif /* !___UIInformationGuestSession_h___ */
     87#endif /* !___UIGuestControlWidget_h___ */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette