Changeset 94518 in vbox
- Timestamp:
- Apr 7, 2022 2:51:27 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150863
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r94498 r94518 912 912 src/settings/editors/UIMachineDescriptionEditor.h \ 913 913 src/settings/editors/UIMaximumGuestScreenSizeEditor.h \ 914 src/settings/editors/UIMiniToolbarSettingsEditor.h \ 914 915 src/settings/editors/UIMonitorCountEditor.h \ 915 916 src/settings/editors/UINameAndSystemEditor.h \ … … 1477 1478 src/settings/editors/UIMachineDescriptionEditor.cpp \ 1478 1479 src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp \ 1480 src/settings/editors/UIMiniToolbarSettingsEditor.cpp \ 1479 1481 src/settings/editors/UIMonitorCountEditor.cpp \ 1480 1482 src/settings/editors/UINameAndSystemEditor.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.cpp
r94515 r94518 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIM achineAudioFeaturesEditor class implementation.3 * VBox Qt GUI - UIMiniToolbarSettingsEditor class implementation. 4 4 */ 5 5 … … 22 22 23 23 /* GUI includes: */ 24 #include "UIM achineAudioFeaturesEditor.h"24 #include "UIMiniToolbarSettingsEditor.h" 25 25 26 26 27 UIM achineAudioFeaturesEditor::UIMachineAudioFeaturesEditor(QWidget *pParent /* = 0 */)27 UIMiniToolbarSettingsEditor::UIMiniToolbarSettingsEditor(QWidget *pParent /* = 0 */) 28 28 : QIWithRetranslateUI<QWidget>(pParent) 29 , m_f EnableOutput(false)30 , m_f EnableInput(false)29 , m_fShowMiniToolbar(false) 30 , m_fMiniToolbarAtTop(false) 31 31 , m_pLabel(0) 32 , m_pCheckBox EnableOutput(0)33 , m_pCheckBox EnableInput(0)32 , m_pCheckBoxShowMiniToolBar(0) 33 , m_pCheckBoxMiniToolBarAtTop(0) 34 34 { 35 35 prepare(); 36 36 } 37 37 38 void UIM achineAudioFeaturesEditor::setEnableOutput(bool fOn)38 void UIMiniToolbarSettingsEditor::setShowMiniToolbar(bool fOn) 39 39 { 40 40 /* Update cached value and 41 41 * check-box if value has changed: */ 42 if (m_f EnableOutput!= fOn)42 if (m_fShowMiniToolbar != fOn) 43 43 { 44 m_f EnableOutput= fOn;45 if (m_pCheckBox EnableOutput)46 m_pCheckBox EnableOutput->setCheckState(m_fEnableOutput? Qt::Checked : Qt::Unchecked);44 m_fShowMiniToolbar = fOn; 45 if (m_pCheckBoxShowMiniToolBar) 46 m_pCheckBoxShowMiniToolBar->setCheckState(m_fShowMiniToolbar ? Qt::Checked : Qt::Unchecked); 47 47 } 48 48 } 49 49 50 bool UIM achineAudioFeaturesEditor::outputEnabled() const50 bool UIMiniToolbarSettingsEditor::showMiniToolbar() const 51 51 { 52 return m_pCheckBox EnableOutput53 ? m_pCheckBox EnableOutput->checkState() == Qt::Checked54 : m_f EnableOutput;52 return m_pCheckBoxShowMiniToolBar 53 ? m_pCheckBoxShowMiniToolBar->checkState() == Qt::Checked 54 : m_fShowMiniToolbar; 55 55 } 56 56 57 void UIM achineAudioFeaturesEditor::setEnableInput(bool fOn)57 void UIMiniToolbarSettingsEditor::setMiniToolbarAtTop(bool fOn) 58 58 { 59 59 /* Update cached value and 60 60 * check-box if value has changed: */ 61 if (m_f EnableInput!= fOn)61 if (m_fMiniToolbarAtTop != fOn) 62 62 { 63 m_f EnableInput= fOn;64 if (m_pCheckBox EnableInput)65 m_pCheckBox EnableInput->setCheckState(m_fEnableInput? Qt::Checked : Qt::Unchecked);63 m_fMiniToolbarAtTop = fOn; 64 if (m_pCheckBoxMiniToolBarAtTop) 65 m_pCheckBoxMiniToolBarAtTop->setCheckState(m_fMiniToolbarAtTop ? Qt::Checked : Qt::Unchecked); 66 66 } 67 67 } 68 68 69 bool UIM achineAudioFeaturesEditor::inputEnabled() const69 bool UIMiniToolbarSettingsEditor::miniToolbarAtTop() const 70 70 { 71 return m_pCheckBox EnableInput72 ? m_pCheckBox EnableInput->checkState() == Qt::Checked73 : m_f EnableInput;71 return m_pCheckBoxMiniToolBarAtTop 72 ? m_pCheckBoxMiniToolBarAtTop->checkState() == Qt::Checked 73 : m_fMiniToolbarAtTop; 74 74 } 75 75 76 int UIM achineAudioFeaturesEditor::minimumLabelHorizontalHint() const76 int UIMiniToolbarSettingsEditor::minimumLabelHorizontalHint() const 77 77 { 78 78 return m_pLabel ? m_pLabel->minimumSizeHint().width() : 0; 79 79 } 80 80 81 void UIM achineAudioFeaturesEditor::setMinimumLayoutIndent(int iIndent)81 void UIMiniToolbarSettingsEditor::setMinimumLayoutIndent(int iIndent) 82 82 { 83 83 if (m_pLayout) … … 85 85 } 86 86 87 void UIM achineAudioFeaturesEditor::retranslateUi()87 void UIMiniToolbarSettingsEditor::retranslateUi() 88 88 { 89 89 if (m_pLabel) 90 m_pLabel->setText(tr(" Extended Features:"));91 if (m_pCheckBox EnableOutput)90 m_pLabel->setText(tr("Mini ToolBar:")); 91 if (m_pCheckBoxShowMiniToolBar) 92 92 { 93 m_pCheckBoxEnableOutput->setText(tr("Enable Audio &Output")); 94 m_pCheckBoxEnableOutput->setToolTip(tr("When checked, output to the virtual audio device will reach the host. " 95 "Otherwise the guest is muted.")); 93 m_pCheckBoxShowMiniToolBar->setText(tr("Show in &Full-screen/Seamless")); 94 m_pCheckBoxShowMiniToolBar->setToolTip(tr("When checked, show the Mini ToolBar in full-screen and seamless modes.")); 96 95 } 97 if (m_pCheckBox EnableInput)96 if (m_pCheckBoxMiniToolBarAtTop) 98 97 { 99 m_pCheckBox EnableInput->setText(tr("Enable Audio &Input"));100 m_pCheckBox EnableInput->setToolTip(tr("When checked, the guest will be able to capture audio input from the host."101 "Otherwise the guest will capture only silence."));98 m_pCheckBoxMiniToolBarAtTop->setText(tr("Show at &Top of Screen")); 99 m_pCheckBoxMiniToolBarAtTop->setToolTip(tr("When checked, show the Mini ToolBar at the top of the screen, rather than in " 100 "its default position at the bottom of the screen.")); 102 101 } 103 102 } 104 103 105 void UIM achineAudioFeaturesEditor::prepare()104 void UIMiniToolbarSettingsEditor::prepare() 106 105 { 107 106 /* Prepare main layout: */ … … 120 119 } 121 120 /* Prepare 'enable output' check-box: */ 122 m_pCheckBox EnableOutput= new QCheckBox(this);123 if (m_pCheckBox EnableOutput)124 m_pLayout->addWidget(m_pCheckBox EnableOutput, 0, 1);121 m_pCheckBoxShowMiniToolBar = new QCheckBox(this); 122 if (m_pCheckBoxShowMiniToolBar) 123 m_pLayout->addWidget(m_pCheckBoxShowMiniToolBar, 0, 1); 125 124 /* Prepare 'enable input' check-box: */ 126 m_pCheckBoxEnableInput = new QCheckBox(this); 127 if (m_pCheckBoxEnableInput) 128 m_pLayout->addWidget(m_pCheckBoxEnableInput, 1, 1); 125 m_pCheckBoxMiniToolBarAtTop = new QCheckBox(this); 126 if (m_pCheckBoxMiniToolBarAtTop) 127 m_pLayout->addWidget(m_pCheckBoxMiniToolBarAtTop, 1, 1); 128 } 129 130 /* Prepare connections and widget availability: */ 131 if ( m_pCheckBoxShowMiniToolBar 132 && m_pCheckBoxMiniToolBarAtTop) 133 { 134 connect(m_pCheckBoxShowMiniToolBar, &QCheckBox::toggled, 135 m_pCheckBoxMiniToolBarAtTop, &QCheckBox::setEnabled); 136 m_pCheckBoxMiniToolBarAtTop->setEnabled(m_pCheckBoxShowMiniToolBar->isChecked()); 129 137 } 130 138 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.h
r94514 r94518 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIM achineAudioFeaturesEditor class declaration.3 * VBox Qt GUI - UIMiniToolbarSettingsEditor class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_settings_editors_UIM achineAudioFeaturesEditor_h19 #define FEQT_INCLUDED_SRC_settings_editors_UIM achineAudioFeaturesEditor_h18 #ifndef FEQT_INCLUDED_SRC_settings_editors_UIMiniToolbarSettingsEditor_h 19 #define FEQT_INCLUDED_SRC_settings_editors_UIMiniToolbarSettingsEditor_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 30 30 class QLabel; 31 31 32 /** QWidget subclass used as m achine audio featureseditor. */33 class SHARED_LIBRARY_STUFF UIM achineAudioFeaturesEditor : public QIWithRetranslateUI<QWidget>32 /** QWidget subclass used as mini-toolbar editor. */ 33 class SHARED_LIBRARY_STUFF UIMiniToolbarSettingsEditor : public QIWithRetranslateUI<QWidget> 34 34 { 35 35 Q_OBJECT; … … 38 38 39 39 /** Constructs editor passing @a pParent to the base-class. */ 40 UIM achineAudioFeaturesEditor(QWidget *pParent = 0);40 UIMiniToolbarSettingsEditor(QWidget *pParent = 0); 41 41 42 /** Defines whether ' enable output' feature in @a fOn. */43 void set EnableOutput(bool fOn);44 /** Returns ' enable output' feature value. */45 bool outputEnabled() const;42 /** Defines whether 'show mini-toolbar' feature in @a fOn. */ 43 void setShowMiniToolbar(bool fOn); 44 /** Returns 'show mini-toolbar' feature value. */ 45 bool showMiniToolbar() const; 46 46 47 /** Defines whether ' enable input' feature in @a fOn. */48 void set EnableInput(bool fOn);49 /** Returns ' enable input' feature value. */50 bool inputEnabled() const;47 /** Defines whether 'mini-toolbar at top' feature in @a fOn. */ 48 void setMiniToolbarAtTop(bool fOn); 49 /** Returns 'mini-toolbar at top' feature value. */ 50 bool miniToolbarAtTop() const; 51 51 52 52 /** Returns minimum layout hint. */ … … 67 67 /** @name Values 68 68 * @{ */ 69 /** Holds the ' enable output' feature value. */70 bool m_f EnableOutput;71 /** Holds the ' enable input' feature value. */72 bool m_f EnableInput;69 /** Holds the 'show mini-toolbar' feature value. */ 70 bool m_fShowMiniToolbar; 71 /** Holds the 'mini-toolbar at top' feature value. */ 72 bool m_fMiniToolbarAtTop; 73 73 /** @} */ 74 74 … … 79 79 /** Holds the label instance. */ 80 80 QLabel *m_pLabel; 81 /** Holds the ' enable output' check-box instance. */82 QCheckBox *m_pCheckBox EnableOutput;83 /** Holds the ' enable input' check-box instance. */84 QCheckBox *m_pCheckBox EnableInput;81 /** Holds the 'show mini-toolbar' check-box instance. */ 82 QCheckBox *m_pCheckBoxShowMiniToolBar; 83 /** Holds the 'mini-toolbar alignment' check-box instance. */ 84 QCheckBox *m_pCheckBoxMiniToolBarAtTop; 85 85 /** @} */ 86 86 }; 87 87 88 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UIM achineAudioFeaturesEditor_h */88 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UIMiniToolbarSettingsEditor_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp
r94333 r94518 17 17 18 18 /* Qt includes: */ 19 #include <QCheckBox> 20 #include <QGridLayout> 21 #include <QLabel> 19 #include <QVBoxLayout> 22 20 23 21 /* GUI includes: */ … … 27 25 #include "UIStatusBarEditorWindow.h" 28 26 #include "UIMenuBarEditorWindow.h" 27 #include "UIMiniToolbarSettingsEditor.h" 29 28 #include "UIVisualStateEditor.h" 30 29 … … 52 51 , m_restrictionsOfMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_Invalid) 53 52 #ifndef VBOX_WS_MAC 54 , m_fShowMiniTool Bar(false)55 , m_fMiniTool BarAtTop(false)53 , m_fShowMiniToolbar(false) 54 , m_fMiniToolbarAtTop(false) 56 55 #endif /* !VBOX_WS_MAC */ 57 56 , m_enmVisualState(UIVisualStateType_Invalid) … … 82 81 && (m_restrictionsOfMenuHelp == other.m_restrictionsOfMenuHelp) 83 82 #ifndef VBOX_WS_MAC 84 && (m_fShowMiniTool Bar == other.m_fShowMiniToolBar)85 && (m_fMiniTool BarAtTop == other.m_fMiniToolBarAtTop)83 && (m_fShowMiniToolbar == other.m_fShowMiniToolbar) 84 && (m_fMiniToolbarAtTop == other.m_fMiniToolbarAtTop) 86 85 #endif /* !VBOX_WS_MAC */ 87 86 && (m_enmVisualState == other.m_enmVisualState) … … 130 129 #ifndef VBOX_WS_MAC 131 130 /** Holds whether the mini-toolbar is enabled. */ 132 bool m_fShowMiniTool Bar;131 bool m_fShowMiniToolbar; 133 132 /** Holds whether the mini-toolbar should be aligned at top of screen. */ 134 bool m_fMiniTool BarAtTop;133 bool m_fMiniToolbarAtTop; 135 134 #endif /* !VBOX_WS_MAC */ 136 135 … … 144 143 , m_pActionPool(0) 145 144 , m_pCache(0) 146 , m_pLayout(0)147 145 , m_pEditorMenuBar(0) 148 146 , m_pEditorVisualState(0) 149 , m_pLabelMiniToolBar(0) 150 , m_pCheckBoxShowMiniToolBar(0) 151 , m_pCheckBoxMiniToolBarAlignment(0) 147 , m_pEditorMiniToolabSettings(0) 152 148 , m_pEditorStatusBar(0) 153 149 { … … 197 193 oldInterfaceData.m_restrictionsOfMenuHelp = gEDataManager->restrictedRuntimeMenuHelpActionTypes(m_machine.GetId()); 198 194 #ifndef VBOX_WS_MAC 199 oldInterfaceData.m_fShowMiniTool Bar = gEDataManager->miniToolbarEnabled(m_machine.GetId());200 oldInterfaceData.m_fMiniTool BarAtTop = gEDataManager->miniToolbarAlignment(m_machine.GetId()) == Qt::AlignTop;195 oldInterfaceData.m_fShowMiniToolbar = gEDataManager->miniToolbarEnabled(m_machine.GetId()); 196 oldInterfaceData.m_fMiniToolbarAtTop = gEDataManager->miniToolbarAlignment(m_machine.GetId()) == Qt::AlignTop; 201 197 #endif 202 198 oldInterfaceData.m_enmVisualState = gEDataManager->requestedVisualState(m_machine.GetId()); … … 235 231 m_pEditorMenuBar->setRestrictionsOfMenuHelp(oldInterfaceData.m_restrictionsOfMenuHelp); 236 232 #ifndef VBOX_WS_MAC 237 m_p CheckBoxShowMiniToolBar->setChecked(oldInterfaceData.m_fShowMiniToolBar);238 m_p CheckBoxMiniToolBarAlignment->setChecked(oldInterfaceData.m_fMiniToolBarAtTop);233 m_pEditorMiniToolabSettings->setShowMiniToolbar(oldInterfaceData.m_fShowMiniToolbar); 234 m_pEditorMiniToolabSettings->setMiniToolbarAtTop(oldInterfaceData.m_fMiniToolbarAtTop); 239 235 #endif 240 236 m_pEditorVisualState->setMachineId(m_machine.GetId()); … … 274 270 newInterfaceData.m_restrictionsOfMenuHelp = m_pEditorMenuBar->restrictionsOfMenuHelp(); 275 271 #ifndef VBOX_WS_MAC 276 newInterfaceData.m_fShowMiniTool Bar = m_pCheckBoxShowMiniToolBar->isChecked();277 newInterfaceData.m_fMiniTool BarAtTop = m_pCheckBoxMiniToolBarAlignment->isChecked();272 newInterfaceData.m_fShowMiniToolbar = m_pEditorMiniToolabSettings->showMiniToolbar(); 273 newInterfaceData.m_fMiniToolbarAtTop = m_pEditorMiniToolabSettings->miniToolbarAtTop(); 278 274 #endif 279 275 newInterfaceData.m_enmVisualState = m_pEditorVisualState->value(); … … 297 293 void UIMachineSettingsInterface::retranslateUi() 298 294 { 299 m_pEditorMenuBar->setToolTip(tr("Allows to modify VM menu-bar contents."));300 m_pLabelMiniToolBar->setText(tr("Mini ToolBar:"));301 m_pCheckBoxShowMiniToolBar->setText(tr("Show in &Full-screen/Seamless"));302 m_pCheckBoxShowMiniToolBar->setToolTip(tr("When checked, show the Mini ToolBar in full-screen and seamless modes."));303 m_pCheckBoxMiniToolBarAlignment->setText(tr("Show at &Top of Screen"));304 m_pCheckBoxMiniToolBarAlignment->setToolTip(tr("When checked, show the Mini ToolBar at the top of the screen, rather than in "305 "its default position at the bottom of the screen."));306 m_pEditorStatusBar->setToolTip(tr("Allows to modify VM status-bar contents."));307 308 295 /* These editors have own labels, but we want them to be properly layouted according to each other: */ 309 296 int iMinimumLayoutHint = 0; 310 297 iMinimumLayoutHint = qMax(iMinimumLayoutHint, m_pEditorVisualState->minimumLabelHorizontalHint()); 311 iMinimumLayoutHint = qMax(iMinimumLayoutHint, m_p LabelMiniToolBar->minimumSizeHint().width());298 iMinimumLayoutHint = qMax(iMinimumLayoutHint, m_pEditorMiniToolabSettings->minimumLabelHorizontalHint()); 312 299 m_pEditorVisualState->setMinimumLayoutIndent(iMinimumLayoutHint); 313 m_p Layout->setColumnMinimumWidth(0,iMinimumLayoutHint);300 m_pEditorMiniToolabSettings->setMinimumLayoutIndent(iMinimumLayoutHint); 314 301 } 315 302 … … 319 306 m_pEditorMenuBar->setEnabled(isMachineInValidMode()); 320 307 #ifdef VBOX_WS_MAC 321 m_pLabelMiniToolBar->hide(); 322 m_pCheckBoxShowMiniToolBar->hide(); 323 m_pCheckBoxMiniToolBarAlignment->hide(); 324 #else /* !VBOX_WS_MAC */ 325 m_pLabelMiniToolBar->setEnabled(isMachineInValidMode()); 326 m_pCheckBoxShowMiniToolBar->setEnabled(isMachineInValidMode()); 327 m_pCheckBoxMiniToolBarAlignment->setEnabled(isMachineInValidMode() && m_pCheckBoxShowMiniToolBar->isChecked()); 328 #endif /* !VBOX_WS_MAC */ 308 m_pEditorMiniToolabSettings->hide(); 309 #else 310 m_pEditorMiniToolabSettings->setEnabled(isMachineInValidMode()); 311 #endif 329 312 m_pEditorStatusBar->setEnabled(isMachineInValidMode()); 330 313 } … … 350 333 { 351 334 /* Prepare main layout: */ 352 m_pLayout = new QGridLayout(this); 353 if (m_pLayout) 354 { 355 m_pLayout->setColumnStretch(1, 1); 356 m_pLayout->setRowStretch(4, 1); 357 335 QVBoxLayout *pLayout = new QVBoxLayout(this); 336 if (pLayout) 337 { 358 338 /* Prepare menu-bar editor: */ 359 339 m_pEditorMenuBar = new UIMenuBarEditorWidget(this); … … 363 343 m_pEditorMenuBar->setMachineID(m_uMachineId); 364 344 365 m_pLayout->addWidget(m_pEditorMenuBar, 0, 0, 1, 3);345 pLayout->addWidget(m_pEditorMenuBar); 366 346 } 367 347 … … 369 349 m_pEditorVisualState = new UIVisualStateEditor(this); 370 350 if (m_pEditorVisualState) 371 m_pLayout->addWidget(m_pEditorVisualState, 1, 0, 1, 3); 372 373 /* Prepare mini-toolbar label: */ 374 m_pLabelMiniToolBar = new QLabel(this); 375 if (m_pLabelMiniToolBar) 376 { 377 m_pLabelMiniToolBar->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 378 m_pLayout->addWidget(m_pLabelMiniToolBar, 2, 0); 379 } 380 /* Prepare 'show mini-toolbar' check-box: */ 381 m_pCheckBoxShowMiniToolBar = new QCheckBox(this); 382 if (m_pCheckBoxShowMiniToolBar) 383 m_pLayout->addWidget(m_pCheckBoxShowMiniToolBar, 2, 1); 384 /* Prepare 'mini-toolbar alignment' check-box: */ 385 m_pCheckBoxMiniToolBarAlignment = new QCheckBox(this); 386 if (m_pCheckBoxMiniToolBarAlignment) 387 m_pLayout->addWidget(m_pCheckBoxMiniToolBarAlignment, 3, 1); 351 pLayout->addWidget(m_pEditorVisualState); 352 353 /* Prepare mini-toolbar settings editor: */ 354 m_pEditorMiniToolabSettings = new UIMiniToolbarSettingsEditor(this); 355 if (m_pEditorMiniToolabSettings) 356 pLayout->addWidget(m_pEditorMiniToolabSettings); 357 358 pLayout->addStretch(); 388 359 389 360 /* Prepare status-bar editor: */ … … 392 363 { 393 364 m_pEditorStatusBar->setMachineID(m_uMachineId); 394 m_pLayout->addWidget(m_pEditorStatusBar, 5, 0, 1, 3);365 pLayout->addWidget(m_pEditorStatusBar); 395 366 } 396 367 } … … 399 370 void UIMachineSettingsInterface::prepareConnections() 400 371 { 401 connect(m_pCheckBoxShowMiniToolBar, &QCheckBox::toggled,402 m_pCheckBoxMiniToolBarAlignment, &UIMachineSettingsInterface::setEnabled);403 372 } 404 373 … … 530 499 #ifndef VBOX_WS_MAC 531 500 /* Save whether mini-toolbar is enabled: */ 532 if (fSuccess && newInterfaceData.m_fShowMiniTool Bar != oldInterfaceData.m_fShowMiniToolBar)533 /* fSuccess = */ gEDataManager->setMiniToolbarEnabled(newInterfaceData.m_fShowMiniTool Bar, m_machine.GetId());501 if (fSuccess && newInterfaceData.m_fShowMiniToolbar != oldInterfaceData.m_fShowMiniToolbar) 502 /* fSuccess = */ gEDataManager->setMiniToolbarEnabled(newInterfaceData.m_fShowMiniToolbar, m_machine.GetId()); 534 503 /* Save whether mini-toolbar should be location at top of screen: */ 535 if (fSuccess && newInterfaceData.m_fMiniTool BarAtTop != oldInterfaceData.m_fMiniToolBarAtTop)536 /* fSuccess = */ gEDataManager->setMiniToolbarAlignment(newInterfaceData.m_fMiniTool BarAtTop ? Qt::AlignTop : Qt::AlignBottom, m_machine.GetId());504 if (fSuccess && newInterfaceData.m_fMiniToolbarAtTop != oldInterfaceData.m_fMiniToolbarAtTop) 505 /* fSuccess = */ gEDataManager->setMiniToolbarAlignment(newInterfaceData.m_fMiniToolbarAtTop ? Qt::AlignTop : Qt::AlignBottom, m_machine.GetId()); 537 506 #endif 538 507 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r94333 r94518 26 26 27 27 /* Forward declarations: */ 28 class QCheckBox;29 class QGridLayout;30 28 class QLabel; 31 29 class UIActionPool; 32 30 class UIMenuBarEditorWidget; 31 class UIMiniToolbarSettingsEditor; 33 32 class UIStatusBarEditorWidget; 34 33 class UIVisualStateEditor; … … 96 95 97 96 /** Holds the machine ID copy. */ 98 const QUuid 97 const QUuid m_uMachineId; 99 98 /** Holds the action-pool instance. */ 100 UIActionPool 99 UIActionPool *m_pActionPool; 101 100 102 101 /** Holds the page data cache instance. */ … … 105 104 /** @name Widgets 106 105 * @{ */ 107 /** Holds the main layout instance. */108 QGridLayout *m_pLayout;109 106 /** Holds the menu-bar editor instance. */ 110 UIMenuBarEditorWidget *m_pEditorMenuBar;107 UIMenuBarEditorWidget *m_pEditorMenuBar; 111 108 /** Holds the visual state editor instance. */ 112 UIVisualStateEditor *m_pEditorVisualState; 113 /** Holds the mini-toolbar label instance. */ 114 QLabel *m_pLabelMiniToolBar; 115 /** Holds the 'show mini-toolbar' check-box instance. */ 116 QCheckBox *m_pCheckBoxShowMiniToolBar; 117 /** Holds the 'mini-toolbar alignment' check-box instance. */ 118 QCheckBox *m_pCheckBoxMiniToolBarAlignment; 109 UIVisualStateEditor *m_pEditorVisualState; 110 /** Holds the mini-toolbar settings editor instance. */ 111 UIMiniToolbarSettingsEditor *m_pEditorMiniToolabSettings; 119 112 /** Holds the status-bar editor instance. */ 120 UIStatusBarEditorWidget *m_pEditorStatusBar;113 UIStatusBarEditorWidget *m_pEditorStatusBar; 121 114 /** @} */ 122 115 }; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuBarEditorWindow.cpp
r93990 r94518 658 658 void UIMenuBarEditorWidget::retranslateUi() 659 659 { 660 /* Translate widget itself: */ 661 setToolTip(tr("Allows to modify VM menu-bar contents.")); 662 660 663 /* Translate close-button if necessary: */ 661 664 if (!m_fStartedFromVMSettings && m_pButtonClose) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIStatusBarEditorWindow.cpp
r93990 r94518 485 485 void UIStatusBarEditorWidget::retranslateUi() 486 486 { 487 /* Translate widget itself: */ 488 setToolTip(tr("Allows to modify VM status-bar contents.")); 489 487 490 /* Translate close-button if necessary: */ 488 491 if (!m_fStartedFromVMSettings && m_pButtonClose)
Note:
See TracChangeset
for help on using the changeset viewer.