VirtualBox

Changeset 100936 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 22, 2023 1:01:35 PM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10496, bugref:9072. Some refactoring and renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
5 edited
8 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r100893 r100936  
    851851        src/helpbrowser/UIHelpBrowserWidget.h \
    852852        src/logviewer/UIVMLogPage.h \
    853         src/logviewer/UIVMLogViewerBookmarksPanel.h \
     853        src/logviewer/UIVMLogViewerBookmarksWidget.h \
    854854        src/logviewer/UIVMLogViewerDialog.h \
    855         src/logviewer/UIVMLogViewerFilterPanel.h \
    856         src/logviewer/UIVMLogViewerOptionsPanel.h \
     855        src/logviewer/UIVMLogViewerFilterWidget.h \
     856        src/logviewer/UIVMLogViewerPreferencesWidget.h \
    857857        src/logviewer/UIVMLogViewerPanel.h \
    858         src/logviewer/UIVMLogViewerSearchPanel.h \
     858        src/logviewer/UIVMLogViewerSearchWidget.h \
    859859        src/logviewer/UIVMLogViewerTextEdit.h \
    860860        src/logviewer/UIVMLogViewerWidget.h \
     
    10651065        src/helpbrowser/UIHelpViewer.cpp \
    10661066        src/helpbrowser/UIHelpBrowserWidget.cpp \
    1067         src/logviewer/UIVMLogViewerFilterPanel.cpp \
     1067        src/logviewer/UIVMLogViewerFilterWidget.cpp \
    10681068        src/logviewer/UIVMLogViewerTextEdit.cpp \
    10691069        src/logviewer/UIVMLogViewerWidget.cpp \
     
    14281428        src/helpbrowser/UIHelpBrowserWidget.cpp \
    14291429        src/logviewer/UIVMLogPage.cpp \
    1430         src/logviewer/UIVMLogViewerBookmarksPanel.cpp \
     1430        src/logviewer/UIVMLogViewerBookmarksWidget.cpp \
    14311431        src/logviewer/UIVMLogViewerDialog.cpp \
    1432         src/logviewer/UIVMLogViewerFilterPanel.cpp \
    1433         src/logviewer/UIVMLogViewerOptionsPanel.cpp \
     1432        src/logviewer/UIVMLogViewerFilterWidget.cpp \
     1433        src/logviewer/UIVMLogViewerPreferencesWidget.cpp \
    14341434        src/logviewer/UIVMLogViewerPanel.cpp \
    1435         src/logviewer/UIVMLogViewerSearchPanel.cpp \
     1435        src/logviewer/UIVMLogViewerSearchWidget.cpp \
    14361436        src/logviewer/UIVMLogViewerTextEdit.cpp \
    14371437        src/logviewer/UIVMLogViewerWidget.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksWidget.cpp

    r100935 r100936  
    3737#include "QIToolButton.h"
    3838#include "UIIconPool.h"
    39 #include "UIVMLogViewerBookmarksPanel.h"
     39#include "UIVMLogViewerBookmarksWidget.h"
    4040#include "UIVMLogViewerWidget.h"
    4141
     
    4343#include <iprt/assert.h>
    4444
    45 UIVMLogViewerBookmarksPanel::UIVMLogViewerBookmarksPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)
     45UIVMLogViewerBookmarksWidget::UIVMLogViewerBookmarksWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    4646    : UIVMLogViewerPanel(pParent, pViewer)
    4747    , m_iMaxBookmarkTextLength(60)
     
    5757}
    5858
    59 void UIVMLogViewerBookmarksPanel::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList)
     59void UIVMLogViewerBookmarksWidget::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList)
    6060{
    6161    if (!m_pBookmarksComboBox || !viewer())
     
    8484}
    8585
    86 void UIVMLogViewerBookmarksPanel::disableEnableBookmarking(bool flag)
     86void UIVMLogViewerBookmarksWidget::disableEnableBookmarking(bool flag)
    8787{
    8888    m_pBookmarksComboBox->setEnabled(flag);
     
    9494}
    9595
    96 void UIVMLogViewerBookmarksPanel::setBookmarkIndex(int index)
     96void UIVMLogViewerBookmarksWidget::setBookmarkIndex(int index)
    9797{
    9898    if (!m_pBookmarksComboBox)
     
    108108}
    109109
    110 void UIVMLogViewerBookmarksPanel::prepareWidgets()
     110void UIVMLogViewerBookmarksWidget::prepareWidgets()
    111111{
    112112    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
     
    181181}
    182182
    183 void UIVMLogViewerBookmarksPanel::prepareConnections()
     183void UIVMLogViewerBookmarksWidget::prepareConnections()
    184184{
    185185    connect(m_pBookmarksComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
    186             this, &UIVMLogViewerBookmarksPanel::sltBookmarkSelected);
    187 
    188     connect(m_pGotoSelectedBookmark, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sltGotoSelectedBookmark);
    189     connect(m_pNextButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sltGotoNextBookmark);
    190     connect(m_pPreviousButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sltGotoPreviousBookmark);
    191 
    192     connect(m_pDeleteAllButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sigDeleteAllBookmarks);
    193     connect(m_pDeleteCurrentButton, &QIToolButton::clicked, this, &UIVMLogViewerBookmarksPanel::sltDeleteCurrentBookmark);
    194 }
    195 
    196 
    197 void UIVMLogViewerBookmarksPanel::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
     197void UIVMLogViewerBookmarksWidget::retranslateUi()
    198198{
    199199    UIVMLogViewerPanel::retranslateUi();
     
    206206}
    207207
    208 void UIVMLogViewerBookmarksPanel::sltDeleteCurrentBookmark()
     208void UIVMLogViewerBookmarksWidget::sltDeleteCurrentBookmark()
    209209{
    210210    if (!m_pBookmarksComboBox)
     
    216216}
    217217
    218 void UIVMLogViewerBookmarksPanel::sltBookmarkSelected(int index)
     218void UIVMLogViewerBookmarksWidget::sltBookmarkSelected(int index)
    219219{
    220220    /* Do nothing if the index is 0, that is combo-box title item: */
     
    225225
    226226
    227 void UIVMLogViewerBookmarksPanel::sltGotoNextBookmark()
     227void UIVMLogViewerBookmarksWidget::sltGotoNextBookmark()
    228228{
    229229    /* go to next bookmark or wrap around to the beginning of the list: */
     
    235235
    236236
    237 void UIVMLogViewerBookmarksPanel::sltGotoPreviousBookmark()
     237void UIVMLogViewerBookmarksWidget::sltGotoPreviousBookmark()
    238238{
    239239    /* go to previous bookmark or wrap around to the end of the list: */
     
    244244}
    245245
    246 void UIVMLogViewerBookmarksPanel::sltGotoSelectedBookmark()
     246void UIVMLogViewerBookmarksWidget::sltGotoSelectedBookmark()
    247247{
    248248    if (!m_pBookmarksComboBox || m_pBookmarksComboBox->count() <= 1)
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerBookmarksWidget.h

    r100935 r100936  
    2626 */
    2727
    28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksPanel_h
    29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksPanel_h
     28#ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksWidget_h
     29#define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksWidget_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    4343/** UIVMLogViewerPanel extension providing GUI for bookmark management. Show a list of bookmarks currently set
    4444 *  for displayed log page. It has controls to navigate and clear bookmarks. */
    45 class UIVMLogViewerBookmarksPanel : public UIVMLogViewerPanel
     45class UIVMLogViewerBookmarksWidget : public UIVMLogViewerPanel
    4646{
    4747    Q_OBJECT;
     
    4949public:
    5050
    51     UIVMLogViewerBookmarksPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     51    UIVMLogViewerBookmarksWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    5252
    5353    /** Adds a single bookmark to an existing list of bookmarks. Possibly called
     
    9797};
    9898
    99 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksPanel_h */
     99#endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerBookmarksWidget_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterWidget.cpp

    r100935 r100936  
    4444#include "UIIconPool.h"
    4545#include "UIVMLogPage.h"
    46 #include "UIVMLogViewerFilterPanel.h"
     46#include "UIVMLogViewerFilterWidget.h"
    4747#include "UIVMLogViewerWidget.h"
    4848#ifdef VBOX_WS_MAC
     
    258258
    259259/*********************************************************************************************************************************
    260 *   UIVMLogViewerFilterPanel implementation.                                                                                     *
     260*   UIVMLogViewerFilterWidget implementation.                                                                                     *
    261261*********************************************************************************************************************************/
    262262
    263 UIVMLogViewerFilterPanel::UIVMLogViewerFilterPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)
     263UIVMLogViewerFilterWidget::UIVMLogViewerFilterWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    264264    : UIVMLogViewerPanel(pParent, pViewer)
    265265    , m_pFilterLabel(0)
     
    280280}
    281281
    282 void UIVMLogViewerFilterPanel::applyFilter()
     282void UIVMLogViewerFilterWidget::applyFilter()
    283283{
    284284    if (isVisible())
     
    290290}
    291291
    292 void UIVMLogViewerFilterPanel::filter()
     292void UIVMLogViewerFilterWidget::filter()
    293293{
    294294    if (!viewer())
     
    337337}
    338338
    339 void UIVMLogViewerFilterPanel::resetFiltering()
     339void UIVMLogViewerFilterWidget::resetFiltering()
    340340{
    341341    UIVMLogPage *logPage = viewer()->currentLogPage();
     
    350350}
    351351
    352 bool UIVMLogViewerFilterPanel::applyFilterTermsToString(const QString& string)
     352bool UIVMLogViewerFilterWidget::applyFilterTermsToString(const QString& string)
    353353{
    354354    /* Number of the filter terms contained with the @p string: */
     
    385385
    386386
    387 void UIVMLogViewerFilterPanel::sltAddFilterTerm()
     387void UIVMLogViewerFilterWidget::sltAddFilterTerm()
    388388{
    389389    if (!m_pFilterComboBox)
     
    406406}
    407407
    408 void UIVMLogViewerFilterPanel::sltClearFilterTerms()
     408void UIVMLogViewerFilterWidget::sltClearFilterTerms()
    409409{
    410410    if (m_filterTermSet.empty())
     
    416416}
    417417
    418 void UIVMLogViewerFilterPanel::sltOperatorButtonChanged(QAbstractButton *pButton)
     418void UIVMLogViewerFilterWidget::sltOperatorButtonChanged(QAbstractButton *pButton)
    419419{
    420420    int buttonId = m_pButtonGroup->id(pButton);
     
    425425}
    426426
    427 void UIVMLogViewerFilterPanel::sltRemoveFilterTerm(const QString &termString)
     427void UIVMLogViewerFilterWidget::sltRemoveFilterTerm(const QString &termString)
    428428{
    429429    m_filterTermSet.remove(termString);
     
    431431}
    432432
    433 void UIVMLogViewerFilterPanel::prepareWidgets()
     433void UIVMLogViewerFilterWidget::prepareWidgets()
    434434{
    435435    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
     
    492492}
    493493
    494 void UIVMLogViewerFilterPanel::prepareRadioButtonGroup(QVBoxLayout *pLayout)
     494void UIVMLogViewerFilterWidget::prepareRadioButtonGroup(QVBoxLayout *pLayout)
    495495{
    496496    /* Create radio-button container: */
     
    555555}
    556556
    557 void UIVMLogViewerFilterPanel::prepareConnections()
    558 {
    559     connect(m_pAddFilterTermButton, &QIToolButton::clicked, this,  &UIVMLogViewerFilterPanel::sltAddFilterTerm);
     557void UIVMLogViewerFilterWidget::prepareConnections()
     558{
     559    connect(m_pAddFilterTermButton, &QIToolButton::clicked, this,  &UIVMLogViewerFilterWidget::sltAddFilterTerm);
    560560    connect(m_pButtonGroup, static_cast<void (QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked),
    561             this, &UIVMLogViewerFilterPanel::sltOperatorButtonChanged);
     561            this, &UIVMLogViewerFilterWidget::sltOperatorButtonChanged);
    562562    connect(m_pFilterComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
    563             this, &UIVMLogViewerFilterPanel::sltAddFilterTerm);
     563            this, &UIVMLogViewerFilterWidget::sltAddFilterTerm);
    564564    connect(m_pFilterTermsLineEdit, &UIVMFilterLineEdit::sigFilterTermRemoved,
    565             this, &UIVMLogViewerFilterPanel::sltRemoveFilterTerm);
     565            this, &UIVMLogViewerFilterWidget::sltRemoveFilterTerm);
    566566    connect(m_pFilterTermsLineEdit, &UIVMFilterLineEdit::sigClearAll,
    567             this, &UIVMLogViewerFilterPanel::sltClearFilterTerms);
    568 }
    569 
    570 
    571 void UIVMLogViewerFilterPanel::retranslateUi()
     567            this, &UIVMLogViewerFilterWidget::sltClearFilterTerms);
     568}
     569
     570
     571void UIVMLogViewerFilterWidget::retranslateUi()
    572572{
    573573    UIVMLogViewerPanel::retranslateUi();
     
    581581}
    582582
    583 bool UIVMLogViewerFilterPanel::eventFilter(QObject *pObject, QEvent *pEvent)
     583bool UIVMLogViewerFilterWidget::eventFilter(QObject *pObject, QEvent *pEvent)
    584584{
    585585    /* Handle only events sent to viewer(): */
     
    619619
    620620/** Handles the Qt show @a pEvent. */
    621 void UIVMLogViewerFilterPanel::showEvent(QShowEvent *pEvent)
     621void UIVMLogViewerFilterWidget::showEvent(QShowEvent *pEvent)
    622622{
    623623    UIVMLogViewerPanel::showEvent(pEvent);
     
    627627}
    628628
    629 void UIVMLogViewerFilterPanel::hideEvent(QHideEvent *pEvent)
     629void UIVMLogViewerFilterWidget::hideEvent(QHideEvent *pEvent)
    630630{
    631631    UIVMLogViewerPanel::hideEvent(pEvent);
     
    633633}
    634634
    635 #include "UIVMLogViewerFilterPanel.moc"
     635#include "UIVMLogViewerFilterWidget.moc"
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterWidget.h

    r100935 r100936  
    2626 */
    2727
    28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterPanel_h
    29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterPanel_h
     28#ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterWidget_h
     29#define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterWidget_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    5353/** QWidget extension
    5454  * providing GUI for filter panel in VM Log Viewer. */
    55 class UIVMLogViewerFilterPanel : public UIVMLogViewerPanel
     55class UIVMLogViewerFilterWidget : public UIVMLogViewerPanel
    5656{
    5757    Q_OBJECT;
     
    6565    /** Constructs the filter-panel by passing @a pParent to the QWidget base-class constructor.
    6666      * @param  pViewer  Specifies reference to the VM Log-Viewer this filter-panel belongs to. */
    67     UIVMLogViewerFilterPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     67    UIVMLogViewerFilterWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    6868
    6969public slots:
     
    123123};
    124124
    125 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterPanel_h */
     125#endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerFilterWidget_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp

    r100933 r100936  
    3636#include "UIVMLogViewerPanel.h"
    3737#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"
    4142
    4243#ifdef VBOX_WS_MAC
     
    5051    , m_pFilterWidget(0)
    5152    , m_pBookmarksWidget(0)
     53    , m_pPreferencesWidget(0)
    5254{
    5355    prepare();
     
    5759{
    5860    /* Search tab: */
    59     m_pSearchWidget = new UIVMLogViewerSearchPanel(0, m_pViewer);
     61    m_pSearchWidget = new UIVMLogViewerSearchWidget(0, m_pViewer);
    6062    insertTab(Page_Search, m_pSearchWidget);
    6163
    62     connect(m_pSearchWidget, &UIVMLogViewerSearchPanel::sigHighlightingUpdated,
     64    connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigHighlightingUpdated,
    6365            this, &UIVMLogViewerPanelNew::sigHighlightingUpdated);
    64     connect(m_pSearchWidget, &UIVMLogViewerSearchPanel::sigSearchUpdated,
     66    connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigSearchUpdated,
    6567            this, &UIVMLogViewerPanelNew::sigSearchUpdated);
    6668
    6769    /* Filter tab: */
    68     m_pFilterWidget = new UIVMLogViewerFilterPanel(0, m_pViewer);
     70    m_pFilterWidget = new UIVMLogViewerFilterWidget(0, m_pViewer);
    6971    insertTab(Page_Filter, m_pFilterWidget);
    7072
    71     connect(m_pFilterWidget, &UIVMLogViewerFilterPanel::sigFilterApplied,
     73    connect(m_pFilterWidget, &UIVMLogViewerFilterWidget::sigFilterApplied,
    7274            this, &UIVMLogViewerPanelNew::sigFilterApplied);
    7375
    7476    /* Bookmark tab: */
    75     m_pBookmarksWidget = new UIVMLogViewerBookmarksPanel(0, m_pViewer);
     77    m_pBookmarksWidget = new UIVMLogViewerBookmarksWidget(0, m_pViewer);
    7678    insertTab(Page_Bookmark, m_pBookmarksWidget);
    7779
    78     connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksPanel::sigDeleteBookmarkByIndex,
     80    connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteBookmarkByIndex,
    7981            this, &UIVMLogViewerPanelNew::sigDeleteBookmarkByIndex);
    80     connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksPanel::sigDeleteAllBookmarks,
     82    connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteAllBookmarks,
    8183            this, &UIVMLogViewerPanelNew::sigDeleteAllBookmarks);
    82     connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksPanel::sigBookmarkSelected,
     84    connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigBookmarkSelected,
    8385            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);
    84101
    85102    retranslateUi();
     
    124141}
    125142
     143void UIVMLogViewerPanelNew::setShowLineNumbers(bool bShowLineNumbers)
     144{
     145    if (m_pPreferencesWidget)
     146        m_pPreferencesWidget->setShowLineNumbers(bShowLineNumbers);
     147}
     148
     149void UIVMLogViewerPanelNew::setWrapLines(bool bWrapLines)
     150{
     151    if (m_pPreferencesWidget)
     152        m_pPreferencesWidget->setWrapLines(bWrapLines);
     153}
     154
     155void UIVMLogViewerPanelNew::setFontSizeInPoints(int fontSizeInPoints)
     156{
     157    if (m_pPreferencesWidget)
     158        m_pPreferencesWidget->setFontSizeInPoints(fontSizeInPoints);
     159}
     160
    126161void UIVMLogViewerPanelNew::retranslateUi()
    127162{
     
    129164    setTabText(Page_Filter, "Filter");
    130165    setTabText(Page_Bookmark, "Bookmarks");
     166    setTabText(Page_Preferences, "Preferences");
    131167}
    132168
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h

    r100933 r100936  
    4040class QTextDocument;
    4141class UIVMLogViewerWidget;
    42 class UIVMLogViewerSearchPanel;
    43 class UIVMLogViewerFilterPanel;
    44 class UIVMLogViewerBookmarksPanel;
     42class UIVMLogViewerSearchWidget;
     43class UIVMLogViewerFilterWidget;
     44class UIVMLogViewerBookmarksWidget;
     45class UIVMLogViewerPreferencesWidget;
    4546
    4647class UIVMLogViewerPanelNew : public QIWithRetranslateUI<UIDialogPanelBase>
     
    5657    void sigDeleteAllBookmarks();
    5758    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();
    5865
    5966public:
     
    8087    /** @} */
    8188
     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
    8296    enum Page
    8397    {
     
    98112    void prepare() override;
    99113
    100     UIVMLogViewerWidget *m_pViewer;
    101 
    102     UIVMLogViewerSearchPanel *m_pSearchWidget;
    103     UIVMLogViewerFilterPanel *m_pFilterWidget;
    104     UIVMLogViewerBookmarksPanel *m_pBookmarksWidget;
     114    UIVMLogViewerWidget             *m_pViewer;
     115    UIVMLogViewerSearchWidget        *m_pSearchWidget;
     116    UIVMLogViewerFilterWidget       *m_pFilterWidget;
     117    UIVMLogViewerBookmarksWidget     *m_pBookmarksWidget;
     118    UIVMLogViewerPreferencesWidget  *m_pPreferencesWidget;
    105119};
    106120
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPreferencesWidget.cpp

    r100935 r100936  
    3737#include "QIToolButton.h"
    3838#include "UIIconPool.h"
    39 #include "UIVMLogViewerOptionsPanel.h"
     39#include "UIVMLogViewerPreferencesWidget.h"
    4040#include "UIVMLogViewerWidget.h"
    4141
    42 
    43 UIVMLogViewerOptionsPanel::UIVMLogViewerOptionsPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)
     42/* Other VBox includes: */
     43#include <iprt/assert.h>
     44
     45
     46UIVMLogViewerPreferencesWidget::UIVMLogViewerPreferencesWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    4447    : UIVMLogViewerPanel(pParent, pViewer)
    4548    , m_pLineNumberCheckBox(0)
     
    5356    prepareWidgets();
    5457    prepareConnections();
    55 }
    56 
    57 void UIVMLogViewerOptionsPanel::setShowLineNumbers(bool bShowLineNumbers)
     58    retranslateUi();
     59}
     60
     61void UIVMLogViewerPreferencesWidget::setShowLineNumbers(bool bShowLineNumbers)
    5862{
    5963    if (!m_pLineNumberCheckBox)
     
    6468}
    6569
    66 void UIVMLogViewerOptionsPanel::setWrapLines(bool bWrapLines)
     70void UIVMLogViewerPreferencesWidget::setWrapLines(bool bWrapLines)
    6771{
    6872    if (!m_pWrapLinesCheckBox)
     
    7377}
    7478
    75 void UIVMLogViewerOptionsPanel::setFontSizeInPoints(int fontSizeInPoints)
     79void UIVMLogViewerPreferencesWidget::setFontSizeInPoints(int fontSizeInPoints)
    7680{
    7781    if (!m_pFontSizeSpinBox)
     
    8286}
    8387
    84 void UIVMLogViewerOptionsPanel::prepareWidgets()
    85 {
    86     QHBoxLayout *pMainLayout = new QHBoxLayout(this);
     88void UIVMLogViewerPreferencesWidget::prepareWidgets()
     89{
     90    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
     91    AssertReturnVoid(pMainLayout);
     92
     93    QHBoxLayout *pContainerLayout = new QHBoxLayout;
    8794
    8895    /* Create line-number check-box: */
    8996    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
    95101
    96102    /* Create wrap-lines check-box: */
    97103    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);
    103107
    104108    /* Create font-size spin-box: */
    105109    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
    113116
    114117    /* Create font-size label: */
     
    116119    if (m_pFontSizeLabel)
    117120    {
    118         pMainLayout->addWidget(m_pFontSizeLabel, 0, Qt::AlignLeft);
     121        pContainerLayout->addWidget(m_pFontSizeLabel, 0, Qt::AlignLeft);
    119122        if (m_pFontSizeSpinBox)
    120123            m_pFontSizeLabel->setBuddy(m_pFontSizeSpinBox);
     
    144147        }
    145148
    146         pMainLayout->addLayout(pButtonLayout);
     149        pContainerLayout->addLayout(pButtonLayout);
    147150    }
    148151
    149     pMainLayout->addStretch(2);
    150 }
    151 
    152 void UIVMLogViewerOptionsPanel::prepareConnections()
     152    pContainerLayout->addStretch(1);
     153    pMainLayout->addLayout(pContainerLayout);
     154    pMainLayout->addStretch(1);
     155}
     156
     157void UIVMLogViewerPreferencesWidget::prepareConnections()
    153158{
    154159    if (m_pLineNumberCheckBox)
    155         connect(m_pLineNumberCheckBox, &QCheckBox::toggled, this, &UIVMLogViewerOptionsPanel::sigShowLineNumbers);
     160        connect(m_pLineNumberCheckBox, &QCheckBox::toggled, this, &UIVMLogViewerPreferencesWidget::sigShowLineNumbers);
    156161    if (m_pWrapLinesCheckBox)
    157         connect(m_pWrapLinesCheckBox, &QCheckBox::toggled, this, &UIVMLogViewerOptionsPanel::sigWrapLines);
     162        connect(m_pWrapLinesCheckBox, &QCheckBox::toggled, this, &UIVMLogViewerPreferencesWidget::sigWrapLines);
    158163    if (m_pFontSizeSpinBox)
    159164        connect(m_pFontSizeSpinBox, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
    160                 this, &UIVMLogViewerOptionsPanel::sigChangeFontSizeInPoints);
     165                this, &UIVMLogViewerPreferencesWidget::sigChangeFontSizeInPoints);
    161166    if (m_pOpenFontDialogButton)
    162         connect(m_pOpenFontDialogButton, &QIToolButton::clicked, this, &UIVMLogViewerOptionsPanel::sltOpenFontDialog);
     167        connect(m_pOpenFontDialogButton, &QIToolButton::clicked, this, &UIVMLogViewerPreferencesWidget::sltOpenFontDialog);
    163168    if (m_pResetToDefaultsButton)
    164         connect(m_pResetToDefaultsButton, &QIToolButton::clicked, this, &UIVMLogViewerOptionsPanel::sigResetToDefaults);
    165 }
    166 
    167 void UIVMLogViewerOptionsPanel::retranslateUi()
     169        connect(m_pResetToDefaultsButton, &QIToolButton::clicked, this, &UIVMLogViewerPreferencesWidget::sigResetToDefaults);
     170}
     171
     172void UIVMLogViewerPreferencesWidget::retranslateUi()
    168173{
    169174    UIVMLogViewerPanel::retranslateUi();
     
    182187}
    183188
    184 void UIVMLogViewerOptionsPanel::sltOpenFontDialog()
     189void UIVMLogViewerPreferencesWidget::sltOpenFontDialog()
    185190{
    186191    QFont currentFont;
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPreferencesWidget.h

    r100935 r100936  
    2626 */
    2727
    28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerOptionsPanel_h
    29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerOptionsPanel_h
     28#ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerPreferencesWidget_h
     29#define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerPreferencesWidget_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    4343
    4444/** UIVMLogViewerPanel extension providing GUI to manage logviewer options. */
    45 class UIVMLogViewerOptionsPanel : public UIVMLogViewerPanel
     45class UIVMLogViewerPreferencesWidget : public UIVMLogViewerPanel
    4646{
    4747    Q_OBJECT;
     
    5757public:
    5858
    59     UIVMLogViewerOptionsPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     59    UIVMLogViewerPreferencesWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    6060
    6161    void setShowLineNumbers(bool bShowLineNumbers);
     
    9292};
    9393
    94 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerOptionsPanel_h */
     94#endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerPreferencesWidget_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchWidget.cpp

    r100935 r100936  
    4444#include "UISearchLineEdit.h"
    4545#include "UIVMLogPage.h"
    46 #include "UIVMLogViewerSearchPanel.h"
     46#include "UIVMLogViewerSearchWidget.h"
    4747#include "UIVMLogViewerWidget.h"
    4848#ifdef VBOX_WS_MAC
     
    5353#include <iprt/assert.h>
    5454
    55 UIVMLogViewerSearchPanel::UIVMLogViewerSearchPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)
     55UIVMLogViewerSearchWidget::UIVMLogViewerSearchWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    5656    : UIVMLogViewerPanel(pParent, pViewer)
    5757    , m_pSearchEditor(0)
     
    6868}
    6969
    70 void UIVMLogViewerSearchPanel::refreshSearch()
     70void UIVMLogViewerSearchWidget::refreshSearch()
    7171{
    7272    /* We start the search from the end of the doc. assuming log's end is more interesting: */
     
    7979}
    8080
    81 void UIVMLogViewerSearchPanel::reset()
     81void UIVMLogViewerSearchWidget::reset()
    8282{
    8383    m_iSelectedMatchIndex = 0;
     
    8989}
    9090
    91 const QVector<float> &UIVMLogViewerSearchPanel::matchLocationVector() const
     91const QVector<float> &UIVMLogViewerSearchWidget::matchLocationVector() const
    9292{
    9393    return m_matchLocationVector;
    9494}
    9595
    96 int UIVMLogViewerSearchPanel::matchCount() const
     96int UIVMLogViewerSearchWidget::matchCount() const
    9797{
    9898    return m_matchedCursorPosition.size();
    9999}
    100100
    101 void UIVMLogViewerSearchPanel::hideEvent(QHideEvent *pEvent)
     101void UIVMLogViewerSearchWidget::hideEvent(QHideEvent *pEvent)
    102102{
    103103    /* Get focus-widget: */
     
    112112}
    113113
    114 void UIVMLogViewerSearchPanel::sltSearchTextChanged(const QString &strSearchString)
     114void UIVMLogViewerSearchWidget::sltSearchTextChanged(const QString &strSearchString)
    115115{
    116116    /* Enable/disable Next-Previous buttons as per search-string validity: */
     
    148148}
    149149
    150 void UIVMLogViewerSearchPanel::sltHighlightAllCheckBox()
     150void UIVMLogViewerSearchWidget::sltHighlightAllCheckBox()
    151151{
    152152    if (!viewer())
     
    170170}
    171171
    172 void UIVMLogViewerSearchPanel::sltCaseSentitiveCheckBox()
     172void UIVMLogViewerSearchWidget::sltCaseSentitiveCheckBox()
    173173{
    174174    refreshSearch();
    175175}
    176176
    177 void UIVMLogViewerSearchPanel::sltMatchWholeWordCheckBox()
     177void UIVMLogViewerSearchWidget::sltMatchWholeWordCheckBox()
    178178{
    179179    refreshSearch();
    180180}
    181181
    182 void UIVMLogViewerSearchPanel::sltSelectNextPreviousMatch()
     182void UIVMLogViewerSearchWidget::sltSelectNextPreviousMatch()
    183183{
    184184    moveSelection(sender() == m_pNextButton);
    185185}
    186186
    187 void UIVMLogViewerSearchPanel::prepareWidgets()
     187void UIVMLogViewerSearchWidget::prepareWidgets()
    188188{
    189189    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
     
    248248}
    249249
    250 void UIVMLogViewerSearchPanel::prepareConnections()
    251 {
    252     connect(m_pSearchEditor, &UISearchLineEdit::textChanged, this, &UIVMLogViewerSearchPanel::sltSearchTextChanged);
    253     connect(m_pNextButton, &QIToolButton::clicked, this, &UIVMLogViewerSearchPanel::sltSelectNextPreviousMatch);
    254     connect(m_pPreviousButton, &QIToolButton::clicked, this, &UIVMLogViewerSearchPanel::sltSelectNextPreviousMatch);
     250void 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);
    255255
    256256    connect(m_pHighlightAllCheckBox, &QCheckBox::stateChanged,
    257             this, &UIVMLogViewerSearchPanel::sltHighlightAllCheckBox);
     257            this, &UIVMLogViewerSearchWidget::sltHighlightAllCheckBox);
    258258    connect(m_pCaseSensitiveCheckBox, &QCheckBox::stateChanged,
    259             this, &UIVMLogViewerSearchPanel::sltCaseSentitiveCheckBox);
     259            this, &UIVMLogViewerSearchWidget::sltCaseSentitiveCheckBox);
    260260    connect(m_pMatchWholeWordCheckBox, &QCheckBox::stateChanged,
    261             this, &UIVMLogViewerSearchPanel::sltMatchWholeWordCheckBox);
    262 }
    263 
    264 void UIVMLogViewerSearchPanel::retranslateUi()
     261            this, &UIVMLogViewerSearchWidget::sltMatchWholeWordCheckBox);
     262}
     263
     264void UIVMLogViewerSearchWidget::retranslateUi()
    265265{
    266266    UIVMLogViewerPanel::retranslateUi();
     
    280280}
    281281
    282 void UIVMLogViewerSearchPanel::keyPressEvent(QKeyEvent *pEvent)
     282void UIVMLogViewerSearchWidget::keyPressEvent(QKeyEvent *pEvent)
    283283{
    284284    switch (pEvent->key())
     
    305305}
    306306
    307 bool UIVMLogViewerSearchPanel::handleSearchRelatedEvents(QObject *pObject, QEvent *pEvent)
     307bool UIVMLogViewerSearchWidget::handleSearchRelatedEvents(QObject *pObject, QEvent *pEvent)
    308308{
    309309    /* Handle only events sent to viewer(): */
     
    370370}
    371371
    372 void UIVMLogViewerSearchPanel::showEvent(QShowEvent *pEvent)
     372void UIVMLogViewerSearchWidget::showEvent(QShowEvent *pEvent)
    373373{
    374374    /* Call to base-class: */
     
    384384}
    385385
    386 void UIVMLogViewerSearchPanel::performSearch(SearchDirection , bool )
     386void UIVMLogViewerSearchWidget::performSearch(SearchDirection , bool )
    387387{
    388388    QPlainTextEdit *pTextEdit = textEdit();
     
    413413}
    414414
    415 void UIVMLogViewerSearchPanel::clearHighlighting()
     415void UIVMLogViewerSearchWidget::clearHighlighting()
    416416{
    417417    QPlainTextEdit *pTextEdit = textEdit();
     
    421421}
    422422
    423 void UIVMLogViewerSearchPanel::highlightAll(const QString &searchString)
     423void UIVMLogViewerSearchWidget::highlightAll(const QString &searchString)
    424424{
    425425    clearHighlighting();
     
    447447}
    448448
    449 void UIVMLogViewerSearchPanel::findAll(QTextDocument *pDocument, const QString &searchString)
     449void UIVMLogViewerSearchWidget::findAll(QTextDocument *pDocument, const QString &searchString)
    450450{
    451451    if (!pDocument)
     
    473473}
    474474
    475 void UIVMLogViewerSearchPanel::selectMatch(int iMatchIndex, const QString &searchString)
     475void UIVMLogViewerSearchWidget::selectMatch(int iMatchIndex, const QString &searchString)
    476476{
    477477    if (!textEdit())
     
    491491}
    492492
    493 void UIVMLogViewerSearchPanel::moveSelection(bool fForward)
     493void UIVMLogViewerSearchWidget::moveSelection(bool fForward)
    494494{
    495495    if (matchCount() == 0)
     
    504504}
    505505
    506 int UIVMLogViewerSearchPanel::countMatches(QTextDocument *pDocument, const QString &searchString) const
     506int UIVMLogViewerSearchWidget::countMatches(QTextDocument *pDocument, const QString &searchString) const
    507507{
    508508    if (!pDocument)
     
    523523}
    524524
    525 QTextDocument::FindFlags UIVMLogViewerSearchPanel::constructFindFlags(SearchDirection eDirection) const
     525QTextDocument::FindFlags UIVMLogViewerSearchWidget::constructFindFlags(SearchDirection eDirection) const
    526526{
    527527   QTextDocument::FindFlags findFlags;
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchWidget.h

    r100935 r100936  
    2626 */
    2727
    28 #ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchPanel_h
    29 #define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchPanel_h
     28#ifndef FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchWidget_h
     29#define FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchWidget_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    4949/** UIVMLogViewerPanel extension
    5050  * providing GUI for search-panel in VM Log-Viewer. */
    51 class UIVMLogViewerSearchPanel : public UIVMLogViewerPanel
     51class UIVMLogViewerSearchWidget : public UIVMLogViewerPanel
    5252{
    5353    Q_OBJECT;
     
    6262    /** Constructs search-panel by passing @a pParent to the QWidget base-class constructor.
    6363      * @param  pViewer  Specifies instance of VM Log-Viewer. */
    64     UIVMLogViewerSearchPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     64    UIVMLogViewerSearchWidget(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    6565    /** Resets the search position and starts a new search. */
    6666    void refreshSearch();
     
    133133
    134134
    135 #endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchPanel_h */
     135#endif /* !FEQT_INCLUDED_SRC_logviewer_UIVMLogViewerSearchWidget_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r100934 r100936  
    5959#include "UIVMLogPage.h"
    6060#include "UIVMLogViewerWidget.h"
    61 #include "UIVMLogViewerBookmarksPanel.h"
    62 #include "UIVMLogViewerOptionsPanel.h"
     61#include "UIVMLogViewerPanel.h"
    6362
    6463/* COM includes: */
     
    212211    , m_fIsPolished(false)
    213212    , m_pTabWidget(0)
    214     , m_pOptionsPanel(0)
    215213    , m_pMainLayout(0)
    216214    , m_pToolBar(0)
     
    643641    sltChangeFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
    644642
    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    // }
    651649    saveOptions();
    652650}
     
    758756    // /* Configure panel: */
    759757    // 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);
    768758
    769759    // m_pMainLayout->addWidget(m_pOptionsPanel);
     
    773763    installEventFilter(m_pPanel);
    774764    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);
    775773
    776774    connect(m_pPanel, &UIVMLogViewerPanelNew::sigHighlightingUpdated,
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h

    r100933 r100936  
    5757class UIVMLogViewerPanelNew;
    5858class UIVMLogViewerFilterPanel;
    59 class UIVMLogViewerOptionsPanel;
    6059class UIVMLogViewerPanel;
    6160class CMachine;
     
    227226    /** @name Panel instances and a QMap for mapping panel instances to related actions.
    228227      * @{ */
    229         UIVMLogViewerOptionsPanel   *m_pOptionsPanel;
    230228        QList<UIDialogPanel*>          m_visiblePanelsList;
    231229    /** @} */
     
    253251    UIVMLogViewerPanelNew *m_pPanel;
    254252
    255     friend class UIVMLogViewerFilterPanel;
     253    friend class UIVMLogViewerFilterWidget;
    256254    friend class UIVMLogViewerPanel;
    257255    friend class UIVMLogViewerDialog;
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