Changeset 100936 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 22, 2023 1:01:35 PM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 8 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r100893 r100936 851 851 src/helpbrowser/UIHelpBrowserWidget.h \ 852 852 src/logviewer/UIVMLogPage.h \ 853 src/logviewer/UIVMLogViewerBookmarks Panel.h \853 src/logviewer/UIVMLogViewerBookmarksWidget.h \ 854 854 src/logviewer/UIVMLogViewerDialog.h \ 855 src/logviewer/UIVMLogViewerFilter Panel.h \856 src/logviewer/UIVMLogViewer OptionsPanel.h \855 src/logviewer/UIVMLogViewerFilterWidget.h \ 856 src/logviewer/UIVMLogViewerPreferencesWidget.h \ 857 857 src/logviewer/UIVMLogViewerPanel.h \ 858 src/logviewer/UIVMLogViewerSearch Panel.h \858 src/logviewer/UIVMLogViewerSearchWidget.h \ 859 859 src/logviewer/UIVMLogViewerTextEdit.h \ 860 860 src/logviewer/UIVMLogViewerWidget.h \ … … 1065 1065 src/helpbrowser/UIHelpViewer.cpp \ 1066 1066 src/helpbrowser/UIHelpBrowserWidget.cpp \ 1067 src/logviewer/UIVMLogViewerFilter Panel.cpp \1067 src/logviewer/UIVMLogViewerFilterWidget.cpp \ 1068 1068 src/logviewer/UIVMLogViewerTextEdit.cpp \ 1069 1069 src/logviewer/UIVMLogViewerWidget.cpp \ … … 1428 1428 src/helpbrowser/UIHelpBrowserWidget.cpp \ 1429 1429 src/logviewer/UIVMLogPage.cpp \ 1430 src/logviewer/UIVMLogViewerBookmarks Panel.cpp \1430 src/logviewer/UIVMLogViewerBookmarksWidget.cpp \ 1431 1431 src/logviewer/UIVMLogViewerDialog.cpp \ 1432 src/logviewer/UIVMLogViewerFilter Panel.cpp \1433 src/logviewer/UIVMLogViewer OptionsPanel.cpp \1432 src/logviewer/UIVMLogViewerFilterWidget.cpp \ 1433 src/logviewer/UIVMLogViewerPreferencesWidget.cpp \ 1434 1434 src/logviewer/UIVMLogViewerPanel.cpp \ 1435 src/logviewer/UIVMLogViewerSearch Panel.cpp \1435 src/logviewer/UIVMLogViewerSearchWidget.cpp \ 1436 1436 src/logviewer/UIVMLogViewerTextEdit.cpp \ 1437 1437 src/logviewer/UIVMLogViewerWidget.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksWidget.cpp
r100935 r100936 37 37 #include "QIToolButton.h" 38 38 #include "UIIconPool.h" 39 #include "UIVMLogViewerBookmarks Panel.h"39 #include "UIVMLogViewerBookmarksWidget.h" 40 40 #include "UIVMLogViewerWidget.h" 41 41 … … 43 43 #include <iprt/assert.h> 44 44 45 UIVMLogViewerBookmarks Panel::UIVMLogViewerBookmarksPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)45 UIVMLogViewerBookmarksWidget::UIVMLogViewerBookmarksWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer) 46 46 : UIVMLogViewerPanel(pParent, pViewer) 47 47 , m_iMaxBookmarkTextLength(60) … … 57 57 } 58 58 59 void UIVMLogViewerBookmarks Panel::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList)59 void UIVMLogViewerBookmarksWidget::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList) 60 60 { 61 61 if (!m_pBookmarksComboBox || !viewer()) … … 84 84 } 85 85 86 void UIVMLogViewerBookmarks Panel::disableEnableBookmarking(bool flag)86 void UIVMLogViewerBookmarksWidget::disableEnableBookmarking(bool flag) 87 87 { 88 88 m_pBookmarksComboBox->setEnabled(flag); … … 94 94 } 95 95 96 void UIVMLogViewerBookmarks Panel::setBookmarkIndex(int index)96 void UIVMLogViewerBookmarksWidget::setBookmarkIndex(int index) 97 97 { 98 98 if (!m_pBookmarksComboBox) … … 108 108 } 109 109 110 void UIVMLogViewerBookmarks Panel::prepareWidgets()110 void UIVMLogViewerBookmarksWidget::prepareWidgets() 111 111 { 112 112 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 181 181 } 182 182 183 void UIVMLogViewerBookmarks Panel::prepareConnections()183 void UIVMLogViewerBookmarksWidget::prepareConnections() 184 184 { 185 185 connect(m_pBookmarksComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 186 this, &UIVMLogViewerBookmarks Panel::sltBookmarkSelected);187 188 connect(m_pGotoSelectedBookmark, &QIToolButton::clicked, this, &UIVMLogViewerBookmarks Panel::sltGotoSelectedBookmark);189 connect(m_pNextButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarks Panel::sltGotoNextBookmark);190 connect(m_pPreviousButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarks Panel::sltGotoPreviousBookmark);191 192 connect(m_pDeleteAllButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarks Panel::sigDeleteAllBookmarks);193 connect(m_pDeleteCurrentButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarks Panel::sltDeleteCurrentBookmark);194 } 195 196 197 void UIVMLogViewerBookmarks Panel::retranslateUi()186 this, &UIVMLogViewerBookmarksWidget::sltBookmarkSelected); 187 188 connect(m_pGotoSelectedBookmark, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksWidget::sltGotoSelectedBookmark); 189 connect(m_pNextButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksWidget::sltGotoNextBookmark); 190 connect(m_pPreviousButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksWidget::sltGotoPreviousBookmark); 191 192 connect(m_pDeleteAllButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksWidget::sigDeleteAllBookmarks); 193 connect(m_pDeleteCurrentButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksWidget::sltDeleteCurrentBookmark); 194 } 195 196 197 void UIVMLogViewerBookmarksWidget::retranslateUi() 198 198 { 199 199 UIVMLogViewerPanel::retranslateUi(); … … 206 206 } 207 207 208 void UIVMLogViewerBookmarks Panel::sltDeleteCurrentBookmark()208 void UIVMLogViewerBookmarksWidget::sltDeleteCurrentBookmark() 209 209 { 210 210 if (!m_pBookmarksComboBox) … … 216 216 } 217 217 218 void UIVMLogViewerBookmarks Panel::sltBookmarkSelected(int index)218 void UIVMLogViewerBookmarksWidget::sltBookmarkSelected(int index) 219 219 { 220 220 /* Do nothing if the index is 0, that is combo-box title item: */ … … 225 225 226 226 227 void UIVMLogViewerBookmarks Panel::sltGotoNextBookmark()227 void UIVMLogViewerBookmarksWidget::sltGotoNextBookmark() 228 228 { 229 229 /* go to next bookmark or wrap around to the beginning of the list: */ … … 235 235 236 236 237 void UIVMLogViewerBookmarks Panel::sltGotoPreviousBookmark()237 void UIVMLogViewerBookmarksWidget::sltGotoPreviousBookmark() 238 238 { 239 239 /* go to previous bookmark or wrap around to the end of the list: */ … … 244 244 } 245 245 246 void UIVMLogViewerBookmarks Panel::sltGotoSelectedBookmark()246 void UIVMLogViewerBookmarksWidget::sltGotoSelectedBookmark() 247 247 { 248 248 if (!m_pBookmarksComboBox || m_pBookmarksComboBox->count() <= 1) -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksWidget.h
r100935 r100936 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarks Panel_h29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarks Panel_h28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksWidget_h 29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksWidget_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 43 43 /** UIVMLogViewerPanel extension providing GUI for bookmark management. Show a list of bookmarks currently set 44 44 * for displayed log page. It has controls to navigate and clear bookmarks. */ 45 class UIVMLogViewerBookmarks Panel: public UIVMLogViewerPanel45 class UIVMLogViewerBookmarksWidget : public UIVMLogViewerPanel 46 46 { 47 47 Q_OBJECT; … … 49 49 public: 50 50 51 UIVMLogViewerBookmarks Panel(QWidget *pParent, UIVMLogViewerWidget *pViewer);51 UIVMLogViewerBookmarksWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer); 52 52 53 53 /** Adds a single bookmark to an existing list of bookmarks. Possibly called … … 97 97 }; 98 98 99 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarks Panel_h */99 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksWidget_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterWidget.cpp
r100935 r100936 44 44 #include "UIIconPool.h" 45 45 #include "UIVMLogPage.h" 46 #include "UIVMLogViewerFilter Panel.h"46 #include "UIVMLogViewerFilterWidget.h" 47 47 #include "UIVMLogViewerWidget.h" 48 48 #ifdef VBOX_WS_MAC … … 258 258 259 259 /********************************************************************************************************************************* 260 * UIVMLogViewerFilter Panelimplementation. *260 * UIVMLogViewerFilterWidget implementation. * 261 261 *********************************************************************************************************************************/ 262 262 263 UIVMLogViewerFilter Panel::UIVMLogViewerFilterPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)263 UIVMLogViewerFilterWidget::UIVMLogViewerFilterWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer) 264 264 : UIVMLogViewerPanel(pParent, pViewer) 265 265 , m_pFilterLabel(0) … … 280 280 } 281 281 282 void UIVMLogViewerFilter Panel::applyFilter()282 void UIVMLogViewerFilterWidget::applyFilter() 283 283 { 284 284 if (isVisible()) … … 290 290 } 291 291 292 void UIVMLogViewerFilter Panel::filter()292 void UIVMLogViewerFilterWidget::filter() 293 293 { 294 294 if (!viewer()) … … 337 337 } 338 338 339 void UIVMLogViewerFilter Panel::resetFiltering()339 void UIVMLogViewerFilterWidget::resetFiltering() 340 340 { 341 341 UIVMLogPage *logPage = viewer()->currentLogPage(); … … 350 350 } 351 351 352 bool UIVMLogViewerFilter Panel::applyFilterTermsToString(const QString& string)352 bool UIVMLogViewerFilterWidget::applyFilterTermsToString(const QString& string) 353 353 { 354 354 /* Number of the filter terms contained with the @p string: */ … … 385 385 386 386 387 void UIVMLogViewerFilter Panel::sltAddFilterTerm()387 void UIVMLogViewerFilterWidget::sltAddFilterTerm() 388 388 { 389 389 if (!m_pFilterComboBox) … … 406 406 } 407 407 408 void UIVMLogViewerFilter Panel::sltClearFilterTerms()408 void UIVMLogViewerFilterWidget::sltClearFilterTerms() 409 409 { 410 410 if (m_filterTermSet.empty()) … … 416 416 } 417 417 418 void UIVMLogViewerFilter Panel::sltOperatorButtonChanged(QAbstractButton *pButton)418 void UIVMLogViewerFilterWidget::sltOperatorButtonChanged(QAbstractButton *pButton) 419 419 { 420 420 int buttonId = m_pButtonGroup->id(pButton); … … 425 425 } 426 426 427 void UIVMLogViewerFilter Panel::sltRemoveFilterTerm(const QString &termString)427 void UIVMLogViewerFilterWidget::sltRemoveFilterTerm(const QString &termString) 428 428 { 429 429 m_filterTermSet.remove(termString); … … 431 431 } 432 432 433 void UIVMLogViewerFilter Panel::prepareWidgets()433 void UIVMLogViewerFilterWidget::prepareWidgets() 434 434 { 435 435 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 492 492 } 493 493 494 void UIVMLogViewerFilter Panel::prepareRadioButtonGroup(QVBoxLayout *pLayout)494 void UIVMLogViewerFilterWidget::prepareRadioButtonGroup(QVBoxLayout *pLayout) 495 495 { 496 496 /* Create radio-button container: */ … … 555 555 } 556 556 557 void UIVMLogViewerFilter Panel::prepareConnections()558 { 559 connect(m_pAddFilterTermButton, &QIToolButton::clicked, this, &UIVMLogViewerFilter Panel::sltAddFilterTerm);557 void UIVMLogViewerFilterWidget::prepareConnections() 558 { 559 connect(m_pAddFilterTermButton, &QIToolButton::clicked, this, &UIVMLogViewerFilterWidget::sltAddFilterTerm); 560 560 connect(m_pButtonGroup, static_cast<void (QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 561 this, &UIVMLogViewerFilter Panel::sltOperatorButtonChanged);561 this, &UIVMLogViewerFilterWidget::sltOperatorButtonChanged); 562 562 connect(m_pFilterComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 563 this, &UIVMLogViewerFilter Panel::sltAddFilterTerm);563 this, &UIVMLogViewerFilterWidget::sltAddFilterTerm); 564 564 connect(m_pFilterTermsLineEdit, &UIVMFilterLineEdit::sigFilterTermRemoved, 565 this, &UIVMLogViewerFilter Panel::sltRemoveFilterTerm);565 this, &UIVMLogViewerFilterWidget::sltRemoveFilterTerm); 566 566 connect(m_pFilterTermsLineEdit, &UIVMFilterLineEdit::sigClearAll, 567 this, &UIVMLogViewerFilter Panel::sltClearFilterTerms);568 } 569 570 571 void UIVMLogViewerFilter Panel::retranslateUi()567 this, &UIVMLogViewerFilterWidget::sltClearFilterTerms); 568 } 569 570 571 void UIVMLogViewerFilterWidget::retranslateUi() 572 572 { 573 573 UIVMLogViewerPanel::retranslateUi(); … … 581 581 } 582 582 583 bool UIVMLogViewerFilter Panel::eventFilter(QObject *pObject, QEvent *pEvent)583 bool UIVMLogViewerFilterWidget::eventFilter(QObject *pObject, QEvent *pEvent) 584 584 { 585 585 /* Handle only events sent to viewer(): */ … … 619 619 620 620 /** Handles the Qt show @a pEvent. */ 621 void UIVMLogViewerFilter Panel::showEvent(QShowEvent *pEvent)621 void UIVMLogViewerFilterWidget::showEvent(QShowEvent *pEvent) 622 622 { 623 623 UIVMLogViewerPanel::showEvent(pEvent); … … 627 627 } 628 628 629 void UIVMLogViewerFilter Panel::hideEvent(QHideEvent *pEvent)629 void UIVMLogViewerFilterWidget::hideEvent(QHideEvent *pEvent) 630 630 { 631 631 UIVMLogViewerPanel::hideEvent(pEvent); … … 633 633 } 634 634 635 #include "UIVMLogViewerFilter Panel.moc"635 #include "UIVMLogViewerFilterWidget.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterWidget.h
r100935 r100936 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilter Panel_h29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilter Panel_h28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterWidget_h 29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterWidget_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 53 53 /** QWidget extension 54 54 * providing GUI for filter panel in VM Log Viewer. */ 55 class UIVMLogViewerFilter Panel: public UIVMLogViewerPanel55 class UIVMLogViewerFilterWidget : public UIVMLogViewerPanel 56 56 { 57 57 Q_OBJECT; … … 65 65 /** Constructs the filter-panel by passing @a pParent to the QWidget base-class constructor. 66 66 * @param pViewer Specifies reference to the VM Log-Viewer this filter-panel belongs to. */ 67 UIVMLogViewerFilter Panel(QWidget *pParent, UIVMLogViewerWidget *pViewer);67 UIVMLogViewerFilterWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer); 68 68 69 69 public slots: … … 123 123 }; 124 124 125 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilter Panel_h */125 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterWidget_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp
r100933 r100936 36 36 #include "UIVMLogViewerPanel.h" 37 37 #include "UIVMLogViewerWidget.h" 38 #include "UIVMLogViewerSearchPanel.h" 39 #include "UIVMLogViewerFilterPanel.h" 40 #include "UIVMLogViewerBookmarksPanel.h" 38 #include "UIVMLogViewerSearchWidget.h" 39 #include "UIVMLogViewerFilterWidget.h" 40 #include "UIVMLogViewerBookmarksWidget.h" 41 #include "UIVMLogViewerPreferencesWidget.h" 41 42 42 43 #ifdef VBOX_WS_MAC … … 50 51 , m_pFilterWidget(0) 51 52 , m_pBookmarksWidget(0) 53 , m_pPreferencesWidget(0) 52 54 { 53 55 prepare(); … … 57 59 { 58 60 /* Search tab: */ 59 m_pSearchWidget = new UIVMLogViewerSearch Panel(0, m_pViewer);61 m_pSearchWidget = new UIVMLogViewerSearchWidget(0, m_pViewer); 60 62 insertTab(Page_Search, m_pSearchWidget); 61 63 62 connect(m_pSearchWidget, &UIVMLogViewerSearch Panel::sigHighlightingUpdated,64 connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigHighlightingUpdated, 63 65 this, &UIVMLogViewerPanelNew::sigHighlightingUpdated); 64 connect(m_pSearchWidget, &UIVMLogViewerSearch Panel::sigSearchUpdated,66 connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigSearchUpdated, 65 67 this, &UIVMLogViewerPanelNew::sigSearchUpdated); 66 68 67 69 /* Filter tab: */ 68 m_pFilterWidget = new UIVMLogViewerFilter Panel(0, m_pViewer);70 m_pFilterWidget = new UIVMLogViewerFilterWidget(0, m_pViewer); 69 71 insertTab(Page_Filter, m_pFilterWidget); 70 72 71 connect(m_pFilterWidget, &UIVMLogViewerFilter Panel::sigFilterApplied,73 connect(m_pFilterWidget, &UIVMLogViewerFilterWidget::sigFilterApplied, 72 74 this, &UIVMLogViewerPanelNew::sigFilterApplied); 73 75 74 76 /* Bookmark tab: */ 75 m_pBookmarksWidget = new UIVMLogViewerBookmarks Panel(0, m_pViewer);77 m_pBookmarksWidget = new UIVMLogViewerBookmarksWidget(0, m_pViewer); 76 78 insertTab(Page_Bookmark, m_pBookmarksWidget); 77 79 78 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarks Panel::sigDeleteBookmarkByIndex,80 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteBookmarkByIndex, 79 81 this, &UIVMLogViewerPanelNew::sigDeleteBookmarkByIndex); 80 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarks Panel::sigDeleteAllBookmarks,82 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteAllBookmarks, 81 83 this, &UIVMLogViewerPanelNew::sigDeleteAllBookmarks); 82 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarks Panel::sigBookmarkSelected,84 connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigBookmarkSelected, 83 85 this, &UIVMLogViewerPanelNew::sigBookmarkSelected); 86 87 /* Preferences tab: */ 88 m_pPreferencesWidget = new UIVMLogViewerPreferencesWidget(0, m_pViewer); 89 insertTab(Page_Preferences, m_pPreferencesWidget); 90 91 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigShowLineNumbers, 92 this, &UIVMLogViewerPanelNew::sigShowLineNumbers); 93 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigWrapLines, 94 this, &UIVMLogViewerPanelNew::sigWrapLines); 95 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigChangeFontSizeInPoints, 96 this, &UIVMLogViewerPanelNew::sigChangeFontSizeInPoints); 97 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigChangeFont, 98 this, &UIVMLogViewerPanelNew::sigChangeFont); 99 connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigResetToDefaults, 100 this, &UIVMLogViewerPanelNew::sigResetToDefaults); 84 101 85 102 retranslateUi(); … … 124 141 } 125 142 143 void UIVMLogViewerPanelNew::setShowLineNumbers(bool bShowLineNumbers) 144 { 145 if (m_pPreferencesWidget) 146 m_pPreferencesWidget->setShowLineNumbers(bShowLineNumbers); 147 } 148 149 void UIVMLogViewerPanelNew::setWrapLines(bool bWrapLines) 150 { 151 if (m_pPreferencesWidget) 152 m_pPreferencesWidget->setWrapLines(bWrapLines); 153 } 154 155 void UIVMLogViewerPanelNew::setFontSizeInPoints(int fontSizeInPoints) 156 { 157 if (m_pPreferencesWidget) 158 m_pPreferencesWidget->setFontSizeInPoints(fontSizeInPoints); 159 } 160 126 161 void UIVMLogViewerPanelNew::retranslateUi() 127 162 { … … 129 164 setTabText(Page_Filter, "Filter"); 130 165 setTabText(Page_Bookmark, "Bookmarks"); 166 setTabText(Page_Preferences, "Preferences"); 131 167 } 132 168 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r100933 r100936 40 40 class QTextDocument; 41 41 class UIVMLogViewerWidget; 42 class UIVMLogViewerSearchPanel; 43 class UIVMLogViewerFilterPanel; 44 class UIVMLogViewerBookmarksPanel; 42 class UIVMLogViewerSearchWidget; 43 class UIVMLogViewerFilterWidget; 44 class UIVMLogViewerBookmarksWidget; 45 class UIVMLogViewerPreferencesWidget; 45 46 46 47 class UIVMLogViewerPanelNew : public QIWithRetranslateUI<UIDialogPanelBase> … … 56 57 void sigDeleteAllBookmarks(); 57 58 void sigBookmarkSelected(int index); 59 60 void sigShowLineNumbers(bool show); 61 void sigWrapLines(bool show); 62 void sigChangeFontSizeInPoints(int size); 63 void sigChangeFont(QFont font); 64 void sigResetToDefaults(); 58 65 59 66 public: … … 80 87 /** @} */ 81 88 89 /** @name Preferences page pass through functions 90 * @{ */ 91 void setShowLineNumbers(bool bShowLineNumbers); 92 void setWrapLines(bool bWrapLines); 93 void setFontSizeInPoints(int fontSizeInPoints); 94 /** @} */ 95 82 96 enum Page 83 97 { … … 98 112 void prepare() override; 99 113 100 UIVMLogViewerWidget *m_pViewer;101 102 UIVMLogViewer SearchPanel *m_pSearchWidget;103 UIVMLogViewer FilterPanel *m_pFilterWidget;104 UIVMLogViewer BookmarksPanel *m_pBookmarksWidget;114 UIVMLogViewerWidget *m_pViewer; 115 UIVMLogViewerSearchWidget *m_pSearchWidget; 116 UIVMLogViewerFilterWidget *m_pFilterWidget; 117 UIVMLogViewerBookmarksWidget *m_pBookmarksWidget; 118 UIVMLogViewerPreferencesWidget *m_pPreferencesWidget; 105 119 }; 106 120 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPreferencesWidget.cpp
r100935 r100936 37 37 #include "QIToolButton.h" 38 38 #include "UIIconPool.h" 39 #include "UIVMLogViewer OptionsPanel.h"39 #include "UIVMLogViewerPreferencesWidget.h" 40 40 #include "UIVMLogViewerWidget.h" 41 41 42 43 UIVMLogViewerOptionsPanel::UIVMLogViewerOptionsPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer) 42 /* Other VBox includes: */ 43 #include <iprt/assert.h> 44 45 46 UIVMLogViewerPreferencesWidget::UIVMLogViewerPreferencesWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer) 44 47 : UIVMLogViewerPanel(pParent, pViewer) 45 48 , m_pLineNumberCheckBox(0) … … 53 56 prepareWidgets(); 54 57 prepareConnections(); 55 } 56 57 void UIVMLogViewerOptionsPanel::setShowLineNumbers(bool bShowLineNumbers) 58 retranslateUi(); 59 } 60 61 void UIVMLogViewerPreferencesWidget::setShowLineNumbers(bool bShowLineNumbers) 58 62 { 59 63 if (!m_pLineNumberCheckBox) … … 64 68 } 65 69 66 void UIVMLogViewer OptionsPanel::setWrapLines(bool bWrapLines)70 void UIVMLogViewerPreferencesWidget::setWrapLines(bool bWrapLines) 67 71 { 68 72 if (!m_pWrapLinesCheckBox) … … 73 77 } 74 78 75 void UIVMLogViewer OptionsPanel::setFontSizeInPoints(int fontSizeInPoints)79 void UIVMLogViewerPreferencesWidget::setFontSizeInPoints(int fontSizeInPoints) 76 80 { 77 81 if (!m_pFontSizeSpinBox) … … 82 86 } 83 87 84 void UIVMLogViewerOptionsPanel::prepareWidgets() 85 { 86 QHBoxLayout *pMainLayout = new QHBoxLayout(this); 88 void UIVMLogViewerPreferencesWidget::prepareWidgets() 89 { 90 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 91 AssertReturnVoid(pMainLayout); 92 93 QHBoxLayout *pContainerLayout = new QHBoxLayout; 87 94 88 95 /* Create line-number check-box: */ 89 96 m_pLineNumberCheckBox = new QCheckBox; 90 if (m_pLineNumberCheckBox) 91 { 92 m_pLineNumberCheckBox->setChecked(true); 93 pMainLayout->addWidget(m_pLineNumberCheckBox, 0, Qt::AlignLeft); 94 } 97 AssertReturnVoid(m_pLineNumberCheckBox); 98 m_pLineNumberCheckBox->setChecked(true); 99 pContainerLayout->addWidget(m_pLineNumberCheckBox, 0, Qt::AlignLeft); 100 95 101 96 102 /* Create wrap-lines check-box: */ 97 103 m_pWrapLinesCheckBox = new QCheckBox; 98 if (m_pWrapLinesCheckBox) 99 { 100 m_pWrapLinesCheckBox->setChecked(false); 101 pMainLayout->addWidget(m_pWrapLinesCheckBox, 0, Qt::AlignLeft); 102 } 104 AssertReturnVoid(m_pWrapLinesCheckBox); 105 m_pWrapLinesCheckBox->setChecked(false); 106 pContainerLayout->addWidget(m_pWrapLinesCheckBox, 0, Qt::AlignLeft); 103 107 104 108 /* Create font-size spin-box: */ 105 109 m_pFontSizeSpinBox = new QSpinBox; 106 if (m_pFontSizeSpinBox) 107 { 108 pMainLayout->addWidget(m_pFontSizeSpinBox, 0, Qt::AlignLeft); 109 m_pFontSizeSpinBox->setValue(m_iDefaultFontSize); 110 m_pFontSizeSpinBox->setMaximum(44); 111 m_pFontSizeSpinBox->setMinimum(6); 112 } 110 AssertReturnVoid(m_pFontSizeSpinBox); 111 pContainerLayout->addWidget(m_pFontSizeSpinBox, 0, Qt::AlignLeft); 112 m_pFontSizeSpinBox->setValue(m_iDefaultFontSize); 113 m_pFontSizeSpinBox->setMaximum(44); 114 m_pFontSizeSpinBox->setMinimum(6); 115 113 116 114 117 /* Create font-size label: */ … … 116 119 if (m_pFontSizeLabel) 117 120 { 118 p MainLayout->addWidget(m_pFontSizeLabel, 0, Qt::AlignLeft);121 pContainerLayout->addWidget(m_pFontSizeLabel, 0, Qt::AlignLeft); 119 122 if (m_pFontSizeSpinBox) 120 123 m_pFontSizeLabel->setBuddy(m_pFontSizeSpinBox); … … 144 147 } 145 148 146 p MainLayout->addLayout(pButtonLayout);149 pContainerLayout->addLayout(pButtonLayout); 147 150 } 148 151 149 pMainLayout->addStretch(2); 150 } 151 152 void UIVMLogViewerOptionsPanel::prepareConnections() 152 pContainerLayout->addStretch(1); 153 pMainLayout->addLayout(pContainerLayout); 154 pMainLayout->addStretch(1); 155 } 156 157 void UIVMLogViewerPreferencesWidget::prepareConnections() 153 158 { 154 159 if (m_pLineNumberCheckBox) 155 connect(m_pLineNumberCheckBox, &QCheckBox::toggled, this, &UIVMLogViewer OptionsPanel::sigShowLineNumbers);160 connect(m_pLineNumberCheckBox, &QCheckBox::toggled, this, &UIVMLogViewerPreferencesWidget::sigShowLineNumbers); 156 161 if (m_pWrapLinesCheckBox) 157 connect(m_pWrapLinesCheckBox, &QCheckBox::toggled, this, &UIVMLogViewer OptionsPanel::sigWrapLines);162 connect(m_pWrapLinesCheckBox, &QCheckBox::toggled, this, &UIVMLogViewerPreferencesWidget::sigWrapLines); 158 163 if (m_pFontSizeSpinBox) 159 164 connect(m_pFontSizeSpinBox, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), 160 this, &UIVMLogViewer OptionsPanel::sigChangeFontSizeInPoints);165 this, &UIVMLogViewerPreferencesWidget::sigChangeFontSizeInPoints); 161 166 if (m_pOpenFontDialogButton) 162 connect(m_pOpenFontDialogButton, &QIToolButton::clicked, this, &UIVMLogViewer OptionsPanel::sltOpenFontDialog);167 connect(m_pOpenFontDialogButton, &QIToolButton::clicked, this, &UIVMLogViewerPreferencesWidget::sltOpenFontDialog); 163 168 if (m_pResetToDefaultsButton) 164 connect(m_pResetToDefaultsButton, &QIToolButton::clicked, this, &UIVMLogViewer OptionsPanel::sigResetToDefaults);165 } 166 167 void UIVMLogViewer OptionsPanel::retranslateUi()169 connect(m_pResetToDefaultsButton, &QIToolButton::clicked, this, &UIVMLogViewerPreferencesWidget::sigResetToDefaults); 170 } 171 172 void UIVMLogViewerPreferencesWidget::retranslateUi() 168 173 { 169 174 UIVMLogViewerPanel::retranslateUi(); … … 182 187 } 183 188 184 void UIVMLogViewer OptionsPanel::sltOpenFontDialog()189 void UIVMLogViewerPreferencesWidget::sltOpenFontDialog() 185 190 { 186 191 QFont currentFont; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPreferencesWidget.h
r100935 r100936 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewer OptionsPanel_h29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewer OptionsPanel_h28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerPreferencesWidget_h 29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerPreferencesWidget_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 43 43 44 44 /** UIVMLogViewerPanel extension providing GUI to manage logviewer options. */ 45 class UIVMLogViewer OptionsPanel: public UIVMLogViewerPanel45 class UIVMLogViewerPreferencesWidget : public UIVMLogViewerPanel 46 46 { 47 47 Q_OBJECT; … … 57 57 public: 58 58 59 UIVMLogViewer OptionsPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);59 UIVMLogViewerPreferencesWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer); 60 60 61 61 void setShowLineNumbers(bool bShowLineNumbers); … … 92 92 }; 93 93 94 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewer OptionsPanel_h */94 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerPreferencesWidget_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchWidget.cpp
r100935 r100936 44 44 #include "UISearchLineEdit.h" 45 45 #include "UIVMLogPage.h" 46 #include "UIVMLogViewerSearch Panel.h"46 #include "UIVMLogViewerSearchWidget.h" 47 47 #include "UIVMLogViewerWidget.h" 48 48 #ifdef VBOX_WS_MAC … … 53 53 #include <iprt/assert.h> 54 54 55 UIVMLogViewerSearch Panel::UIVMLogViewerSearchPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)55 UIVMLogViewerSearchWidget::UIVMLogViewerSearchWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer) 56 56 : UIVMLogViewerPanel(pParent, pViewer) 57 57 , m_pSearchEditor(0) … … 68 68 } 69 69 70 void UIVMLogViewerSearch Panel::refreshSearch()70 void UIVMLogViewerSearchWidget::refreshSearch() 71 71 { 72 72 /* We start the search from the end of the doc. assuming log's end is more interesting: */ … … 79 79 } 80 80 81 void UIVMLogViewerSearch Panel::reset()81 void UIVMLogViewerSearchWidget::reset() 82 82 { 83 83 m_iSelectedMatchIndex = 0; … … 89 89 } 90 90 91 const QVector<float> &UIVMLogViewerSearch Panel::matchLocationVector() const91 const QVector<float> &UIVMLogViewerSearchWidget::matchLocationVector() const 92 92 { 93 93 return m_matchLocationVector; 94 94 } 95 95 96 int UIVMLogViewerSearch Panel::matchCount() const96 int UIVMLogViewerSearchWidget::matchCount() const 97 97 { 98 98 return m_matchedCursorPosition.size(); 99 99 } 100 100 101 void UIVMLogViewerSearch Panel::hideEvent(QHideEvent *pEvent)101 void UIVMLogViewerSearchWidget::hideEvent(QHideEvent *pEvent) 102 102 { 103 103 /* Get focus-widget: */ … … 112 112 } 113 113 114 void UIVMLogViewerSearch Panel::sltSearchTextChanged(const QString &strSearchString)114 void UIVMLogViewerSearchWidget::sltSearchTextChanged(const QString &strSearchString) 115 115 { 116 116 /* Enable/disable Next-Previous buttons as per search-string validity: */ … … 148 148 } 149 149 150 void UIVMLogViewerSearch Panel::sltHighlightAllCheckBox()150 void UIVMLogViewerSearchWidget::sltHighlightAllCheckBox() 151 151 { 152 152 if (!viewer()) … … 170 170 } 171 171 172 void UIVMLogViewerSearch Panel::sltCaseSentitiveCheckBox()172 void UIVMLogViewerSearchWidget::sltCaseSentitiveCheckBox() 173 173 { 174 174 refreshSearch(); 175 175 } 176 176 177 void UIVMLogViewerSearch Panel::sltMatchWholeWordCheckBox()177 void UIVMLogViewerSearchWidget::sltMatchWholeWordCheckBox() 178 178 { 179 179 refreshSearch(); 180 180 } 181 181 182 void UIVMLogViewerSearch Panel::sltSelectNextPreviousMatch()182 void UIVMLogViewerSearchWidget::sltSelectNextPreviousMatch() 183 183 { 184 184 moveSelection(sender() == m_pNextButton); 185 185 } 186 186 187 void UIVMLogViewerSearch Panel::prepareWidgets()187 void UIVMLogViewerSearchWidget::prepareWidgets() 188 188 { 189 189 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 248 248 } 249 249 250 void UIVMLogViewerSearch Panel::prepareConnections()251 { 252 connect(m_pSearchEditor, &UISearchLineEdit::textChanged, this, &UIVMLogViewerSearch Panel::sltSearchTextChanged);253 connect(m_pNextButton, &QIToolButton::clicked, this, &UIVMLogViewerSearch Panel::sltSelectNextPreviousMatch);254 connect(m_pPreviousButton, &QIToolButton::clicked, this, &UIVMLogViewerSearch Panel::sltSelectNextPreviousMatch);250 void UIVMLogViewerSearchWidget::prepareConnections() 251 { 252 connect(m_pSearchEditor, &UISearchLineEdit::textChanged, this, &UIVMLogViewerSearchWidget::sltSearchTextChanged); 253 connect(m_pNextButton, &QIToolButton::clicked, this, &UIVMLogViewerSearchWidget::sltSelectNextPreviousMatch); 254 connect(m_pPreviousButton, &QIToolButton::clicked, this, &UIVMLogViewerSearchWidget::sltSelectNextPreviousMatch); 255 255 256 256 connect(m_pHighlightAllCheckBox, &QCheckBox::stateChanged, 257 this, &UIVMLogViewerSearch Panel::sltHighlightAllCheckBox);257 this, &UIVMLogViewerSearchWidget::sltHighlightAllCheckBox); 258 258 connect(m_pCaseSensitiveCheckBox, &QCheckBox::stateChanged, 259 this, &UIVMLogViewerSearch Panel::sltCaseSentitiveCheckBox);259 this, &UIVMLogViewerSearchWidget::sltCaseSentitiveCheckBox); 260 260 connect(m_pMatchWholeWordCheckBox, &QCheckBox::stateChanged, 261 this, &UIVMLogViewerSearch Panel::sltMatchWholeWordCheckBox);262 } 263 264 void UIVMLogViewerSearch Panel::retranslateUi()261 this, &UIVMLogViewerSearchWidget::sltMatchWholeWordCheckBox); 262 } 263 264 void UIVMLogViewerSearchWidget::retranslateUi() 265 265 { 266 266 UIVMLogViewerPanel::retranslateUi(); … … 280 280 } 281 281 282 void UIVMLogViewerSearch Panel::keyPressEvent(QKeyEvent *pEvent)282 void UIVMLogViewerSearchWidget::keyPressEvent(QKeyEvent *pEvent) 283 283 { 284 284 switch (pEvent->key()) … … 305 305 } 306 306 307 bool UIVMLogViewerSearch Panel::handleSearchRelatedEvents(QObject *pObject, QEvent *pEvent)307 bool UIVMLogViewerSearchWidget::handleSearchRelatedEvents(QObject *pObject, QEvent *pEvent) 308 308 { 309 309 /* Handle only events sent to viewer(): */ … … 370 370 } 371 371 372 void UIVMLogViewerSearch Panel::showEvent(QShowEvent *pEvent)372 void UIVMLogViewerSearchWidget::showEvent(QShowEvent *pEvent) 373 373 { 374 374 /* Call to base-class: */ … … 384 384 } 385 385 386 void UIVMLogViewerSearch Panel::performSearch(SearchDirection , bool )386 void UIVMLogViewerSearchWidget::performSearch(SearchDirection , bool ) 387 387 { 388 388 QPlainTextEdit *pTextEdit = textEdit(); … … 413 413 } 414 414 415 void UIVMLogViewerSearch Panel::clearHighlighting()415 void UIVMLogViewerSearchWidget::clearHighlighting() 416 416 { 417 417 QPlainTextEdit *pTextEdit = textEdit(); … … 421 421 } 422 422 423 void UIVMLogViewerSearch Panel::highlightAll(const QString &searchString)423 void UIVMLogViewerSearchWidget::highlightAll(const QString &searchString) 424 424 { 425 425 clearHighlighting(); … … 447 447 } 448 448 449 void UIVMLogViewerSearch Panel::findAll(QTextDocument *pDocument, const QString &searchString)449 void UIVMLogViewerSearchWidget::findAll(QTextDocument *pDocument, const QString &searchString) 450 450 { 451 451 if (!pDocument) … … 473 473 } 474 474 475 void UIVMLogViewerSearch Panel::selectMatch(int iMatchIndex, const QString &searchString)475 void UIVMLogViewerSearchWidget::selectMatch(int iMatchIndex, const QString &searchString) 476 476 { 477 477 if (!textEdit()) … … 491 491 } 492 492 493 void UIVMLogViewerSearch Panel::moveSelection(bool fForward)493 void UIVMLogViewerSearchWidget::moveSelection(bool fForward) 494 494 { 495 495 if (matchCount() == 0) … … 504 504 } 505 505 506 int UIVMLogViewerSearch Panel::countMatches(QTextDocument *pDocument, const QString &searchString) const506 int UIVMLogViewerSearchWidget::countMatches(QTextDocument *pDocument, const QString &searchString) const 507 507 { 508 508 if (!pDocument) … … 523 523 } 524 524 525 QTextDocument::FindFlags UIVMLogViewerSearch Panel::constructFindFlags(SearchDirection eDirection) const525 QTextDocument::FindFlags UIVMLogViewerSearchWidget::constructFindFlags(SearchDirection eDirection) const 526 526 { 527 527 QTextDocument::FindFlags findFlags; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchWidget.h
r100935 r100936 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearch Panel_h29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearch Panel_h28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchWidget_h 29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchWidget_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 49 49 /** UIVMLogViewerPanel extension 50 50 * providing GUI for search-panel in VM Log-Viewer. */ 51 class UIVMLogViewerSearch Panel: public UIVMLogViewerPanel51 class UIVMLogViewerSearchWidget : public UIVMLogViewerPanel 52 52 { 53 53 Q_OBJECT; … … 62 62 /** Constructs search-panel by passing @a pParent to the QWidget base-class constructor. 63 63 * @param pViewer Specifies instance of VM Log-Viewer. */ 64 UIVMLogViewerSearch Panel(QWidget *pParent, UIVMLogViewerWidget *pViewer);64 UIVMLogViewerSearchWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer); 65 65 /** Resets the search position and starts a new search. */ 66 66 void refreshSearch(); … … 133 133 134 134 135 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearch Panel_h */135 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchWidget_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r100934 r100936 59 59 #include "UIVMLogPage.h" 60 60 #include "UIVMLogViewerWidget.h" 61 #include "UIVMLogViewerBookmarksPanel.h" 62 #include "UIVMLogViewerOptionsPanel.h" 61 #include "UIVMLogViewerPanel.h" 63 62 64 63 /* COM includes: */ … … 212 211 , m_fIsPolished(false) 213 212 , m_pTabWidget(0) 214 , m_pOptionsPanel(0)215 213 , m_pMainLayout(0) 216 214 , m_pToolBar(0) … … 643 641 sltChangeFont(QFontDatabase::systemFont(QFontDatabase::FixedFont)); 644 642 645 if (m_pOptionsPanel)646 {647 m_pOptionsPanel->setShowLineNumbers(true);648 m_pOptionsPanel->setWrapLines(false);649 m_pOptionsPanel->setFontSizeInPoints(m_font.pointSize());650 }643 // if (m_pOptionsPanel) 644 // { 645 // m_pOptionsPanel->setShowLineNumbers(true); 646 // m_pOptionsPanel->setWrapLines(false); 647 // m_pOptionsPanel->setFontSizeInPoints(m_font.pointSize()); 648 // } 651 649 saveOptions(); 652 650 } … … 758 756 // /* Configure panel: */ 759 757 // m_pOptionsPanel->hide(); 760 // m_pOptionsPanel->setShowLineNumbers(m_bShowLineNumbers);761 // m_pOptionsPanel->setWrapLines(m_bWrapLines);762 // m_pOptionsPanel->setFontSizeInPoints(m_font.pointSize());763 // connect(m_pOptionsPanel, &UIVMLogViewerOptionsPanel::sigShowLineNumbers, this, &UIVMLogViewerWidget::sltShowLineNumbers);764 // connect(m_pOptionsPanel, &UIVMLogViewerOptionsPanel::sigWrapLines, this, &UIVMLogViewerWidget::sltWrapLines);765 // connect(m_pOptionsPanel, &UIVMLogViewerOptionsPanel::sigChangeFontSizeInPoints, this, &UIVMLogViewerWidget::sltFontSizeChanged);766 // connect(m_pOptionsPanel, &UIVMLogViewerOptionsPanel::sigChangeFont, this, &UIVMLogViewerWidget::sltChangeFont);767 // connect(m_pOptionsPanel, &UIVMLogViewerOptionsPanel::sigResetToDefaults, this, &UIVMLogViewerWidget::sltResetOptionsToDefault);768 758 769 759 // m_pMainLayout->addWidget(m_pOptionsPanel); … … 773 763 installEventFilter(m_pPanel); 774 764 m_pPanel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); 765 m_pPanel->setShowLineNumbers(m_bShowLineNumbers); 766 m_pPanel->setWrapLines(m_bWrapLines); 767 m_pPanel->setFontSizeInPoints(m_font.pointSize()); 768 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigShowLineNumbers, this, &UIVMLogViewerWidget::sltShowLineNumbers); 769 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigWrapLines, this, &UIVMLogViewerWidget::sltWrapLines); 770 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigChangeFontSizeInPoints, this, &UIVMLogViewerWidget::sltFontSizeChanged); 771 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigChangeFont, this, &UIVMLogViewerWidget::sltChangeFont); 772 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigResetToDefaults, this, &UIVMLogViewerWidget::sltResetOptionsToDefault); 775 773 776 774 connect(m_pPanel, &UIVMLogViewerPanelNew::sigHighlightingUpdated, -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r100933 r100936 57 57 class UIVMLogViewerPanelNew; 58 58 class UIVMLogViewerFilterPanel; 59 class UIVMLogViewerOptionsPanel;60 59 class UIVMLogViewerPanel; 61 60 class CMachine; … … 227 226 /** @name Panel instances and a QMap for mapping panel instances to related actions. 228 227 * @{ */ 229 UIVMLogViewerOptionsPanel *m_pOptionsPanel;230 228 QList<UIDialogPanel*> m_visiblePanelsList; 231 229 /** @} */ … … 253 251 UIVMLogViewerPanelNew *m_pPanel; 254 252 255 friend class UIVMLogViewerFilter Panel;253 friend class UIVMLogViewerFilterWidget; 256 254 friend class UIVMLogViewerPanel; 257 255 friend class UIVMLogViewerDialog;
Note:
See TracChangeset
for help on using the changeset viewer.