Changeset 100962 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 23, 2023 6:54:29 PM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp
r100956 r100962 45 45 #endif 46 46 47 UIVMLogViewerPane lNew::UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer)47 UIVMLogViewerPaneContainer::UIVMLogViewerPaneContainer(QWidget *pParent, UIVMLogViewerWidget *pViewer) 48 48 : UIPaneContainer(pParent) 49 49 , m_pViewer(pViewer) … … 56 56 } 57 57 58 void UIVMLogViewerPane lNew::prepare()58 void UIVMLogViewerPaneContainer::prepare() 59 59 { 60 60 /* Search tab: */ … … 63 63 64 64 connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigHighlightingUpdated, 65 this, &UIVMLogViewerPane lNew::sigHighlightingUpdated);65 this, &UIVMLogViewerPaneContainer::sigHighlightingUpdated); 66 66 connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigSearchUpdated, 67 this, &UIVMLogViewerPane lNew::sigSearchUpdated);67 this, &UIVMLogViewerPaneContainer::sigSearchUpdated); 68 68 69 69 /* Filter tab: */ … … 72 72 73 73 connect(m_pFilterWidget, &UIVMLogViewerFilterWidget::sigFilterApplied, 74 this, &UIVMLogViewerPane lNew::sigFilterApplied);74 this, &UIVMLogViewerPaneContainer::sigFilterApplied); 75 75 76 76 /* Bookmark tab: */ … … 79 79 80 80 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteBookmarkByIndex, 81 this, &UIVMLogViewerPane lNew::sigDeleteBookmarkByIndex);81 this, &UIVMLogViewerPaneContainer::sigDeleteBookmarkByIndex); 82 82 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteAllBookmarks, 83 this, &UIVMLogViewerPane lNew::sigDeleteAllBookmarks);83 this, &UIVMLogViewerPaneContainer::sigDeleteAllBookmarks); 84 84 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigBookmarkSelected, 85 this, &UIVMLogViewerPane lNew::sigBookmarkSelected);85 this, &UIVMLogViewerPaneContainer::sigBookmarkSelected); 86 86 87 87 /* Preferences tab: */ … … 90 90 91 91 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigShowLineNumbers, 92 this, &UIVMLogViewerPane lNew::sigShowLineNumbers);92 this, &UIVMLogViewerPaneContainer::sigShowLineNumbers); 93 93 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigWrapLines, 94 this, &UIVMLogViewerPane lNew::sigWrapLines);94 this, &UIVMLogViewerPaneContainer::sigWrapLines); 95 95 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigChangeFontSizeInPoints, 96 this, &UIVMLogViewerPane lNew::sigChangeFontSizeInPoints);96 this, &UIVMLogViewerPaneContainer::sigChangeFontSizeInPoints); 97 97 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigChangeFont, 98 this, &UIVMLogViewerPane lNew::sigChangeFont);98 this, &UIVMLogViewerPaneContainer::sigChangeFont); 99 99 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigResetToDefaults, 100 this, &UIVMLogViewerPane lNew::sigResetToDefaults);100 this, &UIVMLogViewerPaneContainer::sigResetToDefaults); 101 101 102 102 retranslateUi(); 103 103 } 104 104 105 void UIVMLogViewerPane lNew::refreshSearch()105 void UIVMLogViewerPaneContainer::refreshSearch() 106 106 { 107 107 if (m_pSearchWidget) … … 109 109 } 110 110 111 QVector<float> UIVMLogViewerPane lNew::matchLocationVector() const111 QVector<float> UIVMLogViewerPaneContainer::matchLocationVector() const 112 112 { 113 113 if (!m_pSearchWidget) … … 116 116 } 117 117 118 int UIVMLogViewerPane lNew::matchCount() const118 int UIVMLogViewerPaneContainer::matchCount() const 119 119 { 120 120 if (!m_pSearchWidget) … … 123 123 } 124 124 125 void UIVMLogViewerPane lNew::applyFilter()125 void UIVMLogViewerPaneContainer::applyFilter() 126 126 { 127 127 if (m_pFilterWidget) … … 129 129 } 130 130 131 void UIVMLogViewerPane lNew::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList)131 void UIVMLogViewerPaneContainer::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList) 132 132 { 133 133 if (m_pBookmarksWidget) … … 135 135 } 136 136 137 void UIVMLogViewerPane lNew::disableEnableBookmarking(bool flag)137 void UIVMLogViewerPaneContainer::disableEnableBookmarking(bool flag) 138 138 { 139 139 if (m_pBookmarksWidget) … … 141 141 } 142 142 143 void UIVMLogViewerPane lNew::setShowLineNumbers(bool bShowLineNumbers)143 void UIVMLogViewerPaneContainer::setShowLineNumbers(bool bShowLineNumbers) 144 144 { 145 145 if (m_pPreferencesWidget) … … 147 147 } 148 148 149 void UIVMLogViewerPane lNew::setWrapLines(bool bWrapLines)149 void UIVMLogViewerPaneContainer::setWrapLines(bool bWrapLines) 150 150 { 151 151 if (m_pPreferencesWidget) … … 153 153 } 154 154 155 void UIVMLogViewerPane lNew::setFontSizeInPoints(int fontSizeInPoints)155 void UIVMLogViewerPaneContainer::setFontSizeInPoints(int fontSizeInPoints) 156 156 { 157 157 if (m_pPreferencesWidget) … … 159 159 } 160 160 161 void UIVMLogViewerPane lNew::retranslateUi()161 void UIVMLogViewerPaneContainer::retranslateUi() 162 162 { 163 163 setTabText(Page_Search, "Find"); … … 167 167 } 168 168 169 bool UIVMLogViewerPane lNew::eventFilter(QObject *pObject, QEvent *pEvent)169 bool UIVMLogViewerPaneContainer::eventFilter(QObject *pObject, QEvent *pEvent) 170 170 { 171 171 if (currentIndex() == static_cast<Page>(Page_Search)) … … 182 182 *********************************************************************************************************************************/ 183 183 184 UIVMLogViewerPane l::UIVMLogViewerPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)184 UIVMLogViewerPane::UIVMLogViewerPane(QWidget *pParent, UIVMLogViewerWidget *pViewer) 185 185 : QIWithRetranslateUI<QWidget>(pParent) 186 186 , m_pViewer(pViewer) … … 188 188 } 189 189 190 void UIVMLogViewerPane l::retranslateUi()191 { 192 } 193 194 UIVMLogViewerWidget* UIVMLogViewerPane l::viewer()190 void UIVMLogViewerPane::retranslateUi() 191 { 192 } 193 194 UIVMLogViewerWidget* UIVMLogViewerPane::viewer() 195 195 { 196 196 return m_pViewer; 197 197 } 198 198 199 const UIVMLogViewerWidget* UIVMLogViewerPane l::viewer() const199 const UIVMLogViewerWidget* UIVMLogViewerPane::viewer() const 200 200 { 201 201 return m_pViewer; 202 202 } 203 203 204 QTextDocument *UIVMLogViewerPane l::textDocument()204 QTextDocument *UIVMLogViewerPane::textDocument() 205 205 { 206 206 QPlainTextEdit *pEdit = textEdit(); … … 210 210 } 211 211 212 QPlainTextEdit *UIVMLogViewerPane l::textEdit()212 QPlainTextEdit *UIVMLogViewerPane::textEdit() 213 213 { 214 214 if (!viewer()) … … 220 220 } 221 221 222 const QString* UIVMLogViewerPane l::logString() const222 const QString* UIVMLogViewerPane::logString() const 223 223 { 224 224 if (!viewer()) -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r100956 r100962 45 45 class UIVMLogViewerPreferencesWidget; 46 46 47 class UIVMLogViewerPane lNew: public UIPaneContainer47 class UIVMLogViewerPaneContainer : public UIPaneContainer 48 48 { 49 49 Q_OBJECT; … … 66 66 public: 67 67 68 UIVMLogViewerPane lNew(QWidget *pParent, UIVMLogViewerWidget *pViewer);68 UIVMLogViewerPaneContainer(QWidget *pParent, UIVMLogViewerWidget *pViewer); 69 69 70 70 /** @name Search page pass through functions … … 120 120 121 121 /** UIDialonPanel extension acting as the base class for UIVMLogViewerXXXPanel widgets. */ 122 class UIVMLogViewerPane l: public QIWithRetranslateUI<QWidget>122 class UIVMLogViewerPane : public QIWithRetranslateUI<QWidget> 123 123 { 124 124 Q_OBJECT; … … 126 126 public: 127 127 128 UIVMLogViewerPane l(QWidget *pParent, UIVMLogViewerWidget *pViewer);128 UIVMLogViewerPane(QWidget *pParent, UIVMLogViewerWidget *pViewer); 129 129 130 130 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r100955 r100962 420 420 421 421 if (m_pPanel && m_pPanel->isVisible() && 422 m_pPanel->currentIndex() == static_cast<UIVMLogViewerPane lNew::Page>(UIVMLogViewerPanelNew::Page_Search))422 m_pPanel->currentIndex() == static_cast<UIVMLogViewerPaneContainer::Page>(UIVMLogViewerPaneContainer::Page_Search)) 423 423 m_pPanel->refreshSearch(); 424 424 … … 743 743 m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_Log_T_Preferences)); 744 744 745 m_pActionPool->action(UIActionIndex_M_Log_T_Find)->setData((int)UIVMLogViewerPane lNew::Page_Search);746 m_pActionPool->action(UIActionIndex_M_Log_T_Filter)->setData((int)UIVMLogViewerPane lNew::Page_Filter);747 m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)->setData((int)UIVMLogViewerPane lNew::Page_Bookmark);748 m_pActionPool->action(UIActionIndex_M_Log_T_Preferences)->setData((int)UIVMLogViewerPane lNew::Page_Preferences);745 m_pActionPool->action(UIActionIndex_M_Log_T_Find)->setData((int)UIVMLogViewerPaneContainer::Page_Search); 746 m_pActionPool->action(UIActionIndex_M_Log_T_Filter)->setData((int)UIVMLogViewerPaneContainer::Page_Filter); 747 m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)->setData((int)UIVMLogViewerPaneContainer::Page_Bookmark); 748 m_pActionPool->action(UIActionIndex_M_Log_T_Preferences)->setData((int)UIVMLogViewerPaneContainer::Page_Preferences); 749 749 750 750 /* Connect actions: */ … … 791 791 connect(m_pTabWidget, &QITabWidget::currentChanged, this, &UIVMLogViewerWidget::sltCurrentTabChanged); 792 792 793 m_pPanel = new UIVMLogViewerPane lNew(0, this);793 m_pPanel = new UIVMLogViewerPaneContainer(0, this); 794 794 AssertReturnVoid(m_pPanel); 795 795 installEventFilter(m_pPanel); … … 799 799 m_pPanel->setFontSizeInPoints(m_font.pointSize()); 800 800 m_pPanel->setVisible(false); 801 connect(m_pPanel, &UIVMLogViewerPane lNew::sigHighlightingUpdated,801 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigHighlightingUpdated, 802 802 this, &UIVMLogViewerWidget::sltSearchResultHighLigting); 803 connect(m_pPanel, &UIVMLogViewerPane lNew::sigSearchUpdated,803 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigSearchUpdated, 804 804 this, &UIVMLogViewerWidget::sltHandleSearchUpdated); 805 connect(m_pPanel, &UIVMLogViewerPane lNew::sigFilterApplied,805 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigFilterApplied, 806 806 this, &UIVMLogViewerWidget::sltFilterApplied); 807 connect(m_pPanel, &UIVMLogViewerPane lNew::sigDeleteBookmarkByIndex,807 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigDeleteBookmarkByIndex, 808 808 this, &UIVMLogViewerWidget::sltDeleteBookmarkByIndex); 809 connect(m_pPanel, &UIVMLogViewerPane lNew::sigDeleteAllBookmarks,809 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigDeleteAllBookmarks, 810 810 this, &UIVMLogViewerWidget::sltDeleteAllBookmarks); 811 connect(m_pPanel, &UIVMLogViewerPane lNew::sigBookmarkSelected,811 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigBookmarkSelected, 812 812 this, &UIVMLogViewerWidget::gotoBookmark); 813 connect(m_pPanel, &UIVMLogViewerPane lNew::sigHidden,813 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigHidden, 814 814 this, &UIVMLogViewerWidget::sltPanelContainerHidden); 815 815 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r100955 r100962 56 56 class UIVMLogTab; 57 57 class UIVMLogViewerBookmarksPanel; 58 class UIVMLogViewerPane lNew;58 class UIVMLogViewerPaneContainer; 59 59 class UIVMLogViewerFilterPanel; 60 60 class UIVMLogViewerPanel; … … 251 251 bool m_fCommitDataSignalReceived; 252 252 QPointer<UIVMLogPage> m_pPreviousLogPage; 253 UIVMLogViewerPane lNew*m_pPanel;253 UIVMLogViewerPaneContainer *m_pPanel; 254 254 QSet<QAction*> m_panelActions; 255 255 friend class UIVMLogViewerFilterWidget;
Note:
See TracChangeset
for help on using the changeset viewer.