VirtualBox

Changeset 60692 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 25, 2016 4:39:56 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106865
Message:

FE/Qt: ​​​​​​​​​bugref:6769: Rework/cleanup for VM properties editor (part 01): Doxy.

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

Legend:

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

    r57340 r60692  
    55
    66/*
    7  * Copyright (C) 2008-2012 Oracle Corporation
     7 * Copyright (C) 2008-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2020#else  /* !VBOX_WITH_PRECOMPILED_HEADERS */
    2121
    22 /* Global includes: */
     22/* Qt includes: */
    2323# include <QGridLayout>
    2424# include <QVBoxLayout>
     
    2727# include <QComboBox>
    2828
    29 /* Local includes: */
     29/* GUI includes: */
    3030# include "UINameAndSystemEditor.h"
    3131
    3232#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3333
    34 
     34/** Defines the VM OS type ID. */
    3535enum
    3636{
    3737    TypeID = Qt::UserRole + 1
    3838};
     39
    3940
    4041UINameAndSystemEditor::UINameAndSystemEditor(QWidget *pParent)
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h

    r55401 r60692  
    55
    66/*
    7  * Copyright (C) 2008-2012 Oracle Corporation
     7 * Copyright (C) 2008-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 */
    1717
    18 #ifndef __UINameAndSystemEditor_h__
    19 #define __UINameAndSystemEditor_h__
     18#ifndef ___UINameAndSystemEditor_h___
     19#define ___UINameAndSystemEditor_h___
    2020
    21 /* Global includes: */
     21/* Qt includes: */
    2222#include <QWidget>
    2323
    24 /* Local includes: */
     24/* GUI includes: */
    2525#include "QIWithRetranslateUI.h"
    2626#include "VBoxGlobal.h"
     
    3131class QComboBox;
    3232
    33 /* QWidget reimplementation providing editor for basic VM parameters: */
     33/** QWidget extension providing complex editor for basic VM parameters. */
    3434class UINameAndSystemEditor : public QIWithRetranslateUI<QWidget>
    3535{
     
    4040signals:
    4141
    42     /* Notifies listeners about VM name change: */
     42    /** Notifies listeners about VM name change. */
    4343    void sigNameChanged(const QString &strNewName);
    4444
    45     /* Notifies listeners about VM operating system type change: */
     45    /** Notifies listeners about VM OS type change. */
    4646    void sigOsTypeChanged();
    4747
    4848public:
    4949
    50     /* Constructor: */
     50    /** Constructs VM parameters editor on the basis of passed @a pParent. */
    5151    UINameAndSystemEditor(QWidget *pParent);
    5252
    53     /* Name stuff: */
     53    /** Returns the VM name editor. */
    5454    QLineEdit* nameEditor() const;
     55
     56    /** Defines the VM @a strName. */
    5557    void setName(const QString &strName);
     58    /** Returns the VM name. */
    5659    QString name() const;
    5760
    58     /* Operating system type stuff: */
     61    /** Defines the VM OS @a type. */
    5962    void setType(const CGuestOSType &type);
     63    /** Returns the VM OS type. */
    6064    CGuestOSType type() const;
    6165
    6266protected:
    6367
    64     /* Translation stuff: */
    65     void retranslateUi();
     68    /** Handles translation event. */
     69    virtual void retranslateUi() /* override */;
    6670
    6771private slots:
    6872
    69     /* Handles OS family change: */
     73    /** Handles VM OS family @a iIndex change. */
    7074    void sltFamilyChanged(int iIndex);
    7175
    72     /* Handles OS type change: */
     76    /** Handles VM OS type @a iIndex change. */
    7377    void sltTypeChanged(int iIndex);
    7478
    7579private:
    7680
    77     /* Widgets: */
     81    /** Holds the VM name label instance. */
    7882    QLabel *m_pNameLabel;
     83    /** Holds the VM OS family label instance. */
    7984    QLabel *m_pFamilyLabel;
     85    /** Holds the VM OS type label instance. */
    8086    QLabel *m_pTypeLabel;
     87    /** Holds the VM OS type icon instance. */
    8188    QLabel *m_pTypeIcon;
     89    /** Holds the VM name editor instance. */
    8290    QLineEdit *m_pNameEditor;
     91    /** Holds the VM OS family combo instance. */
    8392    QComboBox *m_pFamilyCombo;
     93    /** Holds the VM OS type combo instance. */
    8494    QComboBox *m_pTypeCombo;
    8595
    86     /* Variables: */
     96    /** Holds the VM OS type. */
    8797    CGuestOSType m_type;
     98    /** Holds the currently chosen OS type IDs on per-family basis. */
    8899    QMap<QString, QString> m_currentIds;
     100    /** Holds whether host supports hardware virtualization. */
    89101    bool m_fSupportsHWVirtEx;
     102    /** Holds whether host supports long mode. */
    90103    bool m_fSupportsLongMode;
    91104};
    92105
    93 #endif /* __UINameAndSystemEditor_h__ */
     106#endif /* !___UINameAndSystemEditor_h___ */
    94107
Note: See TracChangeset for help on using the changeset viewer.

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