Changeset 107299 in vbox
- Timestamp:
- Dec 12, 2024 2:02:39 PM (5 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerAdvancedWidget.cpp
r107289 r107299 763 763 764 764 /* Create Global Tools-menu: */ 765 m_pMenuToolsGlobal = new UITools( UIToolClass_Global, this);765 m_pMenuToolsGlobal = new UITools(this, UIToolClass_Global, actionPool()); 766 766 /* Create Machine Tools-menu: */ 767 m_pMenuToolsMachine = new UITools( UIToolClass_Machine, this);767 m_pMenuToolsMachine = new UITools(this, UIToolClass_Machine, actionPool()); 768 768 } 769 769 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r107289 r107299 804 804 805 805 /* Create Global Tools-menu: */ 806 m_pMenuToolsGlobal = new UITools( UIToolClass_Global, this);806 m_pMenuToolsGlobal = new UITools(this, UIToolClass_Global, actionPool()); 807 807 /* Create Machine Tools-menu: */ 808 m_pMenuToolsMachine = new UITools( UIToolClass_Machine, this);808 m_pMenuToolsMachine = new UITools(this, UIToolClass_Machine, actionPool()); 809 809 } 810 810 … … 866 866 connect(m_pPaneChooser, &UIChooser::sigMachineSearchWidgetVisibilityChanged, 867 867 this, &UIVirtualBoxManagerWidget::sigMachineSearchWidgetVisibilityChanged); 868 connect(this, &UIVirtualBoxManagerWidget::sigToolBarHeightChange, 869 m_pPaneChooser, &UIChooser::setGlobalItemHeightHint); 868 870 869 871 /* Details-pane connections: */ … … 1121 1123 disconnect(m_pPaneChooser, &UIChooser::sigMachineSearchWidgetVisibilityChanged, 1122 1124 this, &UIVirtualBoxManagerWidget::sigMachineSearchWidgetVisibilityChanged); 1125 disconnect(this, &UIVirtualBoxManagerWidget::sigToolBarHeightChange, 1126 m_pPaneChooser, &UIChooser::setGlobalItemHeightHint); 1123 1127 1124 1128 /* Details-pane connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r107286 r107299 33 33 #include "UIChooserModel.h" 34 34 #include "UIChooserView.h" 35 #ifndef VBOX_GUI_WITH_ADVANCED_WIDGETS36 # include "UIVirtualBoxManagerWidget.h"37 #else38 # include "UIVirtualBoxManagerAdvancedWidget.h"39 #endif40 35 #include "UIVirtualMachineItem.h" 41 36 42 37 43 UIChooser::UIChooser( UIVirtualBoxManagerWidget *pParent, UIActionPool *pActionPool)38 UIChooser::UIChooser(QWidget *pParent, UIActionPool *pActionPool) 44 39 : QWidget(pParent) 45 , m_pParent(pParent)46 40 , m_pActionPool(pActionPool) 47 41 , m_pChooserModel(0) … … 283 277 AssertPtrReturnVoid(model()); 284 278 AssertPtrReturnVoid(view()); 285 286 /* Parent connections: */287 connect(m_pParent, &UIVirtualBoxManagerWidget::sigToolBarHeightChange,288 this, &UIChooser::setGlobalItemHeightHint);289 279 290 280 /* Abstract Chooser-model connections: */ … … 369 359 disconnect(view(), &UIChooserView::sigSearchWidgetVisibilityChanged, 370 360 this, &UIChooser::sigMachineSearchWidgetVisibilityChanged); 371 372 /* Parent connections: */373 disconnect(m_pParent, &UIVirtualBoxManagerWidget::sigToolBarHeightChange,374 this, &UIChooser::setGlobalItemHeightHint);375 361 } 376 362 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r107286 r107299 37 37 /* GUI includes: */ 38 38 #include "UIExtraDataDefs.h" 39 #include "UIManagerDefs.h"40 39 41 40 /* Forward declarations: */ … … 44 43 class UIChooserView; 45 44 class UIVirtualMachineItem; 46 class UIVirtualBoxManagerWidget;47 45 class UIVirtualMachineItemCloud; 48 46 … … 106 104 /** Constructs Chooser-pane passing @a pParent to the base-class. 107 105 * @param pActionPool Brings the action-pool reference. */ 108 UIChooser( UIVirtualBoxManagerWidget *pParent, UIActionPool *pActionPool);106 UIChooser(QWidget *pParent, UIActionPool *pActionPool); 109 107 /** Destructs Chooser-pane. */ 110 108 virtual ~UIChooser() RT_OVERRIDE; … … 239 237 /** @name General stuff. 240 238 * @{ */ 241 /** Holds the parent reference. */242 UIVirtualBoxManagerWidget *m_pParent;243 244 239 /** Holds the action-pool reference. */ 245 240 UIActionPool *m_pActionPool; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
r107286 r107299 33 33 #include "UIToolsModel.h" 34 34 #include "UIToolsView.h" 35 #ifndef VBOX_GUI_WITH_ADVANCED_WIDGETS36 # include "UIVirtualBoxManagerWidget.h"37 #else38 # include "UIVirtualBoxManagerAdvancedWidget.h"39 #endif40 35 41 36 /* Other VBox includes: */ … … 43 38 44 39 45 UITools::UITools( UIToolClass enmClass, UIVirtualBoxManagerWidget *pParent /* = 0 */)40 UITools::UITools(QWidget *pParent, UIToolClass enmClass, UIActionPool *pActionPool) 46 41 : QWidget(pParent, Qt::Popup) 47 42 , m_enmClass(enmClass) 48 , m_p ManagerWidget(pParent)43 , m_pActionPool(pActionPool) 49 44 , m_pMainLayout(0) 50 45 , m_pToolsModel(0) … … 56 51 UIActionPool *UITools::actionPool() const 57 52 { 58 return m anagerWidget()->actionPool();53 return m_pActionPool; 59 54 } 60 55 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.h
r107286 r107299 37 37 /* GUI icludes: */ 38 38 #include "UIExtraDataDefs.h" 39 #include "UIManagerDefs.h"40 39 41 40 /* Forward declarations: */ … … 45 44 class UIToolsModel; 46 45 class UIToolsView; 47 class UIVirtualBoxManagerWidget;48 46 49 47 /** QWidget extension used as VM Tools-pane. */ … … 69 67 70 68 /** Constructs Tools-pane passing @a pParent to the base-class. 71 * @param Brings the tools class, it will be fixed one. */ 72 UITools(UIToolClass enmClass, UIVirtualBoxManagerWidget *pParent = 0); 69 * @param enmClass Brings the tools class, it will be fixed one. 70 * @param pActionPool Brings the action-pool reference. */ 71 UITools(QWidget *pParent, UIToolClass enmClass, UIActionPool *pActionPool); 73 72 74 73 /** @name General stuff. 75 74 * @{ */ 76 /** Returns the manager-widget reference. */77 UIVirtualBoxManagerWidget *managerWidget() const { return m_pManagerWidget; }78 79 75 /** Returns the action-pool reference. */ 80 76 UIActionPool *actionPool() const; … … 130 126 const UIToolClass m_enmClass; 131 127 132 /** Holds the manager-widgetreference. */133 UI VirtualBoxManagerWidget *m_pManagerWidget;128 /** Holds the action-pool reference. */ 129 UIActionPool *m_pActionPool; 134 130 135 /** Holds the main layout instan e. */131 /** Holds the main layout instance. */ 136 132 QVBoxLayout *m_pMainLayout; 137 /** Holds the Tools-model instan e. */133 /** Holds the Tools-model instance. */ 138 134 UIToolsModel *m_pToolsModel; 139 /** Holds the Tools-view instan e. */135 /** Holds the Tools-view instance. */ 140 136 UIToolsView *m_pToolsView; 141 137 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.