VirtualBox

Changeset 64261 in vbox


Ignore:
Timestamp:
Oct 13, 2016 4:00:38 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111273
Message:

FE/Qt: bugref:6899: Accessibility support (step 89): Preferences: Input page: Cleanup/rework: Doxy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp

    r64259 r64261  
    5353
    5454
    55 /* Global settings / Input page / Cache / Shortcut cache item: */
     55/** Global settings / Input page / Cache / Shortcut cache item. */
    5656struct UIShortcutCacheItem
    5757{
     58    /** Constructs table row on the basis of passed arguments.
     59      * @param  strKey              Brings the unique key inentifying held sequence.
     60      * @param  strDescription      Brings the deescription for the held sequence.
     61      * @param  strCurrentSequence  Brings the current held sequence.
     62      * @param  strDefaultSequence  Brings the default held sequence. */
    5863    UIShortcutCacheItem(const QString &strKey,
    5964                        const QString &strDescription,
     
    6671    {}
    6772
     73    /** Constructs table row on the basis of @a other one. */
    6874    UIShortcutCacheItem(const UIShortcutCacheItem &other)
    6975        : key(other.key)
     
    7379    {}
    7480
    75     UIShortcutCacheItem& operator=(const UIShortcutCacheItem &other)
    76     {
     81    /** Copies a table row from @a other one. */
     82    UIShortcutCacheItem &operator=(const UIShortcutCacheItem &other)
     83    {
     84        /* Reassign variables: */
    7785        key = other.key;
    7886        description = other.description;
    7987        currentSequence = other.currentSequence;
    8088        defaultSequence = other.defaultSequence;
     89
     90        /* Return this: */
    8191        return *this;
    8292    }
    8393
     94    /** Returns whether this row equals to @a other. */
    8495    bool operator==(const UIShortcutCacheItem &other) const
    8596    {
     97        /* Compare by the key only: */
    8698        return key == other.key;
    8799    }
    88100
     101    /** Holds the key. */
    89102    QString key;
     103    /** Holds the description. */
    90104    QString description;
     105    /** Holds the current sequence. */
    91106    QString currentSequence;
     107    /** Holds the default sequence. */
    92108    QString defaultSequence;
    93109};
    94110
    95 /* Global settings / Input page / Cache / Shortcut cache: */
     111
     112/** Global settings / Input page / Cache / Shortcut cache. */
    96113typedef QList<UIShortcutCacheItem> UIShortcutCache;
    97114
    98 /* Global settings / Input page / Cache: */
     115
     116/** Global settings / Input page / Cache. */
    99117class UISettingsCacheGlobalInput : public QObject
    100118{
     
    103121public:
    104122
     123    /** Constructs cache passing @a pParent to the base-class. */
    105124    UISettingsCacheGlobalInput(QObject *pParent)
    106125        : QObject(pParent)
     
    108127    {}
    109128
     129    /** Holds the shortcut cache. */
    110130    UIShortcutCache m_shortcuts;
     131
     132    /** Holds whether the keyboard auto-capture is enabled. */
    111133    bool m_fAutoCapture;
    112134};
    113135
    114136
    115 /* Global settings / Input page / Cache / Shortcut cache item sort functor: */
     137/** Global settings / Input page / Cache / Shortcut cache item sort functor. */
    116138class UIShortcutCacheItemFunctor
    117139{
    118140public:
    119141
     142    /** Constructs cache sorting functor.
     143      * @param  iColumn  Brings the column sorting should be done according to.
     144      * @param  m_order  Brings the sorting order to be applied. */
    120145    UIShortcutCacheItemFunctor(int iColumn, Qt::SortOrder order)
    121146        : m_iColumn(iColumn)
    122147        , m_order(order)
    123     {
    124     }
    125 
     148    {}
     149
     150    /** Returns whether the @a item1 is more/less than the @a item2.
     151      * @note  Order depends on the one set through constructor, stored in m_order. */
    126152    bool operator()(const UIShortcutCacheItem &item1, const UIShortcutCacheItem &item2)
    127153    {
     
    139165private:
    140166
     167    /** Holds the column sorting should be done according to. */
    141168    int m_iColumn;
     169    /** Holds the sorting order to be applied. */
    142170    Qt::SortOrder m_order;
    143171};
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