- Timestamp:
- Jul 12, 2021 8:05:36 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r90152 r90153 650 650 src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h \ 651 651 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h \ 652 src/wizards/editors/UIHost NameDomainEditor.h \652 src/wizards/editors/UIHostnameDomainEditor.h \ 653 653 src/wizards/editors/UIUserNamePasswordEditor.h \ 654 654 src/wizards/newcloudvm/UIWizardNewCloudVM.h \ … … 1148 1148 src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp \ 1149 1149 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \ 1150 src/wizards/editors/UIHost NameDomainEditor.cpp \1150 src/wizards/editors/UIHostnameDomainEditor.cpp \ 1151 1151 src/wizards/editors/UIUserNamePasswordEditor.cpp \ 1152 1152 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainEditor.cpp
r90152 r90153 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIHost NameDomainEditor class implementation.3 * VBox Qt GUI - UIHostnameDomainEditor class implementation. 4 4 */ 5 5 … … 30 30 #include "UICommon.h" 31 31 #include "UIIconPool.h" 32 #include "UIHost NameDomainEditor.h"32 #include "UIHostnameDomainEditor.h" 33 33 #include "UIWizardNewVM.h" 34 34 35 35 36 36 37 UIHost NameDomainEditor::UIHostNameDomainEditor(QWidget *pParent /* = 0 */)37 UIHostnameDomainEditor::UIHostnameDomainEditor(QWidget *pParent /* = 0 */) 38 38 : QIWithRetranslateUI<QWidget>(pParent) 39 39 , m_pHostnameLineEdit(0) … … 45 45 } 46 46 47 QString UIHost NameDomainEditor::hostname() const47 QString UIHostnameDomainEditor::hostname() const 48 48 { 49 49 if (m_pHostnameLineEdit) … … 52 52 } 53 53 54 bool UIHost NameDomainEditor::isComplete() const54 bool UIHostnameDomainEditor::isComplete() const 55 55 { 56 56 return m_pHostnameLineEdit && m_pHostnameLineEdit->hasAcceptableInput() && … … 58 58 } 59 59 60 void UIHost NameDomainEditor::setHostname(const QString &strHostname)60 void UIHostnameDomainEditor::setHostname(const QString &strHostname) 61 61 { 62 62 if (m_pHostnameLineEdit) … … 64 64 } 65 65 66 QString UIHost NameDomainEditor::domain() const66 QString UIHostnameDomainEditor::domain() const 67 67 { 68 68 if (m_pDomainLineEdit) … … 71 71 } 72 72 73 void UIHost NameDomainEditor::setDomain(const QString &strDomain)73 void UIHostnameDomainEditor::setDomain(const QString &strDomain) 74 74 { 75 75 if (m_pDomainLineEdit) … … 77 77 } 78 78 79 QString UIHost NameDomainEditor::hostnameDomain() const79 QString UIHostnameDomainEditor::hostnameDomain() const 80 80 { 81 81 if (m_pHostnameLineEdit && m_pDomainLineEdit) … … 84 84 } 85 85 86 void UIHost NameDomainEditor::retranslateUi()86 void UIHostnameDomainEditor::retranslateUi() 87 87 { 88 88 QString strHostnameTooltip(tr("Type the hostname which will be used in attended install:")); … … 103 103 } 104 104 105 void UIHost NameDomainEditor::addLineEdit(int &iRow, QLabel *&pLabel, QILineEdit *&pLineEdit, QGridLayout *pLayout)105 void UIHostnameDomainEditor::addLineEdit(int &iRow, QLabel *&pLabel, QILineEdit *&pLineEdit, QGridLayout *pLayout) 106 106 { 107 107 AssertReturnVoid(pLayout); … … 129 129 } 130 130 131 void UIHost NameDomainEditor::prepare()131 void UIHostnameDomainEditor::prepare() 132 132 { 133 133 QGridLayout *pMainLayout = new QGridLayout; … … 143 143 144 144 connect(m_pHostnameLineEdit, &QILineEdit::textChanged, 145 this, &UIHost NameDomainEditor::sltHostnameChanged);145 this, &UIHostnameDomainEditor::sltHostnameChanged); 146 146 connect(m_pDomainLineEdit, &QILineEdit::textChanged, 147 this, &UIHost NameDomainEditor::sltDomainChanged);147 this, &UIHostnameDomainEditor::sltDomainChanged); 148 148 149 149 … … 151 151 } 152 152 153 void UIHost NameDomainEditor::sltHostnameChanged()153 void UIHostnameDomainEditor::sltHostnameChanged() 154 154 { 155 155 m_pHostnameLineEdit->mark(!m_pHostnameLineEdit->hasAcceptableInput(), … … 158 158 } 159 159 160 void UIHost NameDomainEditor::sltDomainChanged()160 void UIHostnameDomainEditor::sltDomainChanged() 161 161 { 162 162 m_pDomainLineEdit->mark(!m_pDomainLineEdit->hasAcceptableInput(), -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainEditor.h
r90152 r90153 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIHost NameDomainEditor class declaration.3 * VBox Qt GUI - UIHostnameDomainEditor class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_editors_UIHost NameDomainEditor_h19 #define FEQT_INCLUDED_SRC_wizards_editors_UIHost NameDomainEditor_h18 #ifndef FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomainEditor_h 19 #define FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomainEditor_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 35 35 class UIPasswordLineEdit; 36 36 37 class UIHost NameDomainEditor : public QIWithRetranslateUI<QWidget>37 class UIHostnameDomainEditor : public QIWithRetranslateUI<QWidget> 38 38 { 39 39 … … 46 46 public: 47 47 48 UIHost NameDomainEditor(QWidget *pParent = 0);48 UIHostnameDomainEditor(QWidget *pParent = 0); 49 49 50 50 QString hostname() const; … … 80 80 }; 81 81 82 #endif /* !FEQT_INCLUDED_SRC_wizards_editors_UIHost NameDomainEditor_h */82 #endif /* !FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomainEditor_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp
r90151 r90153 32 32 #include "UIIconPool.h" 33 33 #include "UIUserNamePasswordEditor.h" 34 #include "UIHost NameDomainEditor.h"34 #include "UIHostnameDomainEditor.h" 35 35 #include "UIWizardNewVMUnattendedPageBasic.h" 36 36 #include "UIWizardNewVM.h" … … 102 102 this, &UIWizardNewVMUnattendedPageBasic::sltInstallGACheckBoxToggle); 103 103 if (m_pHostnameDomainEditor) 104 connect(m_pHostnameDomainEditor, &UIHost NameDomainEditor::sigHostnameDomainChanged,104 connect(m_pHostnameDomainEditor, &UIHostnameDomainEditor::sigHostnameDomainChanged, 105 105 this, &UIWizardNewVMUnattendedPageBasic::sltHostnameDomainChanged); 106 106 if (m_pProductKeyLineEdit) … … 312 312 } 313 313 314 m_pHostnameDomainEditor = new UIHost NameDomainEditor;314 m_pHostnameDomainEditor = new UIHostnameDomainEditor; 315 315 if (m_pHostnameDomainEditor) 316 316 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.h
r90151 r90153 35 35 class UIFilePathSelector; 36 36 class UIUserNamePasswordEditor; 37 class UIHost NameDomainEditor;37 class UIHostnameDomainEditor; 38 38 struct UIUnattendedInstallData; 39 39 … … 94 94 QCheckBox *m_pStartHeadlessCheckBox; 95 95 UIUserNamePasswordEditor *m_pUserNamePasswordEditor; 96 UIHost NameDomainEditor *m_pHostnameDomainEditor;96 UIHostnameDomainEditor *m_pHostnameDomainEditor; 97 97 // QLineEdit *m_pHostnameLineEdit; 98 98 // QLabel *m_pHostnameLabel;
Note:
See TracChangeset
for help on using the changeset viewer.