Changeset 105772 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 21, 2024 2:56:51 PM (3 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r105771 r105772 2345 2345 }; 2346 2346 2347 /** Toggle action extension, used to toggle 'VISO Creator settings' dialog in file manager. */2348 class UIAction MenuVISOCreatorToggleSettingsDialog: public UIActionToggle2349 { 2350 Q_OBJECT; 2351 2352 public: 2353 2354 /** Constructs action passing @a pParent to the base-class. */ 2355 UIAction MenuVISOCreatorToggleSettingsDialog(UIActionPool *pParent)2347 /** Toggle action extension, used to toggle 'VISO Creator Preferences' pane in VISO Creator. */ 2348 class UIActionToggleVISOCreatorPreferences : public UIActionToggle 2349 { 2350 Q_OBJECT; 2351 2352 public: 2353 2354 /** Constructs action passing @a pParent to the base-class. */ 2355 UIActionToggleVISOCreatorPreferences(UIActionPool *pParent) 2356 2356 : UIActionToggle(pParent) 2357 2357 { … … 2368 2368 virtual QString shortcutExtraDataID() const RT_OVERRIDE 2369 2369 { 2370 return QString("ToggleVISOCreator SettingsDialog");2370 return QString("ToggleVISOCreatorPreferences"); 2371 2371 } 2372 2372 … … 2380 2380 virtual void retranslateUi() RT_OVERRIDE 2381 2381 { 2382 setName(QApplication::translate("UIActionPool", " Settings"));2382 setName(QApplication::translate("UIActionPool", "&Preferences")); 2383 2383 setShortcutScope(QApplication::translate("UIActionPool", "VISO Creator")); 2384 setStatusTip(QApplication::translate("UIActionPool", "Open VISO Creator settings dialog"));2385 setToolTip(QApplication::translate("UIActionPool", "Open Settings Dialog")2384 setStatusTip(QApplication::translate("UIActionPool", "Open pane with VISO Creator preferences")); 2385 setToolTip(QApplication::translate("UIActionPool", "Open Preferences Pane") 2386 2386 + (shortcut().isEmpty() ? QString() : QString(" (%1)").arg(shortcut().toString()))); 2387 2387 } … … 3561 3561 /* Create VISO Creator actions: */ 3562 3562 m_pool[UIActionIndex_M_VISOCreator] = new UIActionMenuVISOCreator(this); 3563 m_pool[UIActionIndex_M_VISOCreator_Toggle SettingsDialog] = new UIActionMenuVISOCreatorToggleSettingsDialog(this);3563 m_pool[UIActionIndex_M_VISOCreator_TogglePreferences] = new UIActionToggleVISOCreatorPreferences(this); 3564 3564 m_pool[UIActionIndex_M_VISOCreator_Add] = new UIActionMenuVISOCreatorAdd(this); 3565 3565 m_pool[UIActionIndex_M_VISOCreator_Remove] = new UIActionMenuVISOCreatorRemove(this); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r104445 r105772 5 5 6 6 /* 7 * Copyright (C) 2010-202 3Oracle and/or its affiliates.7 * Copyright (C) 2010-2024 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 149 149 /* VISO Creator actions: */ 150 150 UIActionIndex_M_VISOCreator, 151 UIActionIndex_M_VISOCreator_Toggle SettingsDialog,151 UIActionIndex_M_VISOCreator_TogglePreferences, 152 152 UIActionIndex_M_VISOCreator_Add, 153 153 UIActionIndex_M_VISOCreator_Remove, -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r104915 r105772 5 5 6 6 /* 7 * Copyright (C) 2006-202 3Oracle and/or its affiliates.7 * Copyright (C) 2006-2024 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 311 311 bool fShowToolBar, const QString& strVisoFilePath, const QString& strMachineName) 312 312 : QWidget(pParent) 313 , m_pAction Settings(0)313 , m_pActionPreferences(0) 314 314 , m_pAddAction(0) 315 315 , m_pOpenAction(0) … … 334 334 populateMenuMainToolbar(); 335 335 prepareConnections(); 336 if (m_pAction Settings)337 sltSettingsActionToggled(m_pAction Settings->isChecked());336 if (m_pActionPreferences) 337 sltSettingsActionToggled(m_pActionPreferences->isChecked()); 338 338 } 339 339 … … 503 503 void UIVisoCreatorWidget::sltPanelContainerHidden() 504 504 { 505 m_pActionPool->action(UIActionIndex_M_VISOCreator_Toggle SettingsDialog)->blockSignals(true);506 m_pActionPool->action(UIActionIndex_M_VISOCreator_Toggle SettingsDialog)->setChecked(false);507 m_pActionPool->action(UIActionIndex_M_VISOCreator_Toggle SettingsDialog)->blockSignals(false);505 m_pActionPool->action(UIActionIndex_M_VISOCreator_TogglePreferences)->blockSignals(true); 506 m_pActionPool->action(UIActionIndex_M_VISOCreator_TogglePreferences)->setChecked(false); 507 m_pActionPool->action(UIActionIndex_M_VISOCreator_TogglePreferences)->blockSignals(false); 508 508 } 509 509 … … 594 594 } 595 595 596 if (m_pAction Settings)597 connect(m_pAction Settings, &QAction::triggered, this, &UIVisoCreatorWidget::sltSettingsActionToggled);596 if (m_pActionPreferences) 597 connect(m_pActionPreferences, &QAction::triggered, this, &UIVisoCreatorWidget::sltSettingsActionToggled); 598 598 599 599 if (m_pSettingsWidget) … … 627 627 return; 628 628 629 m_pAction Settings = m_pActionPool->action(UIActionIndex_M_VISOCreator_ToggleSettingsDialog);629 m_pActionPreferences = m_pActionPool->action(UIActionIndex_M_VISOCreator_TogglePreferences); 630 630 631 631 m_pAddAction = m_pActionPool->action(UIActionIndex_M_VISOCreator_Add); … … 648 648 if (m_pToolBar) 649 649 { 650 if (m_pAction Settings)651 m_pToolBar->addAction(m_pAction Settings);650 if (m_pActionPreferences) 651 m_pToolBar->addAction(m_pActionPreferences); 652 652 } 653 653 if (m_pMainMenu) 654 654 { 655 m_pMainMenu->addAction(m_pAction Settings);655 m_pMainMenu->addAction(m_pActionPreferences); 656 656 m_pMainMenu->addSeparator(); 657 657 if (m_pOpenAction) -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h
r104232 r105772 5 5 6 6 /* 7 * Copyright (C) 2006-202 3Oracle and/or its affiliates.7 * Copyright (C) 2006-2024 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 155 155 /** @name Main toolbar (and main menu) actions 156 156 * @{ */ 157 QAction *m_pAction Settings;157 QAction *m_pActionPreferences; 158 158 /** @} */ 159 159
Note:
See TracChangeset
for help on using the changeset viewer.