Changeset 108504 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 10, 2025 4:23:00 PM (6 weeks ago)
- svn:sync-xref-src-repo-rev:
- 167892
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 7 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r108501 r108504 583 583 src/manager/UIProgressTaskReadCloudMachineList.h \ 584 584 src/manager/UITaskCloudGetSettingsForm.h \ 585 src/manager/UIToolPane Global.h \585 src/manager/UIToolPane.h \ 586 586 src/manager/UIToolPaneMachine.h \ 587 587 src/manager/UIVirtualBoxManager.h \ … … 1106 1106 src/manager/UIProgressTaskReadCloudMachineList.cpp \ 1107 1107 src/manager/UITaskCloudGetSettingsForm.cpp \ 1108 src/manager/UIToolPane Global.cpp \1108 src/manager/UIToolPane.cpp \ 1109 1109 src/manager/UIToolPaneMachine.cpp \ 1110 1110 src/manager/UIVirtualBoxManager.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIGlobalToolsWidget.cpp
r108501 r108504 36 36 #include "UIGlobalToolsWidget.h" 37 37 #include "UIMachineToolsWidget.h" 38 #include "UIToolPane Global.h"38 #include "UIToolPane.h" 39 39 #include "UIToolPaneMachine.h" 40 40 #include "UITools.h" … … 63 63 } 64 64 65 UIToolPane Global*UIGlobalToolsWidget::toolPane() const65 UIToolPane *UIGlobalToolsWidget::toolPane() const 66 66 { 67 67 return m_pPane; … … 320 320 321 321 /* Create tool-pane: */ 322 m_pPane = new UIToolPane Global(actionPool());322 m_pPane = new UIToolPane(actionPool()); 323 323 if (toolPane()) 324 324 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIGlobalToolsWidget.h
r108501 r108504 44 44 class UIChooser; 45 45 class UIMachineToolsWidget; 46 class UIToolPane Global;46 class UIToolPane; 47 47 class UIToolPaneMachine; 48 48 class UITools; … … 87 87 * @{ */ 88 88 /** Returns tool-pane instance. */ 89 UIToolPane Global*toolPane() const;89 UIToolPane *toolPane() const; 90 90 /** Returns Machine Tools Widget reference. */ 91 91 UIMachineToolsWidget *machineToolsWidget() const; … … 189 189 QGridLayout *m_pLayout; 190 190 191 /** Holds the Tools-menu instance. */192 UITools 193 /** Holds the Tools-pane instance. */194 UIToolPane Global*m_pPane;191 /** Holds the tools-menu instance. */ 192 UITools *m_pMenu; 193 /** Holds the tool-pane instance. */ 194 UIToolPane *m_pPane; 195 195 }; 196 196 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineToolsWidget.cpp
r108499 r108504 38 38 #include "UIGlobalSession.h" 39 39 #include "UIMachineToolsWidget.h" 40 #include "UIToolPane Global.h"40 #include "UIToolPane.h" 41 41 #include "UIToolPaneMachine.h" 42 42 #include "UITools.h" … … 46 46 47 47 48 UIMachineToolsWidget::UIMachineToolsWidget(UIToolPane Global*pParent, UIActionPool *pActionPool)48 UIMachineToolsWidget::UIMachineToolsWidget(UIToolPane *pParent, UIActionPool *pActionPool) 49 49 : QWidget(pParent) 50 50 , m_pParent(pParent) … … 487 487 488 488 /* Parent connections: */ 489 connect(m_pParent, &UIToolPane Global::sigSwitchToMachineActivityPane,489 connect(m_pParent, &UIToolPane::sigSwitchToMachineActivityPane, 490 490 this, &UIMachineToolsWidget::sltSwitchToVMActivityTool); 491 491 … … 542 542 543 543 /* Parent connections: */ 544 disconnect(m_pParent, &UIToolPane Global::sigSwitchToMachineActivityPane,544 disconnect(m_pParent, &UIToolPane::sigSwitchToMachineActivityPane, 545 545 this, &UIMachineToolsWidget::sltSwitchToVMActivityTool); 546 546 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineToolsWidget.h
r108499 r108504 44 44 class UIActionPool; 45 45 class UIChooser; 46 class UIToolPane Global;46 class UIToolPane; 47 47 class UIToolPaneMachine; 48 48 class UITools; … … 90 90 /** Constructs Machine Tools Widget passing @a pParent to the base-class. 91 91 * @param pActionPool Brings the action-pool reference. */ 92 UIMachineToolsWidget(UIToolPane Global*pParent, UIActionPool *pActionPool);92 UIMachineToolsWidget(UIToolPane *pParent, UIActionPool *pActionPool); 93 93 94 94 /** @name Common stuff. … … 244 244 245 245 /** Holds the parent reference. */ 246 UIToolPane Global*m_pParent;246 UIToolPane *m_pParent; 247 247 /** Holds the action-pool reference. */ 248 UIActionPool 248 UIActionPool *m_pActionPool; 249 249 250 250 /** Holds the central splitter instance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPane.cpp
r108503 r108504 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIToolPane Globalclass implementation.3 * VBox Qt GUI - UIToolPane class implementation. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2017-202 4Oracle and/or its affiliates.7 * Copyright (C) 2017-2025 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 42 42 #include "UIMediumManager.h" 43 43 #include "UINetworkManager.h" 44 #include "UIToolPane Global.h"44 #include "UIToolPane.h" 45 45 #include "UIVMActivityOverviewWidget.h" 46 46 … … 49 49 50 50 51 UIToolPane Global::UIToolPaneGlobal(UIActionPool *pActionPool, QWidget *pParent /* = 0 */)51 UIToolPane::UIToolPane(UIActionPool *pActionPool, QWidget *pParent /* = 0 */) 52 52 : QWidget(pParent) 53 53 , m_pActionPool(pActionPool) … … 65 65 } 66 66 67 UIToolPane Global::~UIToolPaneGlobal()67 UIToolPane::~UIToolPane() 68 68 { 69 69 cleanup(); 70 70 } 71 71 72 void UIToolPane Global::setActive(bool fActive)72 void UIToolPane::setActive(bool fActive) 73 73 { 74 74 /* Save activity: */ … … 82 82 } 83 83 84 UIToolType UIToolPane Global::currentTool() const84 UIToolType UIToolPane::currentTool() const 85 85 { 86 86 return m_pLayout && m_pLayout->currentWidget() … … 89 89 } 90 90 91 bool UIToolPane Global::isToolOpened(UIToolType enmType) const91 bool UIToolPane::isToolOpened(UIToolType enmType) const 92 92 { 93 93 for (int iIndex = 0; iIndex < m_pLayout->count(); ++iIndex) … … 97 97 } 98 98 99 void UIToolPane Global::openTool(UIToolType enmType)99 void UIToolPane::openTool(UIToolType enmType) 100 100 { 101 101 /* Search through the stacked widgets: */ … … 180 180 m_pPaneMedia->setProperty("ToolType", QVariant::fromValue(UIToolType_Media)); 181 181 connect(m_pPaneMedia, &UIMediumManagerWidget::sigCreateMedium, 182 this, &UIToolPane Global::sigCreateMedium);182 this, &UIToolPane::sigCreateMedium); 183 183 connect(m_pPaneMedia, &UIMediumManagerWidget::sigCopyMedium, 184 this, &UIToolPane Global::sigCopyMedium);184 this, &UIToolPane::sigCopyMedium); 185 185 #ifndef VBOX_WS_MAC 186 186 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; … … 241 241 m_pPaneActivities->setProperty("ToolType", QVariant::fromValue(UIToolType_Activities)); 242 242 connect(m_pPaneActivities, &UIVMActivityOverviewWidget::sigSwitchToMachineActivityPane, 243 this, &UIToolPane Global::sigSwitchToMachineActivityPane);243 this, &UIToolPane::sigSwitchToMachineActivityPane); 244 244 m_pPaneActivities->setCloudMachineItems(m_cloudItems); 245 245 #ifndef VBOX_WS_MAC … … 263 263 } 264 264 265 void UIToolPane Global::closeTool(UIToolType enmType)265 void UIToolPane::closeTool(UIToolType enmType) 266 266 { 267 267 /* Search through the stacked widgets: */ … … 296 296 } 297 297 298 QString UIToolPane Global::currentHelpKeyword() const298 QString UIToolPane::currentHelpKeyword() const 299 299 { 300 300 QWidget *pCurrentToolWidget = 0; … … 328 328 } 329 329 330 void UIToolPane Global::setCloudMachineItems(const QList<UIVirtualMachineItemCloud*> &cloudItems)330 void UIToolPane::setCloudMachineItems(const QList<UIVirtualMachineItemCloud*> &cloudItems) 331 331 { 332 332 /* Cache passed value: */ … … 341 341 } 342 342 343 UIMachineToolsWidget *UIToolPane Global::machineToolsWidget() const343 UIMachineToolsWidget *UIToolPane::machineToolsWidget() const 344 344 { 345 345 return m_pPaneMachines; 346 346 } 347 347 348 void UIToolPane Global::prepare()348 void UIToolPane::prepare() 349 349 { 350 350 /* Create stacked-layout: */ … … 357 357 } 358 358 359 void UIToolPane Global::cleanup()359 void UIToolPane::cleanup() 360 360 { 361 361 /* Remove all widgets prematurelly: */ … … 368 368 } 369 369 370 void UIToolPane Global::handleTokenChange()370 void UIToolPane::handleTokenChange() 371 371 { 372 372 /* Determine whether resource monitor is currently active tool: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPane.h
r108503 r108504 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIToolPane Globalclass declaration.3 * VBox Qt GUI - UIToolPane class declaration. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2017-202 4Oracle and/or its affiliates.7 * Copyright (C) 2017-2025 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 26 26 */ 27 27 28 #ifndef FEQT_INCLUDED_SRC_manager_UIToolPane Global_h29 #define FEQT_INCLUDED_SRC_manager_UIToolPane Global_h28 #ifndef FEQT_INCLUDED_SRC_manager_UIToolPane_h 29 #define FEQT_INCLUDED_SRC_manager_UIToolPane_h 30 30 #ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 # pragma once … … 53 53 54 54 /** QWidget subclass representing container for Global tool panes. */ 55 class UIToolPane Global: public QWidget55 class UIToolPane : public QWidget 56 56 { 57 57 Q_OBJECT; … … 70 70 71 71 /** Constructs tools pane passing @a pParent to the base-class. */ 72 UIToolPane Global(UIActionPool *pActionPool, QWidget *pParent = 0);72 UIToolPane(UIActionPool *pActionPool, QWidget *pParent = 0); 73 73 /** Destructs tools pane. */ 74 virtual ~UIToolPane Global() RT_OVERRIDE;74 virtual ~UIToolPane() RT_OVERRIDE; 75 75 76 76 /** Returns the action-pool reference. */ … … 139 139 }; 140 140 141 #endif /* !FEQT_INCLUDED_SRC_manager_UIToolPane Global_h */141 #endif /* !FEQT_INCLUDED_SRC_manager_UIToolPane_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerAdvancedWidget.cpp
r108501 r108504 41 41 #include "UIMachineToolsWidget.h" 42 42 #include "UINotificationCenter.h" 43 #include "UIToolPane Global.h"43 #include "UIToolPane.h" 44 44 #include "UIToolPaneMachine.h" 45 45 #include "UIVirtualBoxManager.h" … … 432 432 this, &UIVirtualBoxManagerAdvancedWidget::sigToolTypeChangeGlobal); 433 433 /* Global Tool Pane connections: */ 434 connect(globalToolPane(), &UIToolPane Global::sigCreateMedium,434 connect(globalToolPane(), &UIToolPane::sigCreateMedium, 435 435 this, &UIVirtualBoxManagerAdvancedWidget::sigCreateMedium); 436 connect(globalToolPane(), &UIToolPane Global::sigCopyMedium,436 connect(globalToolPane(), &UIToolPane::sigCopyMedium, 437 437 this, &UIVirtualBoxManagerAdvancedWidget::sigCopyMedium); 438 438 … … 670 670 this, &UIVirtualBoxManagerAdvancedWidget::sigToolTypeChangeGlobal); 671 671 /* Global Tool Pane connections: */ 672 disconnect(globalToolPane(), &UIToolPane Global::sigCreateMedium,672 disconnect(globalToolPane(), &UIToolPane::sigCreateMedium, 673 673 this, &UIVirtualBoxManagerAdvancedWidget::sigCreateMedium); 674 disconnect(globalToolPane(), &UIToolPane Global::sigCopyMedium,674 disconnect(globalToolPane(), &UIToolPane::sigCopyMedium, 675 675 this, &UIVirtualBoxManagerAdvancedWidget::sigCopyMedium); 676 676 … … 716 716 } 717 717 718 UIToolPane Global*UIVirtualBoxManagerAdvancedWidget::globalToolPane() const718 UIToolPane *UIVirtualBoxManagerAdvancedWidget::globalToolPane() const 719 719 { 720 720 return globalToolsWidget()->toolPane(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerAdvancedWidget.h
r108501 r108504 45 45 class UIGlobalToolsWidget; 46 46 class UIMachineToolsWidget; 47 class UIToolPane Global;47 class UIToolPane; 48 48 class UIToolPaneMachine; 49 49 class UIVirtualBoxManager; … … 273 273 UIGlobalToolsWidget *globalToolsWidget() const; 274 274 /** Returns Global Tool Pane reference. */ 275 UIToolPane Global*globalToolPane() const;275 UIToolPane *globalToolPane() const; 276 276 277 277 /** Returns Machine Tools Widget reference. */
Note:
See TracChangeset
for help on using the changeset viewer.