Changeset 90155 in vbox
- Timestamp:
- Jul 12, 2021 8:18:16 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145658
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk ¶
r90153 r90155 650 650 src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h \ 651 651 src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h \ 652 src/wizards/editors/UIHostnameDomain Editor.h \652 src/wizards/editors/UIHostnameDomainNameEditor.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/UIHostnameDomain Editor.cpp \1150 src/wizards/editors/UIHostnameDomainNameEditor.cpp \ 1151 1151 src/wizards/editors/UIUserNamePasswordEditor.cpp \ 1152 1152 src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \ -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.cpp ¶
r90154 r90155 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIHostnameDomain Editor class implementation.3 * VBox Qt GUI - UIHostnameDomainNameEditor class implementation. 4 4 */ 5 5 … … 30 30 #include "UICommon.h" 31 31 #include "UIIconPool.h" 32 #include "UIHostnameDomain Editor.h"32 #include "UIHostnameDomainNameEditor.h" 33 33 #include "UIWizardNewVM.h" 34 34 35 35 36 36 37 UIHostnameDomain Editor::UIHostnameDomainEditor(QWidget *pParent /* = 0 */)37 UIHostnameDomainNameEditor::UIHostnameDomainNameEditor(QWidget *pParent /* = 0 */) 38 38 : QIWithRetranslateUI<QWidget>(pParent) 39 39 , m_pHostnameLineEdit(0) … … 45 45 } 46 46 47 QString UIHostnameDomain Editor::hostname() const47 QString UIHostnameDomainNameEditor::hostname() const 48 48 { 49 49 if (m_pHostnameLineEdit) … … 52 52 } 53 53 54 bool UIHostnameDomain Editor::isComplete() const54 bool UIHostnameDomainNameEditor::isComplete() const 55 55 { 56 56 return m_pHostnameLineEdit && m_pHostnameLineEdit->hasAcceptableInput() && … … 58 58 } 59 59 60 void UIHostnameDomain Editor::setHostname(const QString &strHostname)60 void UIHostnameDomainNameEditor::setHostname(const QString &strHostname) 61 61 { 62 62 if (m_pHostnameLineEdit) … … 64 64 } 65 65 66 QString UIHostnameDomain Editor::domain() const66 QString UIHostnameDomainNameEditor::domain() const 67 67 { 68 68 if (m_pDomainLineEdit) … … 71 71 } 72 72 73 void UIHostnameDomain Editor::setDomain(const QString &strDomain)73 void UIHostnameDomainNameEditor::setDomain(const QString &strDomain) 74 74 { 75 75 if (m_pDomainLineEdit) … … 77 77 } 78 78 79 QString UIHostnameDomain Editor::hostnameDomain() const79 QString UIHostnameDomainNameEditor::hostnameDomain() const 80 80 { 81 81 if (m_pHostnameLineEdit && m_pDomainLineEdit) … … 84 84 } 85 85 86 void UIHostnameDomain Editor::retranslateUi()86 void UIHostnameDomainNameEditor::retranslateUi() 87 87 { 88 88 QString strHostnameTooltip(tr("Type the hostname which will be used in attended install:")); … … 103 103 } 104 104 105 void UIHostnameDomain Editor::addLineEdit(int &iRow, QLabel *&pLabel, QILineEdit *&pLineEdit, QGridLayout *pLayout)105 void UIHostnameDomainNameEditor::addLineEdit(int &iRow, QLabel *&pLabel, QILineEdit *&pLineEdit, QGridLayout *pLayout) 106 106 { 107 107 AssertReturnVoid(pLayout); … … 129 129 } 130 130 131 void UIHostnameDomain Editor::prepare()131 void UIHostnameDomainNameEditor::prepare() 132 132 { 133 133 QGridLayout *pMainLayout = new QGridLayout; … … 143 143 144 144 connect(m_pHostnameLineEdit, &QILineEdit::textChanged, 145 this, &UIHostnameDomain Editor::sltHostnameChanged);145 this, &UIHostnameDomainNameEditor::sltHostnameChanged); 146 146 connect(m_pDomainLineEdit, &QILineEdit::textChanged, 147 this, &UIHostnameDomain Editor::sltDomainChanged);147 this, &UIHostnameDomainNameEditor::sltDomainChanged); 148 148 149 149 … … 151 151 } 152 152 153 void UIHostnameDomain Editor::sltHostnameChanged()153 void UIHostnameDomainNameEditor::sltHostnameChanged() 154 154 { 155 155 m_pHostnameLineEdit->mark(!m_pHostnameLineEdit->hasAcceptableInput(), … … 158 158 } 159 159 160 void UIHostnameDomain Editor::sltDomainChanged()160 void UIHostnameDomainNameEditor::sltDomainChanged() 161 161 { 162 162 m_pDomainLineEdit->mark(!m_pDomainLineEdit->hasAcceptableInput(), -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.h ¶
r90154 r90155 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIHostnameDomain Editor class declaration.3 * VBox Qt GUI - UIHostnameDomainNameEditor class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomain Editor_h19 #define FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomain Editor_h18 #ifndef FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomainNameEditor_h 19 #define FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomainNameEditor_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 35 35 class UIPasswordLineEdit; 36 36 37 class UIHostnameDomain Editor : public QIWithRetranslateUI<QWidget>37 class UIHostnameDomainNameEditor : public QIWithRetranslateUI<QWidget> 38 38 { 39 39 … … 46 46 public: 47 47 48 UIHostnameDomain Editor(QWidget *pParent = 0);48 UIHostnameDomainNameEditor(QWidget *pParent = 0); 49 49 50 50 QString hostname() const; … … 80 80 }; 81 81 82 #endif /* !FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomain Editor_h */82 #endif /* !FEQT_INCLUDED_SRC_wizards_editors_UIHostnameDomainNameEditor_h */ -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp ¶
r90154 r90155 32 32 #include "UIIconPool.h" 33 33 #include "UIUserNamePasswordEditor.h" 34 #include "UIHostnameDomain Editor.h"34 #include "UIHostnameDomainNameEditor.h" 35 35 #include "UIWizardNewVMUnattendedPageBasic.h" 36 36 #include "UIWizardNewVM.h" … … 62 62 , m_pStartHeadlessCheckBox(0) 63 63 , m_pUserNamePasswordEditor(0) 64 , m_pHostnameDomain Editor(0)64 , m_pHostnameDomainNameEditor(0) 65 65 , m_pGAISOPathLabel(0) 66 66 , m_pGAISOFilePathSelector(0) … … 101 101 connect(m_pGAInstallationISOContainer, &QGroupBox::toggled, 102 102 this, &UIWizardNewVMUnattendedPageBasic::sltInstallGACheckBoxToggle); 103 if (m_pHostnameDomain Editor)104 connect(m_pHostnameDomain Editor, &UIHostnameDomainEditor::sigHostnameDomainChanged,103 if (m_pHostnameDomainNameEditor) 104 connect(m_pHostnameDomainNameEditor, &UIHostnameDomainNameEditor::sigHostnameDomainChanged, 105 105 this, &UIWizardNewVMUnattendedPageBasic::sltHostnameDomainChanged); 106 106 if (m_pProductKeyLineEdit) … … 163 163 m_pUserNamePasswordEditor->blockSignals(false); 164 164 } 165 if (m_pHostnameDomain Editor)166 { 167 m_pHostnameDomain Editor->blockSignals(true);165 if (m_pHostnameDomainNameEditor) 166 { 167 m_pHostnameDomainNameEditor->blockSignals(true); 168 168 169 169 if (!m_userModifiedParameters.contains("HostnameDomain")) 170 170 { 171 m_pHostnameDomain Editor->setHostname(pWizard->machineBaseName());172 m_pHostnameDomain Editor->setDomain("myguest.virtualbox.org");171 m_pHostnameDomainNameEditor->setHostname(pWizard->machineBaseName()); 172 m_pHostnameDomainNameEditor->setDomain("myguest.virtualbox.org"); 173 173 /* Initialize unattended hostname here since we cannot get the efault value from CUnattended this early (unlike username etc): */ 174 newVMWizardPropertySet(HostnameDomain, m_pHostnameDomain Editor->hostnameDomain());174 newVMWizardPropertySet(HostnameDomain, m_pHostnameDomainNameEditor->hostnameDomain()); 175 175 } 176 176 177 m_pHostnameDomain Editor->blockSignals(false);177 m_pHostnameDomainNameEditor->blockSignals(false); 178 178 } 179 179 if (m_pGAInstallationISOContainer && !m_userModifiedParameters.contains("InstallGuestAdditions")) … … 201 201 if (m_pUserNamePasswordEditor && !m_pUserNamePasswordEditor->isComplete()) 202 202 return false; 203 if (m_pHostnameDomain Editor && !m_pHostnameDomainEditor->isComplete())203 if (m_pHostnameDomainNameEditor && !m_pHostnameDomainNameEditor->isComplete()) 204 204 return false; 205 205 return true; … … 312 312 } 313 313 314 m_pHostnameDomain Editor = new UIHostnameDomainEditor;315 if (m_pHostnameDomain Editor)316 pAdditionalOptionsContainerLayout->addWidget(m_pHostnameDomain Editor, 1, 0, 2, 3);314 m_pHostnameDomainNameEditor = new UIHostnameDomainNameEditor; 315 if (m_pHostnameDomainNameEditor) 316 pAdditionalOptionsContainerLayout->addWidget(m_pHostnameDomainNameEditor, 1, 0, 2, 3); 317 317 318 318 m_pStartHeadlessCheckBox = new QCheckBox; -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.h ¶
r90154 r90155 35 35 class UIFilePathSelector; 36 36 class UIUserNamePasswordEditor; 37 class UIHostnameDomain Editor;37 class UIHostnameDomainNameEditor; 38 38 struct UIUnattendedInstallData; 39 39 … … 94 94 QCheckBox *m_pStartHeadlessCheckBox; 95 95 UIUserNamePasswordEditor *m_pUserNamePasswordEditor; 96 UIHostnameDomain Editor *m_pHostnameDomainEditor;96 UIHostnameDomainNameEditor *m_pHostnameDomainNameEditor; 97 97 QLabel *m_pGAISOPathLabel; 98 98 UIFilePathSelector *m_pGAISOFilePathSelector;
Note:
See TracChangeset
for help on using the changeset viewer.