VirtualBox

Changeset 92710 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Dec 2, 2021 2:31:27 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148609
Message:

FE/Qt: bugref:9371. Moving guest session panel under guest file table.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp

    r92692 r92710  
    3232#include "UIIconPool.h"
    3333#include "UIFileManager.h"
    34 #include "UIFileManagerGuestSessionPanel.h"
    3534#include "UIFileManagerOptionsPanel.h"
    3635#include "UIFileManagerLogPanel.h"
     
    129128    , m_pOptionsPanel(0)
    130129    , m_pLogPanel(0)
    131     , m_pGuestSessionPanel(0)
    132130    , m_pOperationsPanel(0)
    133131    , m_fDialogBeingClosed(false)
     
    456454    if (!pLayout)
    457455        return;
    458     m_pGuestSessionPanel = new UIFileManagerGuestSessionPanel;
    459     if (m_pGuestSessionPanel)
    460     {
    461         m_pGuestSessionPanel->hide();
    462         m_panelActionMap.insert(m_pGuestSessionPanel, m_pActionPool->action(UIActionIndex_M_FileManager_T_GuestSession));
    463         pLayout->addWidget(m_pGuestSessionPanel);
    464     }
    465456
    466457    m_pOptionsPanel = new UIFileManagerOptionsPanel(0 /*parent */, UIFileManagerOptions::instance());
     
    545536        }
    546537    }
    547     /* Make sure Session panel is visible: */
    548     if (m_pGuestSessionPanel && !m_pGuestSessionPanel->isVisible())
    549         showPanel(m_pGuestSessionPanel);
    550538}
    551539
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h

    r92694 r92710  
    4444class UIFileManagerLogPanel;
    4545class UIFileManagerOperationsPanel;
    46 class UIFileManagerGuestSessionPanel;
    4746class UIFileManagerOptionsPanel;
    4847class UIFileManagerGuestTable;
     
    172171    UIFileManagerOptionsPanel          *m_pOptionsPanel;
    173172    UIFileManagerLogPanel              *m_pLogPanel;
    174     UIFileManagerGuestSessionPanel     *m_pGuestSessionPanel;
    175173    UIFileManagerOperationsPanel       *m_pOperationsPanel;
    176174    bool                                m_fDialogBeingClosed;
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestSessionPanel.cpp

    r92649 r92710  
    103103    if (!m_pMainLayout)
    104104        return;
     105    m_pMainLayout->setSpacing(0);
     106    m_pMainLayout->setContentsMargins(0, 0, 0, 0);
    105107
    106108    m_pUserNameEdit = new QILineEdit;
     
    284286    if (m_pSessionCreateWidget)
    285287        mainLayout()->addWidget(m_pSessionCreateWidget);
     288    mainLayout()->setSpacing(0);
     289    mainLayout()->setContentsMargins(0, 0, 0, 0);
    286290}
    287291
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r92688 r92710  
    1919#include <QDateTime>
    2020#include <QFileInfo>
     21#include <QHBoxLayout>
    2122#include <QUuid>
    2223
     
    2829#include "UIFileManager.h"
    2930#include "UIFileManagerGuestTable.h"
     31#include "UIFileManagerGuestSessionPanel.h"
    3032#include "UIMessageCenter.h"
    3133#include "UIPathOperations.h"
     
    145147}
    146148
     149#include <QPushButton>
    147150UIFileManagerGuestTable::UIFileManagerGuestTable(UIActionPool *pActionPool, const CMachine &comMachine, QWidget *pParent /*= 0*/)
    148151    :UIFileManagerTable(pActionPool, pParent)
    149152    , m_comMachine(comMachine)
     153    , m_pGuestSessionPanel(0)
    150154{
    151155    prepareToolbar();
     156    prepareGuestSessionPanel();
    152157    prepareActionConnections();
    153158    retranslateUi();
     
    731736}
    732737
     738void UIFileManagerGuestTable::prepareGuestSessionPanel()
     739{
     740    if (m_pMainLayout)
     741    {
     742        m_pGuestSessionPanel = new UIFileManagerGuestSessionPanel;
     743        if (m_pGuestSessionPanel)
     744            m_pMainLayout->addWidget(m_pGuestSessionPanel, m_pMainLayout->rowCount(), 0, 1, m_pMainLayout->columnCount());
     745    }
     746}
     747
    733748bool UIFileManagerGuestTable::checkGuestSession()
    734749{
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h

    r92688 r92710  
    4242class UIActionPool;
    4343class UICustomFileSystemItem;
     44class UIFileManagerGuestSessionPanel;
    4445
    4546/** This class scans the guest file system by using the VBox Guest Control API
     
    101102                         CEventListener &comEventListener,
    102103                         CEventSource comEventSource);
    103 
     104    void prepareGuestSessionPanel();
    104105
    105106    CGuest                    m_comGuest;
     
    112113    CEventListener m_comSessionListener;
    113114    CEventListener m_comGuestListener;
     115    UIFileManagerGuestSessionPanel     *m_pGuestSessionPanel;
    114116};
    115117
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r92688 r92710  
    2020#include <QComboBox>
    2121#include <QCheckBox>
     22#include <QHBoxLayout>
    2223#include <QHeaderView>
    2324#include <QItemDelegate>
     
    698699    , m_pActionPool(pActionPool)
    699700    , m_pToolBar(0)
     701    , m_pMainLayout(0)
    700702    , m_pModel(0)
    701703    , m_pView(0)
    702704    , m_pProxyModel(0)
    703705    , m_pNavigationWidget(0)
    704     , m_pMainLayout(0)
    705706    , m_pWarningLabel(0)
    706707    , m_pathSeparator('/')
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.h

    r91328 r92710  
    4848class QStackedWidget;
    4949class QTextEdit;
     50class QHBoxLayout;
    5051class QVBoxLayout;
    5152class UIActionPool;
     
    241242    UIActionPool            *m_pActionPool;
    242243    QIToolBar               *m_pToolBar;
    243 
     244    QGridLayout     *m_pMainLayout;
    244245    /** Stores the drive letters the file system has (for windows system). For non-windows
    245246     *  systems this is empty and for windows system it should at least contain C:/ */
     
    247248    /** The set of actions which need some selection to work on. Like cut, copy etc. */
    248249    QSet<QAction*>           m_selectionDependentActions;
    249     /** The absolue path list of the file objects which user has chosen to cut/copy. this
     250    /** The absolute path list of the file objects which user has chosen to cut/copy. this
    250251     *  list will be cleaned after a paste operation or overwritten by a subsequent cut/copy.
    251252     *  Currently only used by the guest side. */
     
    296297    UIFileManagerNavigationWidget *m_pNavigationWidget;
    297298
    298     QGridLayout     *m_pMainLayout;
    299299    QILineEdit      *m_pSearchLineEdit;
    300300    QColor           m_searchLineUnmarkColor;
Note: See TracChangeset for help on using the changeset viewer.

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