Changeset 100956 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 23, 2023 11:53:29 AM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r100936 r100956 825 825 src/globals/UICustomFileSystemModel.h \ 826 826 src/globals/UIDesktopWidgetWatchdog.h \ 827 src/globals/UIDialogPanel.h \828 827 src/globals/UIMainEventListener.h \ 829 828 src/globals/UIMessageCenter.h \ 830 829 src/globals/UIModalWindowManager.h \ 830 src/globals/UIPaneContainer.h \ 831 831 src/globals/UIPopupCenter.h \ 832 832 src/globals/UIProgressEventHandler.h \ … … 1395 1395 src/globals/UIDesktopWidgetWatchdog.cpp \ 1396 1396 src/globals/UIDetailsGenerator.cpp \ 1397 src/globals/UIDialogPanel.cpp \1398 1397 src/globals/UIErrorString.cpp \ 1399 1398 src/globals/UIExtension.cpp \ … … 1405 1404 src/globals/UIModalWindowManager.cpp \ 1406 1405 src/globals/UIMousePointerShapeData.cpp \ 1406 src/globals/UIPaneContainer.cpp \ 1407 1407 src/globals/UIPathOperations.cpp \ 1408 1408 src/globals/UIPopupCenter.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPaneContainer.cpp
r100955 r100956 37 37 #include "QIToolButton.h" 38 38 #include "UIIconPool.h" 39 #include "UI DialogPanel.h"39 #include "UIPaneContainer.h" 40 40 #ifdef VBOX_WS_MAC 41 41 # include "VBoxUtils-darwin.h" … … 45 45 #include <iprt/assert.h> 46 46 47 UI DialogPanelBase::UIDialogPanelBase(QWidget *pParent /* = 0 */)47 UIPaneContainer::UIPaneContainer(QWidget *pParent /* = 0 */) 48 48 : QIWithRetranslateUI<QWidget>(pParent) 49 49 , m_pTabWidget(0) … … 54 54 } 55 55 56 void UI DialogPanelBase::retranslateUi()56 void UIPaneContainer::retranslateUi() 57 57 { 58 58 if (m_pCloseButton) … … 60 60 } 61 61 62 void UI DialogPanelBase::prepare()62 void UIPaneContainer::prepare() 63 63 { 64 64 QHBoxLayout *pLayout = new QHBoxLayout(this); … … 66 66 pLayout->setContentsMargins(0, 0, 0, 0); 67 67 m_pTabWidget = new QTabWidget(); 68 connect(m_pTabWidget, &QTabWidget::currentChanged, this, &UI DialogPanelBase::sigCurrentTabChanged);68 connect(m_pTabWidget, &QTabWidget::currentChanged, this, &UIPaneContainer::sigCurrentTabChanged); 69 69 AssertReturnVoid(m_pTabWidget); 70 70 pLayout->addWidget(m_pTabWidget); … … 73 73 AssertReturnVoid(m_pCloseButton); 74 74 m_pCloseButton->setIcon(UIIconPool::iconSet(":/close_16px.png")); 75 connect(m_pCloseButton, &QIToolButton::clicked, this, &UI DialogPanelBase::sltHide);75 connect(m_pCloseButton, &QIToolButton::clicked, this, &UIPaneContainer::sltHide); 76 76 77 77 m_pTabWidget->setCornerWidget(m_pCloseButton); 78 78 } 79 79 80 void UI DialogPanelBase::sltHide()80 void UIPaneContainer::sltHide() 81 81 { 82 82 hide(); … … 84 84 } 85 85 86 void UI DialogPanelBase::insertTab(int iIndex, QWidget *pPage, const QString &strLabel /* = QString() */)86 void UIPaneContainer::insertTab(int iIndex, QWidget *pPage, const QString &strLabel /* = QString() */) 87 87 { 88 88 if (m_pTabWidget) … … 90 90 } 91 91 92 void UI DialogPanelBase::setTabText(int iIndex, const QString &strText)92 void UIPaneContainer::setTabText(int iIndex, const QString &strText) 93 93 { 94 94 if (!m_pTabWidget || iIndex < 0 || iIndex >= m_pTabWidget->count()) … … 97 97 } 98 98 99 void UI DialogPanelBase::setCurrentIndex(int iIndex)99 void UIPaneContainer::setCurrentIndex(int iIndex) 100 100 { 101 101 if (!m_pTabWidget || iIndex >= m_pTabWidget->count() || iIndex < 0) … … 104 104 } 105 105 106 int UI DialogPanelBase::currentIndex() const106 int UIPaneContainer::currentIndex() const 107 107 { 108 108 if (!m_pTabWidget) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPaneContainer.h
r100955 r100956 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_globals_UI DialogPanel_h29 #define FEQT_INCLUDED_SRC_globals_UI DialogPanel_h28 #ifndef FEQT_INCLUDED_SRC_globals_UIPaneContainer_h 29 #define FEQT_INCLUDED_SRC_globals_UIPaneContainer_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 44 44 45 45 /** QWidget extension acting as the base class for all the dialog panels like file manager, logviewer etc. */ 46 class SHARED_LIBRARY_STUFF UI DialogPanelBase: public QIWithRetranslateUI<QWidget>46 class SHARED_LIBRARY_STUFF UIPaneContainer : public QIWithRetranslateUI<QWidget> 47 47 { 48 48 Q_OBJECT; … … 55 55 public: 56 56 57 UI DialogPanelBase(QWidget *pParent = 0);57 UIPaneContainer(QWidget *pParent = 0); 58 58 void setCurrentIndex(int iIndex); 59 59 int currentIndex() const; … … 76 76 }; 77 77 78 #endif /* !FEQT_INCLUDED_SRC_globals_UI DialogPanel_h */78 #endif /* !FEQT_INCLUDED_SRC_globals_UIPaneContainer_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.cpp
r100955 r100956 369 369 370 370 UIFileManagerPanel::UIFileManagerPanel(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions) 371 : UI DialogPanelBase(pParent)371 : UIPaneContainer(pParent) 372 372 , m_pListDirectoriesOnTopCheckBox(0) 373 373 , m_pDeleteConfirmationCheckBox(0) -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.h
r100955 r100956 37 37 38 38 /* GUI includes: */ 39 #include "UI DialogPanel.h"39 #include "UIPaneContainer.h" 40 40 #include "UIGuestControlDefs.h" 41 41 #include "QIWithRetranslateUI.h" … … 53 53 class QVBoxLayout; 54 54 55 class UIFileManagerPanel : public UI DialogPanelBase55 class UIFileManagerPanel : public UIPaneContainer 56 56 { 57 57 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp
r100955 r100956 46 46 47 47 UIVMLogViewerPanelNew::UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer) 48 : UI DialogPanelBase(pParent)48 : UIPaneContainer(pParent) 49 49 , m_pViewer(pViewer) 50 50 , m_pSearchWidget(0) … … 174 174 return true; 175 175 } 176 return UI DialogPanelBase::eventFilter(pObject, pEvent);176 return UIPaneContainer::eventFilter(pObject, pEvent); 177 177 } 178 178 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r100955 r100956 33 33 34 34 /* GUI includes: */ 35 #include "UI DialogPanel.h"35 #include "UIPaneContainer.h" 36 36 #include "UIVMLogBookmark.h" 37 37 … … 45 45 class UIVMLogViewerPreferencesWidget; 46 46 47 class UIVMLogViewerPanelNew : public UI DialogPanelBase47 class UIVMLogViewerPanelNew : public UIPaneContainer 48 48 { 49 49 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r100955 r100956 48 48 #include "UIExtraDataManager.h" 49 49 #include "UIIconPool.h" 50 #include "UI DialogPanel.h"50 #include "UIPaneContainer.h" 51 51 #include "UIModalWindowManager.h" 52 52 #include "UIVisoHostBrowser.h" … … 65 65 *********************************************************************************************************************************/ 66 66 67 class SHARED_LIBRARY_STUFF UIVisoSettingWidget : public UI DialogPanelBase67 class SHARED_LIBRARY_STUFF UIVisoSettingWidget : public UIPaneContainer 68 68 { 69 69 Q_OBJECT; … … 102 102 103 103 UIVisoSettingWidget::UIVisoSettingWidget(QWidget *pParent) 104 : UI DialogPanelBase(pParent)104 : UIPaneContainer(pParent) 105 105 , m_pVisoNameLabel(0) 106 106 , m_pCustomOptionsLabel(0)
Note:
See TracChangeset
for help on using the changeset viewer.