VirtualBox

Changeset 100880 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 15, 2023 11:31:30 AM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158800
Message:

FE/Qt: bugref:10496, bugref:6699. Removing the options panel from the file manager.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 deleted
4 edited

Legend:

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

    r100879 r100880  
    847847        src/guestctrl/UIFileManagerLogPanel.h \
    848848        src/guestctrl/UIFileManagerOperationsPanel.h \
    849         src/guestctrl/UIFileManagerOptionsPanel.h \
    850849        src/guestctrl/UIFileManagerPanel.h \
    851850        src/guestctrl/UIFileManagerTable.h \
     
    14301429        src/guestctrl/UIFileManagerPanel.cpp \
    14311430        src/guestctrl/UIFileManagerOperationsPanel.cpp \
    1432         src/guestctrl/UIFileManagerOptionsPanel.cpp \
    14331431        src/guestctrl/UIFileManagerTable.cpp \
    14341432        src/helpbrowser/UIHelpBrowserDialog.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.cpp

    r100879 r100880  
    4343#include "UIFileManager.h"
    4444#include "UIFileManagerPanel.h"
    45 #include "UIFileManagerOptionsPanel.h"
    4645#include "UIFileManagerLogPanel.h"
    4746#include "UIFileManagerOperationsPanel.h"
     
    136135    , m_pActionPool(pActionPool)
    137136    , m_fShowToolbar(fShowToolbar)
    138     , m_pOptionsPanel(0)
    139137    , m_pLogPanel(0)
    140138    , m_pOperationsPanel(0)
     
    237235    for (int i = 0; i < m_pFileTableSplitter->count(); ++i)
    238236        m_pFileTableSplitter->setCollapsible(i, false);
    239 
    240     /* Create options and session panels and insert them into pTopLayout: */
    241     prepareOptionsAndSessionPanels(pTopLayout);
    242237
    243238    /** Vertical splitter has 3 widgets. Log panel as bottom most one, operations panel on top of it,
     
    319314                    this, &UIFileManager::sltCopyHostToGuest);
    320315    }
    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     }
    330316    if (m_pLogPanel)
    331317    {
     
    347333        connect(m_pHostFileTable, &UIFileManagerHostTable::sigLogOutput,
    348334                this, &UIFileManager::sltReceieveLogOutput);
    349         connect(m_pHostFileTable, &UIFileManagerHostTable::sigDeleteConfirmationOptionChanged,
    350                 this, &UIFileManager::sltHandleOptionsUpdated);
    351335        connect(m_pHostFileTable, &UIFileManagerGuestTable::sigSelectionChanged,
    352336                this, &UIFileManager::sltFileTableSelectionChanged);
     
    445429}
    446430
    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 
    463431void UIFileManager::sltHandleHidePanel(UIDialogPanel *pPanel)
    464432{
     
    574542        if (pGuestFileTable)
    575543            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);
    590544    }
    591545}
     
    849803            connect(pGuestFileTable, &UIFileManagerGuestTable::sigNewFileOperation,
    850804                    this, &UIFileManager::sltReceieveNewFileOperation);
    851             connect(pGuestFileTable, &UIFileManagerGuestTable::sigDeleteConfirmationOptionChanged,
    852                     this, &UIFileManager::sltHandleOptionsUpdated);
    853805            connect(pGuestFileTable, &UIFileManagerGuestTable::sigStateChanged,
    854806                    this, &UIFileManager::sltGuestFileTableStateChanged);
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManager.h

    r100879 r100880  
    5656class UIFileManagerPanel;
    5757class UIFileManagerOperationsPanel;
    58 class UIFileManagerOptionsPanel;
    5958class UIFileManagerGuestTable;
    6059class UIFileManagerHostTable;
     
    123122    void sltReceieveNewFileOperation(const CProgress &comProgress, const QString &strTableName);
    124123    void sltFileOperationComplete(QUuid progressId);
    125     /** Performs whatever necessary when some signal about option change has been receieved. */
    126     void sltHandleOptionsUpdated();
    127124    void sltHandleHidePanel(UIDialogPanel *pPanel);
    128125    void sltHandleShowPanel(UIDialogPanel *pPanel);
     
    138135    void prepareVerticalToolBar(QHBoxLayout *layout);
    139136    void prepareToolBar();
    140     /** Creates options and sessions panels and adds them to @p pLayout.  */
    141     void prepareOptionsAndSessionPanels(QVBoxLayout *pLayout);
    142137    void prepareOperationsAndLogPanels(QSplitter *pSplitter);
    143138
     
    185180    QMap<UIDialogPanel*, QAction*> m_panelActionMap;
    186181    QList<UIDialogPanel*>          m_visiblePanelsList;
    187     UIFileManagerOptionsPanel     *m_pOptionsPanel;
    188182    UIFileManagerLogPanel         *m_pLogPanel;
    189183    UIFileManagerOperationsPanel  *m_pOperationsPanel;
     
    193187    QVector<QUuid> m_machineIds;
    194188
    195     friend class UIFileManagerOptionsPanel;
    196189    friend class UIFileManagerDialog;
    197190};
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.cpp

    r100879 r100880  
    3636#include "UIFileManagerPanel.h"
    3737
     38/* Other VBox includes: */
     39#include <iprt/assert.h>
    3840
    3941UIFileManagerPanel::UIFileManagerPanel(QWidget *pParent /* = 0 */)
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