VirtualBox

Changeset 100478 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 10, 2023 4:17:55 PM (17 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080. Adding some missing actions to dialog's menu.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.h

    r100329 r100478  
    9191    QAction             *m_pGoForward;
    9292    QAction             *m_pGoBackward;
    93 
     93    QPointer<QMenu>      m_pSubMenu;
    9494
    9595protected slots:
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp

    r100460 r100478  
    430430        pRootItem->setData(QApplication::translate("UIVisoCreatorWidget", "Local Path"), UICustomFileSystemModelData_LocalPath);
    431431    }
     432    if (m_pSubMenu)
     433        m_pSubMenu->setTitle(QApplication::translate("UIVisoCreatorWidget", "VISO Browser"));
     434
    432435    setFileTableLabelText(QApplication::translate("UIVisoCreatorWidget","VISO Content"));
    433436}
     
    633636{
    634637    AssertReturnVoid(pMenu);
    635 
    636     pMenu->addAction(m_pRemoveAction);
    637     pMenu->addAction(m_pRenameAction);
    638     pMenu->addAction(m_pCreateNewDirectoryAction);
    639     pMenu->addAction(m_pResetAction);
     638    QMenu *pSubMenu = new QMenu(QApplication::translate("UIVisoCreatorWidget", "VISO Browser"), pMenu);
     639    pMenu->addMenu(pSubMenu);
     640    AssertReturnVoid(pSubMenu);
     641    m_pSubMenu = pSubMenu;
     642
     643    m_pSubMenu->addAction(m_pGoBackward);
     644    m_pSubMenu->addAction(m_pGoForward);
     645    m_pSubMenu->addAction(m_pGoUp);
     646    m_pSubMenu->addAction(m_pGoHome);
     647
     648    m_pSubMenu->addSeparator();
     649
     650    m_pSubMenu->addAction(m_pRemoveAction);
     651    m_pSubMenu->addAction(m_pRenameAction);
     652    m_pSubMenu->addAction(m_pCreateNewDirectoryAction);
     653    m_pSubMenu->addAction(m_pResetAction);
    640654}
    641655
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r100389 r100478  
    598598            m_pMainMenu->addAction(m_pRemoveISOAction);
    599599    }
     600
     601    if (m_pHostBrowser)
     602        m_pHostBrowser->prepareMainMenu(m_pMainMenu);
     603
    600604    if (m_pVISOContentBrowser)
    601605        m_pVISOContentBrowser->prepareMainMenu(m_pMainMenu);
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.cpp

    r100332 r100478  
    174174{
    175175    setFileTableLabelText(QApplication::translate("UIVisoCreatorWidget","Host System"));
     176    if (m_pSubMenu)
     177        m_pSubMenu->setTitle(QApplication::translate("UIVisoCreatorWidget", "VISO Browser"));
    176178}
    177179
     
    271273}
    272274
     275void UIVisoHostBrowser::prepareMainMenu(QMenu *pMenu)
     276{
     277    AssertReturnVoid(pMenu);
     278    QMenu *pSubMenu = new QMenu(QApplication::translate("UIVisoCreatorWidget", "Host Browser"), pMenu);
     279    pMenu->addMenu(pSubMenu);
     280    AssertReturnVoid(pSubMenu);
     281    m_pSubMenu = pSubMenu;
     282
     283    m_pSubMenu->addAction(m_pGoBackward);
     284    m_pSubMenu->addAction(m_pGoForward);
     285    m_pSubMenu->addAction(m_pGoUp);
     286    m_pSubMenu->addAction(m_pGoHome);
     287}
     288
    273289void UIVisoHostBrowser::sltTableSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
    274290{
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.h

    r100329 r100478  
    6060    /* The list of path of the selected file objects. */
    6161    QStringList selectedPathList() const;
     62    void prepareMainMenu(QMenu *pMenu);
    6263
    6364public slots:
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