VirtualBox

Changeset 75370 in vbox


Ignore:
Timestamp:
Nov 9, 2018 4:41:58 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: UIScaleFactorEditor defition comments

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.cpp

    r75343 r75370  
    100100    }
    101101
    102     // Insert 0th element as the global scalar value
     102    /* Insert 0th element as the global scalar value: */
    103103    m_scaleFactors.append(m_dDefaultScaleFactor);
    104104    m_scaleFactors.append(scaleFactors);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.h

    r75340 r75370  
    1919#define ___UIScaleFactorEditor_h___
    2020
    21 /* GUI includes: */
     21/** GUI includes. */
    2222#include "QIWithRetranslateUI.h"
    2323#include "UILibraryDefs.h"
    2424
    2525
    26 /* Forward declarations: */
     26/** Forward declarations. */
    2727class QComboBox;
    2828class QGridLayout;
     
    3333
    3434/** QWidget reimplementation providing GUI with monitor scale factor editing functionality.
    35  *  It includes a combo box to select a monitor, a slider, and a spinbox to display/modify values.
    36  *  The first item in the combo box is used to change the scale factor of all monitors.*/
     35  *  It includes a combo box to select a monitor, a slider, and a spinbox to display/modify values.
     36  *  The first item in the combo box is used to change the scale factor of all monitors. */
    3737class SHARED_LIBRARY_STUFF UIScaleFactorEditor : public QIWithRetranslateUI<QWidget>
    3838{
     
    4242
    4343    UIScaleFactorEditor(QWidget *pParent);
     44    /** Configures the internal variables (m_pMonitorComboBox items , m_scaleFactors' size, etc)
     45      * wrt. @p iMonitorCount. */
    4446    void           setMonitorCount(int iMonitorCount);
    4547    void           setScaleFactors(const QList<double> &scaleFactors);
    46     /* Returns either a single global scale factor or a list of scale factor for each monitor. */
     48    /** Returns either a single global scale factor or a list of scale factor for each monitor. */
    4749    QList<double>  scaleFactors() const;
    4850    void           setDefaultScaleFactor(double dDefaultScaleFactor);
     
    5658private slots:
    5759
    58     void sltScaleSpinBoxValueChanged(int value);
    59     void sltScaleSliderValueChanged(int value);
    60     void sltMonitorComboIndexChanged(int index);
     60    /** @name Internal slots handling respective widget's value update.
     61      * @{ */
     62        void sltScaleSpinBoxValueChanged(int value);
     63        void sltScaleSliderValueChanged(int value);
     64        void sltMonitorComboIndexChanged(int index);
     65    /** @} */
    6166
    6267private:
     
    6570    void               setIsGlobalScaleFactor(bool bFlag);
    6671    void               setScaleFactor(int iMonitorIndex, int iScaleFactor);
    67     /* Blocks slider's signals before settting the value. */
     72    /** Blocks slider's signals before settting the slider value. */
    6873    void               setSliderValue(int iValue);
    69     /* Blocks slider's signals before settting the value. */
     74    /** Blocks spinbox's signals before settting the value. */
    7075    void               setSpinBoxValue(int iValue);
    71     /* Set the spinbox and slider to scale factor of currently selected monitor. */
     76    /** Set the spinbox and slider to scale factor of currently selected monitor. */
    7277    void               updateValuesAfterMonitorChange();
    73     QSpinBox          *m_pScaleSpinBox;
    74     QGridLayout       *m_pMainLayout;
    75     QComboBox         *m_pMonitorComboBox;
    76     QIAdvancedSlider  *m_pScaleSlider;
    77     QLabel            *m_pMaxScaleLabel;
    78     QLabel            *m_pMinScaleLabel;
    79     /* Stores the per-monitor scale factors. The 0th item is for all monitors (global). */
     78
     79    /** @name Member widgets.
     80      * @{ */
     81        QSpinBox          *m_pScaleSpinBox;
     82        QGridLayout       *m_pMainLayout;
     83        QComboBox         *m_pMonitorComboBox;
     84        QIAdvancedSlider  *m_pScaleSlider;
     85        QLabel            *m_pMaxScaleLabel;
     86        QLabel            *m_pMinScaleLabel;
     87    /** @} */
     88
     89    /** Stores the per-monitor scale factors. The 0th item is for all monitors (global). */
    8090    QList<double>      m_scaleFactors;
    8191    double             m_dDefaultScaleFactor;
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