Changeset 60692 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 25, 2016 4:39:56 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106865
- 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 5 5 6 6 /* 7 * Copyright (C) 2008-201 2Oracle Corporation7 * Copyright (C) 2008-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 21 22 /* Globalincludes: */22 /* Qt includes: */ 23 23 # include <QGridLayout> 24 24 # include <QVBoxLayout> … … 27 27 # include <QComboBox> 28 28 29 /* Localincludes: */29 /* GUI includes: */ 30 30 # include "UINameAndSystemEditor.h" 31 31 32 32 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 33 33 34 34 /** Defines the VM OS type ID. */ 35 35 enum 36 36 { 37 37 TypeID = Qt::UserRole + 1 38 38 }; 39 39 40 40 41 UINameAndSystemEditor::UINameAndSystemEditor(QWidget *pParent) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h
r55401 r60692 5 5 6 6 /* 7 * Copyright (C) 2008-201 2Oracle Corporation7 * Copyright (C) 2008-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UINameAndSystemEditor_h__19 #define __ UINameAndSystemEditor_h__18 #ifndef ___UINameAndSystemEditor_h___ 19 #define ___UINameAndSystemEditor_h___ 20 20 21 /* Globalincludes: */21 /* Qt includes: */ 22 22 #include <QWidget> 23 23 24 /* Localincludes: */24 /* GUI includes: */ 25 25 #include "QIWithRetranslateUI.h" 26 26 #include "VBoxGlobal.h" … … 31 31 class QComboBox; 32 32 33 /* QWidget reimplementation providing editor for basic VM parameters:*/33 /** QWidget extension providing complex editor for basic VM parameters. */ 34 34 class UINameAndSystemEditor : public QIWithRetranslateUI<QWidget> 35 35 { … … 40 40 signals: 41 41 42 /* Notifies listeners about VM name change:*/42 /** Notifies listeners about VM name change. */ 43 43 void sigNameChanged(const QString &strNewName); 44 44 45 /* Notifies listeners about VM operating system type change:*/45 /** Notifies listeners about VM OS type change. */ 46 46 void sigOsTypeChanged(); 47 47 48 48 public: 49 49 50 /* Constructor:*/50 /** Constructs VM parameters editor on the basis of passed @a pParent. */ 51 51 UINameAndSystemEditor(QWidget *pParent); 52 52 53 /* Name stuff:*/53 /** Returns the VM name editor. */ 54 54 QLineEdit* nameEditor() const; 55 56 /** Defines the VM @a strName. */ 55 57 void setName(const QString &strName); 58 /** Returns the VM name. */ 56 59 QString name() const; 57 60 58 /* Operating system type stuff:*/61 /** Defines the VM OS @a type. */ 59 62 void setType(const CGuestOSType &type); 63 /** Returns the VM OS type. */ 60 64 CGuestOSType type() const; 61 65 62 66 protected: 63 67 64 /* Translation stuff:*/65 v oid retranslateUi();68 /** Handles translation event. */ 69 virtual void retranslateUi() /* override */; 66 70 67 71 private slots: 68 72 69 /* Handles OS family change:*/73 /** Handles VM OS family @a iIndex change. */ 70 74 void sltFamilyChanged(int iIndex); 71 75 72 /* Handles OS type change:*/76 /** Handles VM OS type @a iIndex change. */ 73 77 void sltTypeChanged(int iIndex); 74 78 75 79 private: 76 80 77 /* Widgets:*/81 /** Holds the VM name label instance. */ 78 82 QLabel *m_pNameLabel; 83 /** Holds the VM OS family label instance. */ 79 84 QLabel *m_pFamilyLabel; 85 /** Holds the VM OS type label instance. */ 80 86 QLabel *m_pTypeLabel; 87 /** Holds the VM OS type icon instance. */ 81 88 QLabel *m_pTypeIcon; 89 /** Holds the VM name editor instance. */ 82 90 QLineEdit *m_pNameEditor; 91 /** Holds the VM OS family combo instance. */ 83 92 QComboBox *m_pFamilyCombo; 93 /** Holds the VM OS type combo instance. */ 84 94 QComboBox *m_pTypeCombo; 85 95 86 /* Variables:*/96 /** Holds the VM OS type. */ 87 97 CGuestOSType m_type; 98 /** Holds the currently chosen OS type IDs on per-family basis. */ 88 99 QMap<QString, QString> m_currentIds; 100 /** Holds whether host supports hardware virtualization. */ 89 101 bool m_fSupportsHWVirtEx; 102 /** Holds whether host supports long mode. */ 90 103 bool m_fSupportsLongMode; 91 104 }; 92 105 93 #endif /* __UINameAndSystemEditor_h__ */106 #endif /* !___UINameAndSystemEditor_h___ */ 94 107
Note:
See TracChangeset
for help on using the changeset viewer.