VirtualBox

Changeset 100304 in vbox


Ignore:
Timestamp:
Jun 27, 2023 7:44:47 PM (17 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Adding icons and slots to go forward and backward actions.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
8 added
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox1.qrc

    r100279 r100304  
    289289        <file alias="file_manager_folder_16px.png">images/file_manager_folder_16px.png</file>
    290290        <file alias="file_manager_folder_symlink_16px.png">images/file_manager_folder_symlink_16px.png</file>
     291        <file alias="file_manager_go_backward_16px.png">images/file_manager_go_backward_16px.png</file>
     292        <file alias="file_manager_go_backward_24px.png">images/file_manager_go_backward_24px.png</file>
     293        <file alias="file_manager_go_backward_disabled_16px.png">images/file_manager_go_backward_disabled_16px.png</file>
     294        <file alias="file_manager_go_backward_disabled_24px.png">images/file_manager_go_backward_disabled_24px.png</file>
     295        <file alias="file_manager_go_forward_16px.png">images/file_manager_go_forward_16px.png</file>
     296        <file alias="file_manager_go_forward_24px.png">images/file_manager_go_forward_24px.png</file>
     297        <file alias="file_manager_go_forward_disabled_16px.png">images/file_manager_go_forward_disabled_16px.png</file>
     298        <file alias="file_manager_go_forward_disabled_24px.png">images/file_manager_go_forward_disabled_24px.png</file>
    291299        <file alias="file_manager_go_home_16px.png">images/file_manager_go_home_16px.png</file>
    292300        <file alias="file_manager_go_home_24px.png">images/file_manager_go_home_24px.png</file>
     
    502510        <file alias="log_viewer_filter_16px.png">images/log_viewer_filter_16px.png</file>
    503511        <file alias="log_viewer_filter_32px.png">images/log_viewer_filter_32px.png</file>
    504         <file alias="log_viewer_filter_add_16px.png">images/log_viewer_filter_add_16px.png</file>
    505         <file alias="log_viewer_filter_disabled_16px.png">images/log_viewer_filter_disabled_16px.png</file>
    506         <file alias="log_viewer_filter_disabled_32px.png">images/log_viewer_filter_disabled_32px.png</file>
    507         <file alias="log_viewer_find_16px.png">images/log_viewer_find_16px.png</file>
    508512    </qresource>
    509513</RCC>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox1_x2.qrc

    r100279 r100304  
    289289        <file alias="file_manager_folder_16px_x2.png">images/x2/file_manager_folder_16px_x2.png</file>
    290290        <file alias="file_manager_folder_symlink_16px_x2.png">images/x2/file_manager_folder_symlink_16px_x2.png</file>
     291        <file alias="file_manager_go_backward_16px_x2.png">images/x2/file_manager_go_backward_16px_x2.png</file>
     292        <file alias="file_manager_go_backward_24px_x2.png">images/x2/file_manager_go_backward_24px_x2.png</file>
     293        <file alias="file_manager_go_backward_disabled_16px_x2.png">images/x2/file_manager_go_backward_disabled_16px_x2.png</file>
     294        <file alias="file_manager_go_backward_disabled_24px_x2.png">images/x2/file_manager_go_backward_disabled_24px_x2.png</file>
     295        <file alias="file_manager_go_forward_16px_x2.png">images/x2/file_manager_go_forward_16px_x2.png</file>
     296        <file alias="file_manager_go_forward_24px_x2.png">images/x2/file_manager_go_forward_24px_x2.png</file>
     297        <file alias="file_manager_go_forward_disabled_16px_x2.png">images/x2/file_manager_go_forward_disabled_16px_x2.png</file>
     298        <file alias="file_manager_go_forward_disabled_24px_x2.png">images/x2/file_manager_go_forward_disabled_24px_x2.png</file>
    291299        <file alias="file_manager_go_home_16px_x2.png">images/x2/file_manager_go_home_16px_x2.png</file>
    292300        <file alias="file_manager_go_home_24px_x2.png">images/x2/file_manager_go_home_24px_x2.png</file>
     
    488496        <file alias="list_movedown_disabled_16px_x2.png">images/x2/list_movedown_disabled_16px_x2.png</file>
    489497        <file alias="list_moveup_16px_x2.png">images/x2/list_moveup_16px_x2.png</file>
    490         <file alias="list_moveup_disabled_16px_x2.png">images/x2/list_moveup_disabled_16px_x2.png</file>
    491         <file alias="log_viewer_bookmark_16px_x2.png">images/x2/log_viewer_bookmark_16px_x2.png</file>
    492         <file alias="log_viewer_bookmark_32px_x2.png">images/x2/log_viewer_bookmark_32px_x2.png</file>
    493         <file alias="log_viewer_bookmark_disabled_16px_x2.png">images/x2/log_viewer_bookmark_disabled_16px_x2.png</file>
    494498    </qresource>
    495499</RCC>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox1_x3.qrc

    r100279 r100304  
    289289        <file alias="file_manager_folder_16px_x3.png">images/x3/file_manager_folder_16px_x3.png</file>
    290290        <file alias="file_manager_folder_symlink_16px_x3.png">images/x3/file_manager_folder_symlink_16px_x3.png</file>
     291        <file alias="file_manager_go_backward_16px_x3.png">images/x3/file_manager_go_backward_16px_x3.png</file>
     292        <file alias="file_manager_go_backward_24px_x3.png">images/x3/file_manager_go_backward_24px_x3.png</file>
     293        <file alias="file_manager_go_backward_disabled_16px_x3.png">images/x3/file_manager_go_backward_disabled_16px_x3.png</file>
     294        <file alias="file_manager_go_backward_disabled_24px_x3.png">images/x3/file_manager_go_backward_disabled_24px_x3.png</file>
     295        <file alias="file_manager_go_forward_16px_x3.png">images/x3/file_manager_go_forward_16px_x3.png</file>
     296        <file alias="file_manager_go_forward_24px_x3.png">images/x3/file_manager_go_forward_24px_x3.png</file>
     297        <file alias="file_manager_go_forward_disabled_16px_x3.png">images/x3/file_manager_go_forward_disabled_16px_x3.png</file>
     298        <file alias="file_manager_go_forward_disabled_24px_x3.png">images/x3/file_manager_go_forward_disabled_24px_x3.png</file>
    291299        <file alias="file_manager_go_home_16px_x3.png">images/x3/file_manager_go_home_16px_x3.png</file>
    292300        <file alias="file_manager_go_home_24px_x3.png">images/x3/file_manager_go_home_24px_x3.png</file>
     
    489497        <file alias="list_moveup_16px_x3.png">images/x3/list_moveup_16px_x3.png</file>
    490498        <file alias="list_moveup_disabled_16px_x3.png">images/x3/list_moveup_disabled_16px_x3.png</file>
    491         <file alias="log_viewer_bookmark_16px_x3.png">images/x3/log_viewer_bookmark_16px_x3.png</file>
    492         <file alias="log_viewer_bookmark_32px_x3.png">images/x3/log_viewer_bookmark_32px_x3.png</file>
    493         <file alias="log_viewer_bookmark_disabled_16px_x3.png">images/x3/log_viewer_bookmark_disabled_16px_x3.png</file>
    494         <file alias="log_viewer_bookmark_disabled_32px_x3.png">images/x3/log_viewer_bookmark_disabled_32px_x3.png</file>
    495499    </qresource>
    496500</RCC>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox1_x4.qrc

    r100279 r100304  
    289289        <file alias="file_manager_folder_16px_x4.png">images/x4/file_manager_folder_16px_x4.png</file>
    290290        <file alias="file_manager_folder_symlink_16px_x4.png">images/x4/file_manager_folder_symlink_16px_x4.png</file>
     291        <file alias="file_manager_go_backward_16px_x4.png">images/x4/file_manager_go_backward_16px_x4.png</file>
     292        <file alias="file_manager_go_backward_24px_x4.png">images/x4/file_manager_go_backward_24px_x4.png</file>
     293        <file alias="file_manager_go_backward_disabled_16px_x4.png">images/x4/file_manager_go_backward_disabled_16px_x4.png</file>
     294        <file alias="file_manager_go_backward_disabled_24px_x4.png">images/x4/file_manager_go_backward_disabled_24px_x4.png</file>
     295        <file alias="file_manager_go_forward_16px_x4.png">images/x4/file_manager_go_forward_16px_x4.png</file>
     296        <file alias="file_manager_go_forward_24px_x4.png">images/x4/file_manager_go_forward_24px_x4.png</file>
     297        <file alias="file_manager_go_forward_disabled_16px_x4.png">images/x4/file_manager_go_forward_disabled_16px_x4.png</file>
     298        <file alias="file_manager_go_forward_disabled_24px_x4.png">images/x4/file_manager_go_forward_disabled_24px_x4.png</file>
    291299        <file alias="file_manager_go_home_16px_x4.png">images/x4/file_manager_go_home_16px_x4.png</file>
    292300        <file alias="file_manager_go_home_24px_x4.png">images/x4/file_manager_go_home_24px_x4.png</file>
     
    489497        <file alias="list_moveup_16px_x4.png">images/x4/list_moveup_16px_x4.png</file>
    490498        <file alias="list_moveup_disabled_16px_x4.png">images/x4/list_moveup_disabled_16px_x4.png</file>
    491         <file alias="log_viewer_bookmark_16px_x4.png">images/x4/log_viewer_bookmark_16px_x4.png</file>
    492         <file alias="log_viewer_bookmark_32px_x4.png">images/x4/log_viewer_bookmark_32px_x4.png</file>
    493         <file alias="log_viewer_bookmark_disabled_16px_x4.png">images/x4/log_viewer_bookmark_disabled_16px_x4.png</file>
    494         <file alias="log_viewer_bookmark_disabled_32px_x4.png">images/x4/log_viewer_bookmark_disabled_32px_x4.png</file>
    495499    </qresource>
    496500</RCC>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc

    r100279 r100304  
    11<RCC>
    22    <qresource suffix="/">
     3        <file alias="log_viewer_filter_add_16px.png">images/log_viewer_filter_add_16px.png</file>
     4        <file alias="log_viewer_filter_disabled_16px.png">images/log_viewer_filter_disabled_16px.png</file>
     5        <file alias="log_viewer_filter_disabled_32px.png">images/log_viewer_filter_disabled_32px.png</file>
     6        <file alias="log_viewer_find_16px.png">images/log_viewer_find_16px.png</file>
    37        <file alias="log_viewer_find_32px.png">images/log_viewer_find_32px.png</file>
    48        <file alias="log_viewer_find_disabled_16px.png">images/log_viewer_find_disabled_16px.png</file>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox2_x2.qrc

    r100279 r100304  
    11<RCC>
    22    <qresource suffix="/">
     3        <file alias="list_moveup_disabled_16px_x2.png">images/x2/list_moveup_disabled_16px_x2.png</file>
     4        <file alias="log_viewer_bookmark_16px_x2.png">images/x2/log_viewer_bookmark_16px_x2.png</file>
     5        <file alias="log_viewer_bookmark_32px_x2.png">images/x2/log_viewer_bookmark_32px_x2.png</file>
     6        <file alias="log_viewer_bookmark_disabled_16px_x2.png">images/x2/log_viewer_bookmark_disabled_16px_x2.png</file>
    37        <file alias="log_viewer_bookmark_disabled_32px_x2.png">images/x2/log_viewer_bookmark_disabled_32px_x2.png</file>
    48        <file alias="log_viewer_bookmark_off_16px_x2.png">images/x2/log_viewer_bookmark_off_16px_x2.png</file>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox2_x3.qrc

    r100279 r100304  
    11<RCC>
    22    <qresource suffix="/">
     3        <file alias="log_viewer_bookmark_16px_x3.png">images/x3/log_viewer_bookmark_16px_x3.png</file>
     4        <file alias="log_viewer_bookmark_32px_x3.png">images/x3/log_viewer_bookmark_32px_x3.png</file>
     5        <file alias="log_viewer_bookmark_disabled_16px_x3.png">images/x3/log_viewer_bookmark_disabled_16px_x3.png</file>
     6        <file alias="log_viewer_bookmark_disabled_32px_x3.png">images/x3/log_viewer_bookmark_disabled_32px_x3.png</file>
    37        <file alias="log_viewer_bookmark_off_16px_x3.png">images/x3/log_viewer_bookmark_off_16px_x3.png</file>
    48        <file alias="log_viewer_bookmark_on_16px_x3.png">images/x3/log_viewer_bookmark_on_16px_x3.png</file>
  • trunk/src/VBox/Frontends/VirtualBox/VirtualBox2_x4.qrc

    r100279 r100304  
    11<RCC>
    22    <qresource suffix="/">
     3        <file alias="log_viewer_bookmark_16px_x4.png">images/x4/log_viewer_bookmark_16px_x4.png</file>
     4        <file alias="log_viewer_bookmark_32px_x4.png">images/x4/log_viewer_bookmark_32px_x4.png</file>
     5        <file alias="log_viewer_bookmark_disabled_16px_x4.png">images/x4/log_viewer_bookmark_disabled_16px_x4.png</file>
     6        <file alias="log_viewer_bookmark_disabled_32px_x4.png">images/x4/log_viewer_bookmark_disabled_32px_x4.png</file>
    37        <file alias="log_viewer_bookmark_off_16px_x4.png">images/x4/log_viewer_bookmark_off_16px_x4.png</file>
    48        <file alias="log_viewer_bookmark_on_16px_x4.png">images/x4/log_viewer_bookmark_on_16px_x4.png</file>
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp

    r100300 r100304  
    18931893    UIActionMenuFileManagerGoForward(UIActionPool *pParent)
    18941894        : UIActionSimple(pParent,
    1895                          ":/file_manager_go_home_24px.png", ":/file_manager_go_home_16px.png",
    1896                          ":/file_manager_go_home_disabled_24px.png", ":/file_manager_go_home_disabled_16px.png")
     1895                         ":/file_manager_go_forward_24px.png", ":/file_manager_go_forward_16px.png",
     1896                         ":/file_manager_go_forward_disabled_24px.png", ":/file_manager_go_forward_disabled_16px.png")
    18971897    {}
    18981898
     
    19321932    UIActionMenuFileManagerGoBackward(UIActionPool *pParent)
    19331933        : UIActionSimple(pParent,
    1934                          ":/file_manager_go_home_24px.png", ":/file_manager_go_home_16px.png",
    1935                          ":/file_manager_go_home_disabled_24px.png", ":/file_manager_go_home_disabled_16px.png")
     1934                         ":/file_manager_go_backward_24px.png", ":/file_manager_go_backward_16px.png",
     1935                         ":/file_manager_go_backward_disabled_24px.png", ":/file_manager_go_backward_disabled_16px.png")
    19361936    {}
    19371937
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r100302 r100304  
    11481148    manageConnection(m_fIsCurrent, m_pActionPool->action(UIActionIndex_M_FileManager_S_Guest_GoUp), &UIFileManagerTable::sltGoUp);
    11491149    manageConnection(m_fIsCurrent, m_pActionPool->action(UIActionIndex_M_FileManager_S_Guest_GoHome), &UIFileManagerTable::sltGoHome);
     1150    manageConnection(m_fIsCurrent, m_pActionPool->action(UIActionIndex_M_FileManager_S_Guest_GoBackward), &UIFileManagerTable::sltGoBackward);
     1151    manageConnection(m_fIsCurrent, m_pActionPool->action(UIActionIndex_M_FileManager_S_Guest_GoForward), &UIFileManagerTable::sltGoForward);
    11501152    manageConnection(m_fIsCurrent, m_pActionPool->action(UIActionIndex_M_FileManager_S_Guest_Refresh), &UIFileManagerTable::sltRefresh);
    11511153    manageConnection(m_fIsCurrent, m_pActionPool->action(UIActionIndex_M_FileManager_S_Guest_Delete), &UIFileManagerTable::sltDelete);
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerHostTable.cpp

    r100302 r100304  
    544544    connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoHome), &QAction::triggered,
    545545            this, &UIFileManagerTable::sltGoHome);
     546    connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoForward), &QAction::triggered,
     547            this, &UIFileManagerTable::sltGoForward);
     548    connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoBackward), &QAction::triggered,
     549            this, &UIFileManagerTable::sltGoBackward);
    546550    connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Refresh), &QAction::triggered,
    547551            this, &UIFileManagerTable::sltRefresh);
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r100303 r100304  
    643643void UIFileManagerTable::sltGoForward()
    644644{
     645    if (m_pNavigationWidget)
     646        m_pNavigationWidget->goForwardInHistory();
    645647}
    646648
    647649void UIFileManagerTable::sltGoBackward()
    648650{
     651    if (m_pNavigationWidget)
     652        m_pNavigationWidget->goBackwardInHistory();
    649653}
    650654
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFileTableNavigationWidget.cpp

    r100302 r100304  
    278278        return 0;
    279279    return m_pHistoryComboBox->currentIndex();
     280}
     281
     282void UIFileTableNavigationWidget::goForwardInHistory()
     283{
     284    if (!m_pHistoryComboBox || m_pHistoryComboBox->currentIndex() >= m_pHistoryComboBox->count() - 1)
     285        return;
     286    m_pHistoryComboBox->setCurrentIndex(m_pHistoryComboBox->currentIndex() + 1);
     287}
     288
     289void UIFileTableNavigationWidget::goBackwardInHistory()
     290{
     291    if (!m_pHistoryComboBox || m_pHistoryComboBox->currentIndex() <= 0)
     292        return;
     293    m_pHistoryComboBox->setCurrentIndex(m_pHistoryComboBox->currentIndex() - 1);
    280294}
    281295
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFileTableNavigationWidget.h

    r100300 r100304  
    6262    int historyItemCount() const;
    6363    int currentHistoryIndex() const;
     64    void goForwardInHistory();
     65    void goBackwardInHistory();
    6466
    6567protected:
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