Changeset 92710 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 2, 2021 2:31:27 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148609
- 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 32 32 #include "UIIconPool.h" 33 33 #include "UIFileManager.h" 34 #include "UIFileManagerGuestSessionPanel.h"35 34 #include "UIFileManagerOptionsPanel.h" 36 35 #include "UIFileManagerLogPanel.h" … … 129 128 , m_pOptionsPanel(0) 130 129 , m_pLogPanel(0) 131 , m_pGuestSessionPanel(0)132 130 , m_pOperationsPanel(0) 133 131 , m_fDialogBeingClosed(false) … … 456 454 if (!pLayout) 457 455 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 }465 456 466 457 m_pOptionsPanel = new UIFileManagerOptionsPanel(0 /*parent */, UIFileManagerOptions::instance()); … … 545 536 } 546 537 } 547 /* Make sure Session panel is visible: */548 if (m_pGuestSessionPanel && !m_pGuestSessionPanel->isVisible())549 showPanel(m_pGuestSessionPanel);550 538 } 551 539 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h
r92694 r92710 44 44 class UIFileManagerLogPanel; 45 45 class UIFileManagerOperationsPanel; 46 class UIFileManagerGuestSessionPanel;47 46 class UIFileManagerOptionsPanel; 48 47 class UIFileManagerGuestTable; … … 172 171 UIFileManagerOptionsPanel *m_pOptionsPanel; 173 172 UIFileManagerLogPanel *m_pLogPanel; 174 UIFileManagerGuestSessionPanel *m_pGuestSessionPanel;175 173 UIFileManagerOperationsPanel *m_pOperationsPanel; 176 174 bool m_fDialogBeingClosed; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestSessionPanel.cpp
r92649 r92710 103 103 if (!m_pMainLayout) 104 104 return; 105 m_pMainLayout->setSpacing(0); 106 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 105 107 106 108 m_pUserNameEdit = new QILineEdit; … … 284 286 if (m_pSessionCreateWidget) 285 287 mainLayout()->addWidget(m_pSessionCreateWidget); 288 mainLayout()->setSpacing(0); 289 mainLayout()->setContentsMargins(0, 0, 0, 0); 286 290 } 287 291 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r92688 r92710 19 19 #include <QDateTime> 20 20 #include <QFileInfo> 21 #include <QHBoxLayout> 21 22 #include <QUuid> 22 23 … … 28 29 #include "UIFileManager.h" 29 30 #include "UIFileManagerGuestTable.h" 31 #include "UIFileManagerGuestSessionPanel.h" 30 32 #include "UIMessageCenter.h" 31 33 #include "UIPathOperations.h" … … 145 147 } 146 148 149 #include <QPushButton> 147 150 UIFileManagerGuestTable::UIFileManagerGuestTable(UIActionPool *pActionPool, const CMachine &comMachine, QWidget *pParent /*= 0*/) 148 151 :UIFileManagerTable(pActionPool, pParent) 149 152 , m_comMachine(comMachine) 153 , m_pGuestSessionPanel(0) 150 154 { 151 155 prepareToolbar(); 156 prepareGuestSessionPanel(); 152 157 prepareActionConnections(); 153 158 retranslateUi(); … … 731 736 } 732 737 738 void 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 733 748 bool UIFileManagerGuestTable::checkGuestSession() 734 749 { -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.h
r92688 r92710 42 42 class UIActionPool; 43 43 class UICustomFileSystemItem; 44 class UIFileManagerGuestSessionPanel; 44 45 45 46 /** This class scans the guest file system by using the VBox Guest Control API … … 101 102 CEventListener &comEventListener, 102 103 CEventSource comEventSource); 103 104 void prepareGuestSessionPanel(); 104 105 105 106 CGuest m_comGuest; … … 112 113 CEventListener m_comSessionListener; 113 114 CEventListener m_comGuestListener; 115 UIFileManagerGuestSessionPanel *m_pGuestSessionPanel; 114 116 }; 115 117 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r92688 r92710 20 20 #include <QComboBox> 21 21 #include <QCheckBox> 22 #include <QHBoxLayout> 22 23 #include <QHeaderView> 23 24 #include <QItemDelegate> … … 698 699 , m_pActionPool(pActionPool) 699 700 , m_pToolBar(0) 701 , m_pMainLayout(0) 700 702 , m_pModel(0) 701 703 , m_pView(0) 702 704 , m_pProxyModel(0) 703 705 , m_pNavigationWidget(0) 704 , m_pMainLayout(0)705 706 , m_pWarningLabel(0) 706 707 , m_pathSeparator('/') -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.h
r91328 r92710 48 48 class QStackedWidget; 49 49 class QTextEdit; 50 class QHBoxLayout; 50 51 class QVBoxLayout; 51 52 class UIActionPool; … … 241 242 UIActionPool *m_pActionPool; 242 243 QIToolBar *m_pToolBar; 243 244 QGridLayout *m_pMainLayout; 244 245 /** Stores the drive letters the file system has (for windows system). For non-windows 245 246 * systems this is empty and for windows system it should at least contain C:/ */ … … 247 248 /** The set of actions which need some selection to work on. Like cut, copy etc. */ 248 249 QSet<QAction*> m_selectionDependentActions; 249 /** The absolu e path list of the file objects which user has chosen to cut/copy. this250 /** The absolute path list of the file objects which user has chosen to cut/copy. this 250 251 * list will be cleaned after a paste operation or overwritten by a subsequent cut/copy. 251 252 * Currently only used by the guest side. */ … … 296 297 UIFileManagerNavigationWidget *m_pNavigationWidget; 297 298 298 QGridLayout *m_pMainLayout;299 299 QILineEdit *m_pSearchLineEdit; 300 300 QColor m_searchLineUnmarkColor;
Note:
See TracChangeset
for help on using the changeset viewer.