VirtualBox

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


Ignore:
Timestamp:
Aug 23, 2023 6:54:29 PM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10496, bugref:9072. Some renaming in logviewer pane container stuff.

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  
    4545#endif
    4646
    47 UIVMLogViewerPanelNew::UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer)
     47UIVMLogViewerPaneContainer::UIVMLogViewerPaneContainer(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    4848    : UIPaneContainer(pParent)
    4949    , m_pViewer(pViewer)
     
    5656}
    5757
    58 void UIVMLogViewerPanelNew::prepare()
     58void UIVMLogViewerPaneContainer::prepare()
    5959{
    6060    /* Search tab: */
     
    6363
    6464    connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigHighlightingUpdated,
    65             this, &UIVMLogViewerPanelNew::sigHighlightingUpdated);
     65            this, &UIVMLogViewerPaneContainer::sigHighlightingUpdated);
    6666    connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigSearchUpdated,
    67             this, &UIVMLogViewerPanelNew::sigSearchUpdated);
     67            this, &UIVMLogViewerPaneContainer::sigSearchUpdated);
    6868
    6969    /* Filter tab: */
     
    7272
    7373    connect(m_pFilterWidget, &UIVMLogViewerFilterWidget::sigFilterApplied,
    74             this, &UIVMLogViewerPanelNew::sigFilterApplied);
     74            this, &UIVMLogViewerPaneContainer::sigFilterApplied);
    7575
    7676    /* Bookmark tab: */
     
    7979
    8080    connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteBookmarkByIndex,
    81             this, &UIVMLogViewerPanelNew::sigDeleteBookmarkByIndex);
     81            this, &UIVMLogViewerPaneContainer::sigDeleteBookmarkByIndex);
    8282    connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigDeleteAllBookmarks,
    83             this, &UIVMLogViewerPanelNew::sigDeleteAllBookmarks);
     83            this, &UIVMLogViewerPaneContainer::sigDeleteAllBookmarks);
    8484    connect(m_pBookmarksWidget, &UIVMLogViewerBookmarksWidget::sigBookmarkSelected,
    85             this, &UIVMLogViewerPanelNew::sigBookmarkSelected);
     85            this, &UIVMLogViewerPaneContainer::sigBookmarkSelected);
    8686
    8787    /* Preferences tab: */
     
    9090
    9191    connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigShowLineNumbers,
    92             this, &UIVMLogViewerPanelNew::sigShowLineNumbers);
     92            this, &UIVMLogViewerPaneContainer::sigShowLineNumbers);
    9393    connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigWrapLines,
    94             this, &UIVMLogViewerPanelNew::sigWrapLines);
     94            this, &UIVMLogViewerPaneContainer::sigWrapLines);
    9595    connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigChangeFontSizeInPoints,
    96             this, &UIVMLogViewerPanelNew::sigChangeFontSizeInPoints);
     96            this, &UIVMLogViewerPaneContainer::sigChangeFontSizeInPoints);
    9797    connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigChangeFont,
    98             this, &UIVMLogViewerPanelNew::sigChangeFont);
     98            this, &UIVMLogViewerPaneContainer::sigChangeFont);
    9999    connect(m_pPreferencesWidget, &UIVMLogViewerPreferencesWidget::sigResetToDefaults,
    100             this, &UIVMLogViewerPanelNew::sigResetToDefaults);
     100            this, &UIVMLogViewerPaneContainer::sigResetToDefaults);
    101101
    102102    retranslateUi();
    103103}
    104104
    105 void UIVMLogViewerPanelNew::refreshSearch()
     105void UIVMLogViewerPaneContainer::refreshSearch()
    106106{
    107107    if (m_pSearchWidget)
     
    109109}
    110110
    111 QVector<float> UIVMLogViewerPanelNew::matchLocationVector() const
     111QVector<float> UIVMLogViewerPaneContainer::matchLocationVector() const
    112112{
    113113    if (!m_pSearchWidget)
     
    116116}
    117117
    118 int UIVMLogViewerPanelNew::matchCount() const
     118int UIVMLogViewerPaneContainer::matchCount() const
    119119{
    120120    if (!m_pSearchWidget)
     
    123123}
    124124
    125 void UIVMLogViewerPanelNew::applyFilter()
     125void UIVMLogViewerPaneContainer::applyFilter()
    126126{
    127127    if (m_pFilterWidget)
     
    129129}
    130130
    131 void UIVMLogViewerPanelNew::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList)
     131void UIVMLogViewerPaneContainer::updateBookmarkList(const QVector<UIVMLogBookmark>& bookmarkList)
    132132{
    133133    if (m_pBookmarksWidget)
     
    135135}
    136136
    137 void UIVMLogViewerPanelNew::disableEnableBookmarking(bool flag)
     137void UIVMLogViewerPaneContainer::disableEnableBookmarking(bool flag)
    138138{
    139139    if (m_pBookmarksWidget)
     
    141141}
    142142
    143 void UIVMLogViewerPanelNew::setShowLineNumbers(bool bShowLineNumbers)
     143void UIVMLogViewerPaneContainer::setShowLineNumbers(bool bShowLineNumbers)
    144144{
    145145    if (m_pPreferencesWidget)
     
    147147}
    148148
    149 void UIVMLogViewerPanelNew::setWrapLines(bool bWrapLines)
     149void UIVMLogViewerPaneContainer::setWrapLines(bool bWrapLines)
    150150{
    151151    if (m_pPreferencesWidget)
     
    153153}
    154154
    155 void UIVMLogViewerPanelNew::setFontSizeInPoints(int fontSizeInPoints)
     155void UIVMLogViewerPaneContainer::setFontSizeInPoints(int fontSizeInPoints)
    156156{
    157157    if (m_pPreferencesWidget)
     
    159159}
    160160
    161 void UIVMLogViewerPanelNew::retranslateUi()
     161void UIVMLogViewerPaneContainer::retranslateUi()
    162162{
    163163    setTabText(Page_Search, "Find");
     
    167167}
    168168
    169 bool UIVMLogViewerPanelNew::eventFilter(QObject *pObject, QEvent *pEvent)
     169bool UIVMLogViewerPaneContainer::eventFilter(QObject *pObject, QEvent *pEvent)
    170170{
    171171    if (currentIndex() == static_cast<Page>(Page_Search))
     
    182182*********************************************************************************************************************************/
    183183
    184 UIVMLogViewerPanel::UIVMLogViewerPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer)
     184UIVMLogViewerPane::UIVMLogViewerPane(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    185185    : QIWithRetranslateUI<QWidget>(pParent)
    186186    , m_pViewer(pViewer)
     
    188188}
    189189
    190 void UIVMLogViewerPanel::retranslateUi()
    191 {
    192 }
    193 
    194 UIVMLogViewerWidget* UIVMLogViewerPanel::viewer()
     190void UIVMLogViewerPane::retranslateUi()
     191{
     192}
     193
     194UIVMLogViewerWidget* UIVMLogViewerPane::viewer()
    195195{
    196196    return m_pViewer;
    197197}
    198198
    199 const UIVMLogViewerWidget* UIVMLogViewerPanel::viewer() const
     199const UIVMLogViewerWidget* UIVMLogViewerPane::viewer() const
    200200{
    201201    return m_pViewer;
    202202}
    203203
    204 QTextDocument  *UIVMLogViewerPanel::textDocument()
     204QTextDocument  *UIVMLogViewerPane::textDocument()
    205205{
    206206    QPlainTextEdit *pEdit = textEdit();
     
    210210}
    211211
    212 QPlainTextEdit *UIVMLogViewerPanel::textEdit()
     212QPlainTextEdit *UIVMLogViewerPane::textEdit()
    213213{
    214214    if (!viewer())
     
    220220}
    221221
    222 const QString* UIVMLogViewerPanel::logString() const
     222const QString* UIVMLogViewerPane::logString() const
    223223{
    224224    if (!viewer())
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h

    r100956 r100962  
    4545class UIVMLogViewerPreferencesWidget;
    4646
    47 class UIVMLogViewerPanelNew : public UIPaneContainer
     47class UIVMLogViewerPaneContainer : public UIPaneContainer
    4848{
    4949    Q_OBJECT;
     
    6666public:
    6767
    68     UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     68    UIVMLogViewerPaneContainer(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    6969
    7070    /** @name Search page pass through functions
     
    120120
    121121/** UIDialonPanel extension acting as the base class for UIVMLogViewerXXXPanel widgets. */
    122 class UIVMLogViewerPanel : public QIWithRetranslateUI<QWidget>
     122class UIVMLogViewerPane : public QIWithRetranslateUI<QWidget>
    123123{
    124124    Q_OBJECT;
     
    126126public:
    127127
    128     UIVMLogViewerPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer);
     128    UIVMLogViewerPane(QWidget *pParent, UIVMLogViewerWidget *pViewer);
    129129
    130130protected:
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r100955 r100962  
    420420
    421421    if (m_pPanel && m_pPanel->isVisible() &&
    422         m_pPanel->currentIndex() == static_cast<UIVMLogViewerPanelNew::Page>(UIVMLogViewerPanelNew::Page_Search))
     422        m_pPanel->currentIndex() == static_cast<UIVMLogViewerPaneContainer::Page>(UIVMLogViewerPaneContainer::Page_Search))
    423423        m_pPanel->refreshSearch();
    424424
     
    743743    m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_Log_T_Preferences));
    744744
    745     m_pActionPool->action(UIActionIndex_M_Log_T_Find)->setData((int)UIVMLogViewerPanelNew::Page_Search);
    746     m_pActionPool->action(UIActionIndex_M_Log_T_Filter)->setData((int)UIVMLogViewerPanelNew::Page_Filter);
    747     m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)->setData((int)UIVMLogViewerPanelNew::Page_Bookmark);
    748     m_pActionPool->action(UIActionIndex_M_Log_T_Preferences)->setData((int)UIVMLogViewerPanelNew::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);
    749749
    750750    /* Connect actions: */
     
    791791    connect(m_pTabWidget, &QITabWidget::currentChanged, this, &UIVMLogViewerWidget::sltCurrentTabChanged);
    792792
    793     m_pPanel = new UIVMLogViewerPanelNew(0, this);
     793    m_pPanel = new UIVMLogViewerPaneContainer(0, this);
    794794    AssertReturnVoid(m_pPanel);
    795795    installEventFilter(m_pPanel);
     
    799799    m_pPanel->setFontSizeInPoints(m_font.pointSize());
    800800    m_pPanel->setVisible(false);
    801     connect(m_pPanel, &UIVMLogViewerPanelNew::sigHighlightingUpdated,
     801    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigHighlightingUpdated,
    802802            this, &UIVMLogViewerWidget::sltSearchResultHighLigting);
    803     connect(m_pPanel, &UIVMLogViewerPanelNew::sigSearchUpdated,
     803    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigSearchUpdated,
    804804            this, &UIVMLogViewerWidget::sltHandleSearchUpdated);
    805     connect(m_pPanel, &UIVMLogViewerPanelNew::sigFilterApplied,
     805    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigFilterApplied,
    806806            this, &UIVMLogViewerWidget::sltFilterApplied);
    807     connect(m_pPanel, &UIVMLogViewerPanelNew::sigDeleteBookmarkByIndex,
     807    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigDeleteBookmarkByIndex,
    808808            this, &UIVMLogViewerWidget::sltDeleteBookmarkByIndex);
    809     connect(m_pPanel, &UIVMLogViewerPanelNew::sigDeleteAllBookmarks,
     809    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigDeleteAllBookmarks,
    810810            this, &UIVMLogViewerWidget::sltDeleteAllBookmarks);
    811     connect(m_pPanel, &UIVMLogViewerPanelNew::sigBookmarkSelected,
     811    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigBookmarkSelected,
    812812            this, &UIVMLogViewerWidget::gotoBookmark);
    813     connect(m_pPanel, &UIVMLogViewerPanelNew::sigHidden,
     813    connect(m_pPanel, &UIVMLogViewerPaneContainer::sigHidden,
    814814            this, &UIVMLogViewerWidget::sltPanelContainerHidden);
    815815
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h

    r100955 r100962  
    5656class UIVMLogTab;
    5757class UIVMLogViewerBookmarksPanel;
    58 class UIVMLogViewerPanelNew;
     58class UIVMLogViewerPaneContainer;
    5959class UIVMLogViewerFilterPanel;
    6060class UIVMLogViewerPanel;
     
    251251    bool m_fCommitDataSignalReceived;
    252252    QPointer<UIVMLogPage> m_pPreviousLogPage;
    253     UIVMLogViewerPanelNew *m_pPanel;
     253    UIVMLogViewerPaneContainer *m_pPanel;
    254254    QSet<QAction*> m_panelActions;
    255255    friend class UIVMLogViewerFilterWidget;
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