- Timestamp:
- Feb 5, 2025 6:07:36 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167380
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r107943 r108086 599 599 src/globals/UIStarter.h \ 600 600 src/manager/UIErrorPane.h \ 601 src/manager/UIHomePane.h \ 601 602 src/manager/UIProgressTaskReadCloudMachineList.h \ 602 603 src/manager/UITaskCloudGetSettingsForm.h \ … … 607 608 src/manager/UIVirtualMachineItemCloud.h \ 608 609 src/manager/UIVirtualMachineItemLocal.h \ 609 src/manager/UIWelcomePane.h \610 610 src/manager/chooser/UIChooser.h \ 611 611 src/manager/chooser/UIChooserAbstractModel.h \ … … 1131 1131 src/manager/UICloudEntityKey.cpp \ 1132 1132 src/manager/UIErrorPane.cpp \ 1133 src/manager/UIHomePane.cpp \ 1133 1134 src/manager/UIProgressTaskReadCloudMachineList.cpp \ 1134 1135 src/manager/UITaskCloudGetSettingsForm.cpp \ … … 1139 1140 src/manager/UIVirtualMachineItemCloud.cpp \ 1140 1141 src/manager/UIVirtualMachineItemLocal.cpp \ 1141 src/manager/UIWelcomePane.cpp \1142 1142 src/manager/chooser/UIChooser.cpp \ 1143 1143 src/manager/chooser/UIChooserAbstractModel.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIHomePane.cpp
r108085 r108086 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI WelcomePane class implementation.3 * VBox Qt GUI - UIHomePane class implementation. 4 4 */ 5 5 … … 42 42 #include "UIIconPool.h" 43 43 #include "UITranslationEventListener.h" 44 #include "UI WelcomePane.h"44 #include "UIHomePane.h" 45 45 46 46 /* Other VBox includes: */ … … 49 49 50 50 /********************************************************************************************************************************* 51 * Class UI WelcomePane implementation. *51 * Class UIHomePane implementation. * 52 52 *********************************************************************************************************************************/ 53 53 54 UI WelcomePane::UIWelcomePane(QWidget *pParent /* = 0 */)54 UIHomePane::UIHomePane(QWidget *pParent /* = 0 */) 55 55 : QWidget(pParent) 56 56 , m_pLabelGreetings(0) … … 61 61 } 62 62 63 bool UI WelcomePane::event(QEvent *pEvent)63 bool UIHomePane::event(QEvent *pEvent) 64 64 { 65 65 /* Handle known event types: */ … … 82 82 } 83 83 84 void UI WelcomePane::sltRetranslateUI()84 void UIHomePane::sltRetranslateUI() 85 85 { 86 86 /* Translate greetings text: */ … … 114 114 } 115 115 116 void UI WelcomePane::sltHandleLinkActivated(const QUrl &urlLink)116 void UIHomePane::sltHandleLinkActivated(const QUrl &urlLink) 117 117 { 118 118 uiCommon().openURL(urlLink.toString()); 119 119 } 120 120 121 void UI WelcomePane::sltHandleButtonClicked(QAbstractButton *pButton)121 void UIHomePane::sltHandleButtonClicked(QAbstractButton *pButton) 122 122 { 123 123 /* Make sure one of buttons was really pressed: */ … … 137 137 } 138 138 139 void UI WelcomePane::prepare()139 void UIHomePane::prepare() 140 140 { 141 141 /* Prepare default welcome icon: */ … … 164 164 { 165 165 m_pLabelGreetings->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum); 166 connect(m_pLabelGreetings, &QIRichTextLabel::sigLinkClicked, this, &UI WelcomePane::sltHandleLinkActivated);166 connect(m_pLabelGreetings, &QIRichTextLabel::sigLinkClicked, this, &UIHomePane::sltHandleLinkActivated); 167 167 pMainLayout->addWidget(m_pLabelGreetings, 0, 0); 168 168 } … … 216 216 217 217 connect(pButtonGroup, &QButtonGroup::buttonClicked, 218 this, &UI WelcomePane::sltHandleButtonClicked);218 this, &UIHomePane::sltHandleButtonClicked); 219 219 } 220 220 … … 231 231 sltRetranslateUI(); 232 232 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 233 this, &UI WelcomePane::sltRetranslateUI);233 this, &UIHomePane::sltRetranslateUI); 234 234 235 235 /* Update stuff: */ … … 238 238 } 239 239 240 void UI WelcomePane::updateTextLabels()240 void UIHomePane::updateTextLabels() 241 241 { 242 242 /* For all the text-labels: */ … … 254 254 } 255 255 256 void UI WelcomePane::updatePixmap()256 void UIHomePane::updatePixmap() 257 257 { 258 258 /* Assign corresponding icon: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIHomePane.h
r108085 r108086 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI WelcomePane class declaration.3 * VBox Qt GUI - UIHomePane class declaration. 4 4 */ 5 5 … … 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_manager_UI WelcomePane_h29 #define FEQT_INCLUDED_SRC_manager_UI WelcomePane_h28 #ifndef FEQT_INCLUDED_SRC_manager_UIHomePane_h 29 #define FEQT_INCLUDED_SRC_manager_UIHomePane_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 45 45 class QIRichTextLabel; 46 46 47 /** QWidget subclass holding Welcome information about VirtualBox. */48 class UI WelcomePane : public QWidget47 /** QWidget subclass holding Home information about VirtualBox. */ 48 class UIHomePane : public QWidget 49 49 { 50 50 Q_OBJECT; … … 52 52 public: 53 53 54 /** Constructs Welcome pane passing @a pParent to the base-class. */55 UI WelcomePane(QWidget *pParent = 0);54 /** Constructs Home pane passing @a pParent to the base-class. */ 55 UIHomePane(QWidget *pParent = 0); 56 56 57 57 protected: … … 94 94 }; 95 95 96 #endif /* !FEQT_INCLUDED_SRC_manager_UI WelcomePane_h */96 #endif /* !FEQT_INCLUDED_SRC_manager_UIHomePane_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r108083 r108086 42 42 #include "UIToolPaneGlobal.h" 43 43 #include "UIVMActivityOverviewWidget.h" 44 #include "UI WelcomePane.h"44 #include "UIHomePane.h" 45 45 #ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS 46 46 # include "UIMachineManagerWidget.h" … … 55 55 , m_pActionPool(pActionPool) 56 56 , m_pLayout(0) 57 , m_pPane Welcome(0)57 , m_pPaneHome(0) 58 58 , m_pPaneExtensions(0) 59 59 , m_pPaneMedia(0) … … 123 123 case UIToolType_Home: 124 124 { 125 /* Create Welcome pane: */126 m_pPane Welcome = new UIWelcomePane;127 AssertPtrReturnVoid(m_pPane Welcome);128 { 129 /* Configure pane: */ 130 m_pPane Welcome->setProperty("ToolType", QVariant::fromValue(UIToolType_Home));131 132 /* Add into layout: */ 133 m_pLayout->addWidget(m_pPane Welcome);134 m_pLayout->setCurrentWidget(m_pPane Welcome);125 /* Create Home pane: */ 126 m_pPaneHome = new UIHomePane; 127 AssertPtrReturnVoid(m_pPaneHome); 128 { 129 /* Configure pane: */ 130 m_pPaneHome->setProperty("ToolType", QVariant::fromValue(UIToolType_Home)); 131 132 /* Add into layout: */ 133 m_pLayout->addWidget(m_pPaneHome); 134 m_pLayout->setCurrentWidget(m_pPaneHome); 135 135 } 136 136 break; … … 283 283 switch (enmType) 284 284 { 285 case UIToolType_Home: m_pPane Welcome = 0; break;285 case UIToolType_Home: m_pPaneHome = 0; break; 286 286 case UIToolType_Extensions: m_pPaneExtensions = 0; break; 287 287 case UIToolType_Media: m_pPaneMedia = 0; break; … … 310 310 { 311 311 case UIToolType_Home: 312 pCurrentToolWidget = m_pPane Welcome;312 pCurrentToolWidget = m_pPaneHome; 313 313 break; 314 314 case UIToolType_Extensions: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.h
r107340 r108086 49 49 class UIVMActivityOverviewWidget; 50 50 class UIVirtualMachineItemCloud; 51 class UI WelcomePane;51 class UIHomePane; 52 52 #ifdef VBOX_GUI_WITH_ADVANCED_WIDGETS 53 53 class UIMachineManagerWidget; … … 121 121 /** Holds the stacked-layout instance. */ 122 122 QStackedLayout *m_pLayout; 123 /** Holds the Welcome pane instance. */124 UI WelcomePane *m_pPaneWelcome;123 /** Holds the Home pane instance. */ 124 UIHomePane *m_pPaneHome; 125 125 /** Holds the Extension Pack Manager instance. */ 126 126 UIExtensionPackManagerWidget *m_pPaneExtensions;
Note:
See TracChangeset
for help on using the changeset viewer.