Changeset 100880 in vbox for trunk/src/VBox
- Timestamp:
- Aug 15, 2023 11:31:30 AM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 158800
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r100879 r100880 847 847 src/guestctrl/UIFileManagerLogPanel.h \ 848 848 src/guestctrl/UIFileManagerOperationsPanel.h \ 849 src/guestctrl/UIFileManagerOptionsPanel.h \850 849 src/guestctrl/UIFileManagerPanel.h \ 851 850 src/guestctrl/UIFileManagerTable.h \ … … 1430 1429 src/guestctrl/UIFileManagerPanel.cpp \ 1431 1430 src/guestctrl/UIFileManagerOperationsPanel.cpp \ 1432 src/guestctrl/UIFileManagerOptionsPanel.cpp \1433 1431 src/guestctrl/UIFileManagerTable.cpp \ 1434 1432 src/helpbrowser/UIHelpBrowserDialog.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp
r100879 r100880 43 43 #include "UIFileManager.h" 44 44 #include "UIFileManagerPanel.h" 45 #include "UIFileManagerOptionsPanel.h"46 45 #include "UIFileManagerLogPanel.h" 47 46 #include "UIFileManagerOperationsPanel.h" … … 136 135 , m_pActionPool(pActionPool) 137 136 , m_fShowToolbar(fShowToolbar) 138 , m_pOptionsPanel(0)139 137 , m_pLogPanel(0) 140 138 , m_pOperationsPanel(0) … … 237 235 for (int i = 0; i < m_pFileTableSplitter->count(); ++i) 238 236 m_pFileTableSplitter->setCollapsible(i, false); 239 240 /* Create options and session panels and insert them into pTopLayout: */241 prepareOptionsAndSessionPanels(pTopLayout);242 237 243 238 /** Vertical splitter has 3 widgets. Log panel as bottom most one, operations panel on top of it, … … 319 314 this, &UIFileManager::sltCopyHostToGuest); 320 315 } 321 if (m_pOptionsPanel)322 {323 connect(m_pOptionsPanel, &UIFileManagerOptionsPanel::sigHidePanel,324 this, &UIFileManager::sltHandleHidePanel);325 connect(m_pOptionsPanel, &UIFileManagerOptionsPanel::sigShowPanel,326 this, &UIFileManager::sltHandleShowPanel);327 connect(m_pOptionsPanel, &UIFileManagerOptionsPanel::sigOptionsChanged,328 this, &UIFileManager::sltHandleOptionsUpdated);329 }330 316 if (m_pLogPanel) 331 317 { … … 347 333 connect(m_pHostFileTable, &UIFileManagerHostTable::sigLogOutput, 348 334 this, &UIFileManager::sltReceieveLogOutput); 349 connect(m_pHostFileTable, &UIFileManagerHostTable::sigDeleteConfirmationOptionChanged,350 this, &UIFileManager::sltHandleOptionsUpdated);351 335 connect(m_pHostFileTable, &UIFileManagerGuestTable::sigSelectionChanged, 352 336 this, &UIFileManager::sltFileTableSelectionChanged); … … 445 429 } 446 430 447 void UIFileManager::sltHandleOptionsUpdated()448 {449 if (m_pOptionsPanel)450 m_pOptionsPanel->update();451 452 for (int i = 0; i < m_pGuestTablesContainer->count(); ++i)453 {454 UIFileManagerGuestTable *pTable = qobject_cast<UIFileManagerGuestTable*>(m_pGuestTablesContainer->widget(i));455 if (pTable)456 pTable->optionsUpdated();457 }458 if (m_pHostFileTable)459 m_pHostFileTable->optionsUpdated();460 saveOptions();461 }462 463 431 void UIFileManager::sltHandleHidePanel(UIDialogPanel *pPanel) 464 432 { … … 574 542 if (pGuestFileTable) 575 543 pGuestFileTable->copyHostToGuest(m_pHostFileTable->selectedItemPathList()); 576 }577 }578 579 void UIFileManager::prepareOptionsAndSessionPanels(QVBoxLayout *pLayout)580 {581 if (!pLayout)582 return;583 584 m_pOptionsPanel = new UIFileManagerOptionsPanel(0 /*parent */, UIFileManagerOptions::instance());585 if (m_pOptionsPanel)586 {587 m_pOptionsPanel->hide();588 m_panelActionMap.insert(m_pOptionsPanel, m_pActionPool->action(UIActionIndex_M_FileManager_T_Options));589 pLayout->addWidget(m_pOptionsPanel);590 544 } 591 545 } … … 849 803 connect(pGuestFileTable, &UIFileManagerGuestTable::sigNewFileOperation, 850 804 this, &UIFileManager::sltReceieveNewFileOperation); 851 connect(pGuestFileTable, &UIFileManagerGuestTable::sigDeleteConfirmationOptionChanged,852 this, &UIFileManager::sltHandleOptionsUpdated);853 805 connect(pGuestFileTable, &UIFileManagerGuestTable::sigStateChanged, 854 806 this, &UIFileManager::sltGuestFileTableStateChanged); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h
r100879 r100880 56 56 class UIFileManagerPanel; 57 57 class UIFileManagerOperationsPanel; 58 class UIFileManagerOptionsPanel;59 58 class UIFileManagerGuestTable; 60 59 class UIFileManagerHostTable; … … 123 122 void sltReceieveNewFileOperation(const CProgress &comProgress, const QString &strTableName); 124 123 void sltFileOperationComplete(QUuid progressId); 125 /** Performs whatever necessary when some signal about option change has been receieved. */126 void sltHandleOptionsUpdated();127 124 void sltHandleHidePanel(UIDialogPanel *pPanel); 128 125 void sltHandleShowPanel(UIDialogPanel *pPanel); … … 138 135 void prepareVerticalToolBar(QHBoxLayout *layout); 139 136 void prepareToolBar(); 140 /** Creates options and sessions panels and adds them to @p pLayout. */141 void prepareOptionsAndSessionPanels(QVBoxLayout *pLayout);142 137 void prepareOperationsAndLogPanels(QSplitter *pSplitter); 143 138 … … 185 180 QMap<UIDialogPanel*, QAction*> m_panelActionMap; 186 181 QList<UIDialogPanel*> m_visiblePanelsList; 187 UIFileManagerOptionsPanel *m_pOptionsPanel;188 182 UIFileManagerLogPanel *m_pLogPanel; 189 183 UIFileManagerOperationsPanel *m_pOperationsPanel; … … 193 187 QVector<QUuid> m_machineIds; 194 188 195 friend class UIFileManagerOptionsPanel;196 189 friend class UIFileManagerDialog; 197 190 }; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.cpp
r100879 r100880 36 36 #include "UIFileManagerPanel.h" 37 37 38 /* Other VBox includes: */ 39 #include <iprt/assert.h> 38 40 39 41 UIFileManagerPanel::UIFileManagerPanel(QWidget *pParent /* = 0 */)
Note:
See TracChangeset
for help on using the changeset viewer.