VirtualBox

Changeset 94709 in vbox


Ignore:
Timestamp:
Apr 25, 2022 4:16:06 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt/Ds: bugref:6899: Machine settings: Small cleanup for Audio page; Renaming UIMachineAudioFeaturesEditor to UIAudioFeaturesEditor.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r94708 r94709  
    895895        src/settings/UISettingsSerializer.h \
    896896        src/settings/editors/UIAudioControllerEditor.h \
     897        src/settings/editors/UIAudioFeaturesEditor.h \
    897898        src/settings/editors/UIAudioHostDriverEditor.h \
    898899        src/settings/editors/UIAudioSettingsEditor.h \
     
    910911        src/settings/editors/UIHotKeyEditor.h \
    911912        src/settings/editors/UILanguageSettingsEditor.h \
    912         src/settings/editors/UIMachineAudioFeaturesEditor.h \
    913913        src/settings/editors/UIMachineDisplayScreenFeaturesEditor.h \
    914914        src/settings/editors/UIMachineDescriptionEditor.h \
     
    14641464        src/settings/UISettingsSerializer.cpp \
    14651465        src/settings/editors/UIAudioControllerEditor.cpp \
     1466        src/settings/editors/UIAudioFeaturesEditor.cpp \
    14661467        src/settings/editors/UIAudioHostDriverEditor.cpp \
    14671468        src/settings/editors/UIAudioSettingsEditor.cpp \
     
    14791480        src/settings/editors/UIHotKeyEditor.cpp \
    14801481        src/settings/editors/UILanguageSettingsEditor.cpp \
    1481         src/settings/editors/UIMachineAudioFeaturesEditor.cpp \
    14821482        src/settings/editors/UIMachineDisplayScreenFeaturesEditor.cpp \
    14831483        src/settings/editors/UIMachineDescriptionEditor.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.cpp

    r94708 r94709  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIMachineAudioFeaturesEditor class implementation.
     3 * VBox Qt GUI - UIAudioFeaturesEditor class implementation.
    44 */
    55
     
    2222
    2323/* GUI includes: */
    24 #include "UIMachineAudioFeaturesEditor.h"
     24#include "UIAudioFeaturesEditor.h"
    2525
    2626
    27 UIMachineAudioFeaturesEditor::UIMachineAudioFeaturesEditor(QWidget *pParent /* = 0 */)
     27UIAudioFeaturesEditor::UIAudioFeaturesEditor(QWidget *pParent /* = 0 */)
    2828    : QIWithRetranslateUI<QWidget>(pParent)
    2929    , m_fEnableOutput(false)
     
    3636}
    3737
    38 void UIMachineAudioFeaturesEditor::setEnableOutput(bool fOn)
     38void UIAudioFeaturesEditor::setEnableOutput(bool fOn)
    3939{
    4040    /* Update cached value and
     
    4848}
    4949
    50 bool UIMachineAudioFeaturesEditor::outputEnabled() const
     50bool UIAudioFeaturesEditor::outputEnabled() const
    5151{
    5252    return   m_pCheckBoxEnableOutput
     
    5555}
    5656
    57 void UIMachineAudioFeaturesEditor::setEnableInput(bool fOn)
     57void UIAudioFeaturesEditor::setEnableInput(bool fOn)
    5858{
    5959    /* Update cached value and
     
    6767}
    6868
    69 bool UIMachineAudioFeaturesEditor::inputEnabled() const
     69bool UIAudioFeaturesEditor::inputEnabled() const
    7070{
    7171    return   m_pCheckBoxEnableInput
     
    7474}
    7575
    76 int UIMachineAudioFeaturesEditor::minimumLabelHorizontalHint() const
     76int UIAudioFeaturesEditor::minimumLabelHorizontalHint() const
    7777{
    7878    return m_pLabel ? m_pLabel->minimumSizeHint().width() : 0;
    7979}
    8080
    81 void UIMachineAudioFeaturesEditor::setMinimumLayoutIndent(int iIndent)
     81void UIAudioFeaturesEditor::setMinimumLayoutIndent(int iIndent)
    8282{
    8383    if (m_pLayout)
     
    8585}
    8686
    87 void UIMachineAudioFeaturesEditor::retranslateUi()
     87void UIAudioFeaturesEditor::retranslateUi()
    8888{
    8989    if (m_pLabel)
     
    103103}
    104104
    105 void UIMachineAudioFeaturesEditor::prepare()
     105void UIAudioFeaturesEditor::prepare()
    106106{
    107107    /* Prepare main layout: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.h

    r94708 r94709  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIMachineAudioFeaturesEditor class declaration.
     3 * VBox Qt GUI - UIAudioFeaturesEditor class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_settings_editors_UIMachineAudioFeaturesEditor_h
    19 #define FEQT_INCLUDED_SRC_settings_editors_UIMachineAudioFeaturesEditor_h
     18#ifndef FEQT_INCLUDED_SRC_settings_editors_UIAudioFeaturesEditor_h
     19#define FEQT_INCLUDED_SRC_settings_editors_UIAudioFeaturesEditor_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    3030class QLabel;
    3131
    32 /** QWidget subclass used as machine audio features editor. */
    33 class SHARED_LIBRARY_STUFF UIMachineAudioFeaturesEditor : public QIWithRetranslateUI<QWidget>
     32/** QWidget subclass used as audio features editor. */
     33class SHARED_LIBRARY_STUFF UIAudioFeaturesEditor : public QIWithRetranslateUI<QWidget>
    3434{
    3535    Q_OBJECT;
     
    3838
    3939    /** Constructs editor passing @a pParent to the base-class. */
    40     UIMachineAudioFeaturesEditor(QWidget *pParent = 0);
     40    UIAudioFeaturesEditor(QWidget *pParent = 0);
    4141
    4242    /** Defines whether 'enable output' feature in @a fOn. */
     
    8686};
    8787
    88 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UIMachineAudioFeaturesEditor_h */
     88#endif /* !FEQT_INCLUDED_SRC_settings_editors_UIAudioFeaturesEditor_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.cpp

    r94708 r94709  
    2323/* GUI includes: */
    2424#include "UIAudioControllerEditor.h"
     25#include "UIAudioFeaturesEditor.h"
    2526#include "UIAudioHostDriverEditor.h"
    2627#include "UIAudioSettingsEditor.h"
    27 #include "UIMachineAudioFeaturesEditor.h"
    2828
    2929
     
    200200                    pLayoutAudioSettings->addWidget(m_pEditorAudioHostDriver);
    201201
    202                 /* Prepare host controller editor: */
     202                /* Prepare controller editor: */
    203203                m_pEditorAudioController = new UIAudioControllerEditor(m_pWidgetSettings);
    204204                if (m_pEditorAudioController)
    205205                    pLayoutAudioSettings->addWidget(m_pEditorAudioController);
    206206
    207                 /* Prepare extended features editor: */
    208                 m_pEditorAudioFeatures = new UIMachineAudioFeaturesEditor(m_pWidgetSettings);
     207                /* Prepare features editor: */
     208                m_pEditorAudioFeatures = new UIAudioFeaturesEditor(m_pWidgetSettings);
    209209                if (m_pEditorAudioFeatures)
    210210                    pLayoutAudioSettings->addWidget(m_pEditorAudioFeatures);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.h

    r94708 r94709  
    3636class QCheckBox;
    3737class UIAudioControllerEditor;
     38class UIAudioFeaturesEditor;
    3839class UIAudioHostDriverEditor;
    39 class UIMachineAudioFeaturesEditor;
    4040
    4141/** QWidget subclass used as a audio settings editor. */
     
    129129     * @{ */
    130130        /** Holds the feature check-box instance. */
    131         QCheckBox                    *m_pCheckboxFeature;
     131        QCheckBox               *m_pCheckboxFeature;
    132132        /** Holds the settings widget instance. */
    133         QWidget                      *m_pWidgetSettings;
    134         /** Holds the audio host driver editor instance. */
    135         UIAudioHostDriverEditor      *m_pEditorAudioHostDriver;
    136         /** Holds the audio host controller editor instance. */
    137         UIAudioControllerEditor      *m_pEditorAudioController;
    138         /** Holds the audio features editor instance. */
    139         UIMachineAudioFeaturesEditor *m_pEditorAudioFeatures;
     133        QWidget                 *m_pWidgetSettings;
     134        /** Holds the host driver editor instance. */
     135        UIAudioHostDriverEditor *m_pEditorAudioHostDriver;
     136        /** Holds the controller editor instance. */
     137        UIAudioControllerEditor *m_pEditorAudioController;
     138        /** Holds the features editor instance. */
     139        UIAudioFeaturesEditor  *m_pEditorAudioFeatures;
    140140    /** @} */
    141141};
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette