VirtualBox

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


Ignore:
Timestamp:
Aug 23, 2023 11:53:29 AM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10496. Some renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
6 edited
2 moved

Legend:

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

    r100936 r100956  
    825825        src/globals/UICustomFileSystemModel.h \
    826826        src/globals/UIDesktopWidgetWatchdog.h \
    827         src/globals/UIDialogPanel.h \
    828827        src/globals/UIMainEventListener.h \
    829828        src/globals/UIMessageCenter.h \
    830829        src/globals/UIModalWindowManager.h \
     830        src/globals/UIPaneContainer.h \
    831831        src/globals/UIPopupCenter.h \
    832832        src/globals/UIProgressEventHandler.h \
     
    13951395        src/globals/UIDesktopWidgetWatchdog.cpp \
    13961396        src/globals/UIDetailsGenerator.cpp \
    1397         src/globals/UIDialogPanel.cpp \
    13981397        src/globals/UIErrorString.cpp \
    13991398        src/globals/UIExtension.cpp \
     
    14051404        src/globals/UIModalWindowManager.cpp \
    14061405        src/globals/UIMousePointerShapeData.cpp \
     1406        src/globals/UIPaneContainer.cpp \
    14071407        src/globals/UIPathOperations.cpp \
    14081408        src/globals/UIPopupCenter.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPaneContainer.cpp

    r100955 r100956  
    3737#include "QIToolButton.h"
    3838#include "UIIconPool.h"
    39 #include "UIDialogPanel.h"
     39#include "UIPaneContainer.h"
    4040#ifdef VBOX_WS_MAC
    4141# include "VBoxUtils-darwin.h"
     
    4545#include <iprt/assert.h>
    4646
    47 UIDialogPanelBase::UIDialogPanelBase(QWidget *pParent /* = 0 */)
     47UIPaneContainer::UIPaneContainer(QWidget *pParent /* = 0 */)
    4848    : QIWithRetranslateUI<QWidget>(pParent)
    4949    , m_pTabWidget(0)
     
    5454}
    5555
    56 void UIDialogPanelBase::retranslateUi()
     56void UIPaneContainer::retranslateUi()
    5757{
    5858    if (m_pCloseButton)
     
    6060}
    6161
    62 void UIDialogPanelBase::prepare()
     62void UIPaneContainer::prepare()
    6363{
    6464    QHBoxLayout *pLayout = new QHBoxLayout(this);
     
    6666    pLayout->setContentsMargins(0, 0, 0, 0);
    6767    m_pTabWidget = new QTabWidget();
    68     connect(m_pTabWidget, &QTabWidget::currentChanged, this, &UIDialogPanelBase::sigCurrentTabChanged);
     68    connect(m_pTabWidget, &QTabWidget::currentChanged, this, &UIPaneContainer::sigCurrentTabChanged);
    6969    AssertReturnVoid(m_pTabWidget);
    7070    pLayout->addWidget(m_pTabWidget);
     
    7373    AssertReturnVoid(m_pCloseButton);
    7474    m_pCloseButton->setIcon(UIIconPool::iconSet(":/close_16px.png"));
    75     connect(m_pCloseButton, &QIToolButton::clicked, this, &UIDialogPanelBase::sltHide);
     75    connect(m_pCloseButton, &QIToolButton::clicked, this, &UIPaneContainer::sltHide);
    7676
    7777    m_pTabWidget->setCornerWidget(m_pCloseButton);
    7878}
    7979
    80 void UIDialogPanelBase::sltHide()
     80void UIPaneContainer::sltHide()
    8181{
    8282    hide();
     
    8484}
    8585
    86 void UIDialogPanelBase::insertTab(int iIndex, QWidget *pPage, const QString &strLabel /* = QString() */)
     86void UIPaneContainer::insertTab(int iIndex, QWidget *pPage, const QString &strLabel /* = QString() */)
    8787{
    8888    if (m_pTabWidget)
     
    9090}
    9191
    92 void UIDialogPanelBase::setTabText(int iIndex, const QString &strText)
     92void UIPaneContainer::setTabText(int iIndex, const QString &strText)
    9393{
    9494    if (!m_pTabWidget || iIndex < 0 || iIndex >= m_pTabWidget->count())
     
    9797}
    9898
    99 void UIDialogPanelBase::setCurrentIndex(int iIndex)
     99void UIPaneContainer::setCurrentIndex(int iIndex)
    100100{
    101101    if (!m_pTabWidget || iIndex >= m_pTabWidget->count() || iIndex < 0)
     
    104104}
    105105
    106 int UIDialogPanelBase::currentIndex() const
     106int UIPaneContainer::currentIndex() const
    107107{
    108108    if (!m_pTabWidget)
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPaneContainer.h

    r100955 r100956  
    2626 */
    2727
    28 #ifndef FEQT_INCLUDED_SRC_globals_UIDialogPanel_h
    29 #define FEQT_INCLUDED_SRC_globals_UIDialogPanel_h
     28#ifndef FEQT_INCLUDED_SRC_globals_UIPaneContainer_h
     29#define FEQT_INCLUDED_SRC_globals_UIPaneContainer_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    4444
    4545/** QWidget extension acting as the base class for all the dialog panels like file manager, logviewer etc. */
    46 class SHARED_LIBRARY_STUFF UIDialogPanelBase : public QIWithRetranslateUI<QWidget>
     46class SHARED_LIBRARY_STUFF UIPaneContainer : public QIWithRetranslateUI<QWidget>
    4747{
    4848    Q_OBJECT;
     
    5555public:
    5656
    57     UIDialogPanelBase(QWidget *pParent = 0);
     57    UIPaneContainer(QWidget *pParent = 0);
    5858    void setCurrentIndex(int iIndex);
    5959    int currentIndex() const;
     
    7676};
    7777
    78 #endif /* !FEQT_INCLUDED_SRC_globals_UIDialogPanel_h */
     78#endif /* !FEQT_INCLUDED_SRC_globals_UIPaneContainer_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.cpp

    r100955 r100956  
    369369
    370370UIFileManagerPanel::UIFileManagerPanel(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions)
    371     : UIDialogPanelBase(pParent)
     371    : UIPaneContainer(pParent)
    372372    , m_pListDirectoriesOnTopCheckBox(0)
    373373    , m_pDeleteConfirmationCheckBox(0)
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.h

    r100955 r100956  
    3737
    3838/* GUI includes: */
    39 #include "UIDialogPanel.h"
     39#include "UIPaneContainer.h"
    4040#include "UIGuestControlDefs.h"
    4141#include "QIWithRetranslateUI.h"
     
    5353class QVBoxLayout;
    5454
    55 class UIFileManagerPanel : public UIDialogPanelBase
     55class UIFileManagerPanel : public UIPaneContainer
    5656{
    5757    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp

    r100955 r100956  
    4646
    4747UIVMLogViewerPanelNew::UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer)
    48     : UIDialogPanelBase(pParent)
     48    : UIPaneContainer(pParent)
    4949    , m_pViewer(pViewer)
    5050    , m_pSearchWidget(0)
     
    174174            return true;
    175175    }
    176     return UIDialogPanelBase::eventFilter(pObject, pEvent);
     176    return UIPaneContainer::eventFilter(pObject, pEvent);
    177177}
    178178
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h

    r100955 r100956  
    3333
    3434/* GUI includes: */
    35 #include "UIDialogPanel.h"
     35#include "UIPaneContainer.h"
    3636#include "UIVMLogBookmark.h"
    3737
     
    4545class UIVMLogViewerPreferencesWidget;
    4646
    47 class UIVMLogViewerPanelNew : public UIDialogPanelBase
     47class UIVMLogViewerPanelNew : public UIPaneContainer
    4848{
    4949    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r100955 r100956  
    4848#include "UIExtraDataManager.h"
    4949#include "UIIconPool.h"
    50 #include "UIDialogPanel.h"
     50#include "UIPaneContainer.h"
    5151#include "UIModalWindowManager.h"
    5252#include "UIVisoHostBrowser.h"
     
    6565*********************************************************************************************************************************/
    6666
    67 class SHARED_LIBRARY_STUFF UIVisoSettingWidget : public UIDialogPanelBase
     67class SHARED_LIBRARY_STUFF UIVisoSettingWidget : public UIPaneContainer
    6868{
    6969    Q_OBJECT;
     
    102102
    103103UIVisoSettingWidget::UIVisoSettingWidget(QWidget *pParent)
    104     : UIDialogPanelBase(pParent)
     104    : UIPaneContainer(pParent)
    105105    , m_pVisoNameLabel(0)
    106106    , m_pCustomOptionsLabel(0)
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