- Timestamp:
- Aug 24, 2018 4:56:38 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r73860 r73882 1206 1206 virtual void retranslateUi() /* override */ 1207 1207 { 1208 setName(QApplication::translate("UIActionPool", "&Log Viewer"));1208 setName(QApplication::translate("UIActionPool", "&Log")); 1209 1209 setStatusTip(QApplication::translate("UIActionPool", "Open the log menu")); 1210 1210 } … … 1630 1630 1631 1631 /* Create 'Log Viewer' actions: */ 1632 m_pool[UIActionIndex_M_Log ViewerWindow] = new UIActionMenuSelectorLog(this);1633 m_pool[UIActionIndex_M_Log Viewer] = new UIActionMenuSelectorLog(this);1634 m_pool[UIActionIndex_M_Log Viewer_T_Find] = new UIActionMenuSelectorLogTogglePaneFind(this);1635 m_pool[UIActionIndex_M_Log Viewer_T_Filter] = new UIActionMenuSelectorLogTogglePaneFilter(this);1636 m_pool[UIActionIndex_M_Log Viewer_T_Bookmark] = new UIActionMenuSelectorLogTogglePaneBookmark(this);1637 m_pool[UIActionIndex_M_Log Viewer_T_Settings] = new UIActionMenuSelectorLogTogglePaneSettings(this);1638 m_pool[UIActionIndex_M_Log Viewer_S_Refresh] = new UIActionMenuSelectorLogPerformRefresh(this);1639 m_pool[UIActionIndex_M_Log Viewer_S_Save] = new UIActionMenuSelectorLogPerformSave(this);1632 m_pool[UIActionIndex_M_LogWindow] = new UIActionMenuSelectorLog(this); 1633 m_pool[UIActionIndex_M_Log] = new UIActionMenuSelectorLog(this); 1634 m_pool[UIActionIndex_M_Log_T_Find] = new UIActionMenuSelectorLogTogglePaneFind(this); 1635 m_pool[UIActionIndex_M_Log_T_Filter] = new UIActionMenuSelectorLogTogglePaneFilter(this); 1636 m_pool[UIActionIndex_M_Log_T_Bookmark] = new UIActionMenuSelectorLogTogglePaneBookmark(this); 1637 m_pool[UIActionIndex_M_Log_T_Settings] = new UIActionMenuSelectorLogTogglePaneSettings(this); 1638 m_pool[UIActionIndex_M_Log_S_Refresh] = new UIActionMenuSelectorLogPerformRefresh(this); 1639 m_pool[UIActionIndex_M_Log_S_Save] = new UIActionMenuSelectorLogPerformSave(this); 1640 1640 1641 1641 /* Prepare update-handlers for known menus: */ … … 1645 1645 #endif 1646 1646 m_menuUpdateHandlers[UIActionIndex_Menu_Help].ptf = &UIActionPool::updateMenuHelp; 1647 m_menuUpdateHandlers[UIActionIndex_M_Log ViewerWindow].ptf = &UIActionPool::updateMenuLogViewerWindow;1648 m_menuUpdateHandlers[UIActionIndex_M_Log Viewer].ptf = &UIActionPool::updateMenuLogViewer;1647 m_menuUpdateHandlers[UIActionIndex_M_LogWindow].ptf = &UIActionPool::updateMenuLogViewerWindow; 1648 m_menuUpdateHandlers[UIActionIndex_M_Log].ptf = &UIActionPool::updateMenuLogViewer; 1649 1649 1650 1650 /* Invalidate all known menus: */ … … 1886 1886 { 1887 1887 /* Update corresponding menu: */ 1888 updateMenuLogViewerWrapper(action(UIActionIndex_M_Log ViewerWindow)->menu());1888 updateMenuLogViewerWrapper(action(UIActionIndex_M_LogWindow)->menu()); 1889 1889 1890 1890 /* Mark menu as valid: */ 1891 m_invalidations.remove(UIActionIndex_M_Log ViewerWindow);1891 m_invalidations.remove(UIActionIndex_M_LogWindow); 1892 1892 } 1893 1893 … … 1895 1895 { 1896 1896 /* Update corresponding menu: */ 1897 updateMenuLogViewerWrapper(action(UIActionIndex_M_Log Viewer)->menu());1897 updateMenuLogViewerWrapper(action(UIActionIndex_M_Log)->menu()); 1898 1898 1899 1899 /* Mark menu as valid: */ 1900 m_invalidations.remove(UIActionIndex_M_Log Viewer);1900 m_invalidations.remove(UIActionIndex_M_Log); 1901 1901 } 1902 1902 … … 1910 1910 1911 1911 /* 'Save' action: */ 1912 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log Viewer_S_Save)) || fSeparator;1912 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log_S_Save)) || fSeparator; 1913 1913 1914 1914 /* Separator? */ … … 1920 1920 1921 1921 /* 'Find' action: */ 1922 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log Viewer_T_Find)) || fSeparator;1922 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log_T_Find)) || fSeparator; 1923 1923 /* 'Filter' action: */ 1924 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log Viewer_T_Filter)) || fSeparator;1924 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log_T_Filter)) || fSeparator; 1925 1925 /* 'Bookmarks' action: */ 1926 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log Viewer_T_Bookmark)) || fSeparator;1926 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log_T_Bookmark)) || fSeparator; 1927 1927 /* 'Settings' action: */ 1928 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log Viewer_T_Settings)) || fSeparator;1928 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log_T_Settings)) || fSeparator; 1929 1929 1930 1930 /* Separator? */ … … 1936 1936 1937 1937 /* 'Refresh' action: */ 1938 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log Viewer_S_Refresh)) || fSeparator;;1938 fSeparator = addAction(pMenu, action(UIActionIndex_M_Log_S_Refresh)) || fSeparator;; 1939 1939 } 1940 1940 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r73859 r73882 88 88 #endif 89 89 90 /* 'Log Viewer' menu actions: */91 UIActionIndex_M_Log ViewerWindow,92 UIActionIndex_M_Log Viewer,93 UIActionIndex_M_Log Viewer_T_Find,94 UIActionIndex_M_Log Viewer_T_Filter,95 UIActionIndex_M_Log Viewer_T_Bookmark,96 UIActionIndex_M_Log Viewer_T_Settings,97 UIActionIndex_M_Log Viewer_S_Refresh,98 UIActionIndex_M_Log Viewer_S_Save,90 /* 'Log' menu actions: */ 91 UIActionIndex_M_LogWindow, 92 UIActionIndex_M_Log, 93 UIActionIndex_M_Log_T_Find, 94 UIActionIndex_M_Log_T_Filter, 95 UIActionIndex_M_Log_T_Bookmark, 96 UIActionIndex_M_Log_T_Settings, 97 UIActionIndex_M_Log_S_Refresh, 98 UIActionIndex_M_Log_S_Save, 99 99 100 100 /* Maximum index: */ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r73783 r73882 112 112 QMenu *UIVMLogViewerWidget::menu() const 113 113 { 114 return m_pActionPool->action(UIActionIndex_M_Log ViewerWindow)->menu();114 return m_pActionPool->action(UIActionIndex_M_LogWindow)->menu(); 115 115 } 116 116 … … 190 190 191 191 /* Enable/Disable toolbar actions (except Refresh) & tab widget according log presence: */ 192 m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Find)->setEnabled(!noLogsToShow);193 m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Filter)->setEnabled(!noLogsToShow);194 m_pActionPool->action(UIActionIndex_M_Log Viewer_S_Save)->setEnabled(!noLogsToShow);195 m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Bookmark)->setEnabled(!noLogsToShow);196 m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Settings)->setEnabled(!noLogsToShow);192 m_pActionPool->action(UIActionIndex_M_Log_T_Find)->setEnabled(!noLogsToShow); 193 m_pActionPool->action(UIActionIndex_M_Log_T_Filter)->setEnabled(!noLogsToShow); 194 m_pActionPool->action(UIActionIndex_M_Log_S_Save)->setEnabled(!noLogsToShow); 195 m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)->setEnabled(!noLogsToShow); 196 m_pActionPool->action(UIActionIndex_M_Log_T_Settings)->setEnabled(!noLogsToShow); 197 197 198 198 m_pTabWidget->show(); … … 437 437 { 438 438 /* Connect actions: */ 439 connect(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Find), &QAction::toggled,439 connect(m_pActionPool->action(UIActionIndex_M_Log_T_Find), &QAction::toggled, 440 440 this, &UIVMLogViewerWidget::sltPanelActionToggled); 441 connect(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Filter), &QAction::toggled,441 connect(m_pActionPool->action(UIActionIndex_M_Log_T_Filter), &QAction::toggled, 442 442 this, &UIVMLogViewerWidget::sltPanelActionToggled); 443 connect(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Bookmark), &QAction::toggled,443 connect(m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark), &QAction::toggled, 444 444 this, &UIVMLogViewerWidget::sltPanelActionToggled); 445 connect(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Settings), &QAction::toggled,445 connect(m_pActionPool->action(UIActionIndex_M_Log_T_Settings), &QAction::toggled, 446 446 this, &UIVMLogViewerWidget::sltPanelActionToggled); 447 connect(m_pActionPool->action(UIActionIndex_M_Log Viewer_S_Refresh), &QAction::triggered,447 connect(m_pActionPool->action(UIActionIndex_M_Log_S_Refresh), &QAction::triggered, 448 448 this, &UIVMLogViewerWidget::sltRefresh); 449 connect(m_pActionPool->action(UIActionIndex_M_Log Viewer_S_Save), &QAction::triggered,449 connect(m_pActionPool->action(UIActionIndex_M_Log_S_Save), &QAction::triggered, 450 450 this, &UIVMLogViewerWidget::sltSave); 451 451 } … … 486 486 connect(m_pSearchPanel, &UIVMLogViewerSearchPanel::sigHighlightingUpdated, 487 487 this, &UIVMLogViewerWidget::sltSearchResultHighLigting); 488 m_panelActionMap.insert(m_pSearchPanel, m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Find));488 m_panelActionMap.insert(m_pSearchPanel, m_pActionPool->action(UIActionIndex_M_Log_T_Find)); 489 489 490 490 /* Add into layout: */ … … 501 501 connect(m_pFilterPanel, &UIVMLogViewerFilterPanel::sigFilterApplied, 502 502 this, &UIVMLogViewerWidget::sltFilterApplied); 503 m_panelActionMap.insert(m_pFilterPanel, m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Filter));503 m_panelActionMap.insert(m_pFilterPanel, m_pActionPool->action(UIActionIndex_M_Log_T_Filter)); 504 504 505 505 /* Add into layout: */ … … 519 519 connect(m_pBookmarksPanel, &UIVMLogViewerBookmarksPanel::sigBookmarkSelected, 520 520 this, &UIVMLogViewerWidget::gotoBookmark); 521 m_panelActionMap.insert(m_pBookmarksPanel, m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Bookmark));521 m_panelActionMap.insert(m_pBookmarksPanel, m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)); 522 522 523 523 /* Add into layout: */ … … 539 539 connect(m_pSettingsPanel, &UIVMLogViewerSettingsPanel::sigChangeFont, this, &UIVMLogViewerWidget::sltChangeFont); 540 540 connect(m_pSettingsPanel, &UIVMLogViewerSettingsPanel::sigResetToDefaults, this, &UIVMLogViewerWidget::sltResetSettingsToDefault); 541 m_panelActionMap.insert(m_pSettingsPanel, m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Settings));541 m_panelActionMap.insert(m_pSettingsPanel, m_pActionPool->action(UIActionIndex_M_Log_T_Settings)); 542 542 543 543 /* Add into layout: */ … … 559 559 560 560 /* Add toolbar actions: */ 561 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log Viewer_S_Save));561 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log_S_Save)); 562 562 m_pToolBar->addSeparator(); 563 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Find));564 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Filter));565 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Bookmark));566 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log Viewer_T_Settings));563 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Find)); 564 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Filter)); 565 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)); 566 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log_T_Settings)); 567 567 m_pToolBar->addSeparator(); 568 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log Viewer_S_Refresh));568 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_Log_S_Refresh)); 569 569 570 570 #ifdef VBOX_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r73780 r73882 1236 1236 1237 1237 /* Prepare 'Log Viewer' menu: */ 1238 prepareMenuLogViewer(actionPool()->action(UIActionIndex_M_Log Viewer)->menu());1239 m_pLogViewerMenuAction = menuBar()->addMenu(actionPool()->action(UIActionIndex_M_Log Viewer)->menu());1238 prepareMenuLogViewer(actionPool()->action(UIActionIndex_M_Log)->menu()); 1239 m_pLogViewerMenuAction = menuBar()->addMenu(actionPool()->action(UIActionIndex_M_Log)->menu()); 1240 1240 1241 1241 /* Prepare 'Medium' menu: */ … … 1664 1664 1665 1665 /* Remember action list: */ 1666 m_logViewerActions << actionPool()->action(UIActionIndex_M_Log Viewer_T_Find)1667 << actionPool()->action(UIActionIndex_M_Log Viewer_T_Filter)1668 << actionPool()->action(UIActionIndex_M_Log Viewer_T_Bookmark)1669 << actionPool()->action(UIActionIndex_M_Log Viewer_T_Settings)1670 << actionPool()->action(UIActionIndex_M_Log Viewer_S_Refresh)1671 << actionPool()->action(UIActionIndex_M_Log Viewer_S_Save);1666 m_logViewerActions << actionPool()->action(UIActionIndex_M_Log_T_Find) 1667 << actionPool()->action(UIActionIndex_M_Log_T_Filter) 1668 << actionPool()->action(UIActionIndex_M_Log_T_Bookmark) 1669 << actionPool()->action(UIActionIndex_M_Log_T_Settings) 1670 << actionPool()->action(UIActionIndex_M_Log_S_Refresh) 1671 << actionPool()->action(UIActionIndex_M_Log_S_Save); 1672 1672 } 1673 1673 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r73846 r73882 659 659 if (isToolOpened(ToolTypeMachine_LogViewer)) 660 660 { 661 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log Viewer_S_Save));662 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log Viewer_T_Find));663 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log Viewer_T_Filter));664 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log Viewer_T_Bookmark));665 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log Viewer_T_Settings));666 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log Viewer_S_Refresh));661 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_S_Save)); 662 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_T_Find)); 663 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_T_Filter)); 664 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_T_Bookmark)); 665 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_T_Settings)); 666 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_S_Refresh)); 667 667 } 668 668
Note:
See TracChangeset
for help on using the changeset viewer.