Changeset 95938 in vbox
- Timestamp:
- Jul 29, 2022 8:53:02 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152693
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r95937 r95938 909 909 src/settings/editors/UIDragAndDropEditor.h \ 910 910 src/settings/editors/UIExecutionCapEditor.h \ 911 src/settings/editors/UIGlobalProxyFeaturesEditor.h \912 911 src/settings/editors/UIGraphicsControllerEditor.h \ 913 912 src/settings/editors/UIHostComboEditor.h \ … … 927 926 src/settings/editors/UIPointingHIDEditor.h \ 928 927 src/settings/editors/UIProcessorFeaturesEditor.h \ 928 src/settings/editors/UIProxyFeaturesEditor.h \ 929 929 src/settings/editors/UIRecordingSettingsEditor.h \ 930 930 src/settings/editors/UIScaleFactorEditor.h \ … … 1491 1491 src/settings/editors/UIDragAndDropEditor.cpp \ 1492 1492 src/settings/editors/UIExecutionCapEditor.cpp \ 1493 src/settings/editors/UIGlobalProxyFeaturesEditor.cpp \1494 1493 src/settings/editors/UIGraphicsControllerEditor.cpp \ 1495 1494 src/settings/editors/UIHostComboEditor.cpp \ … … 1509 1508 src/settings/editors/UIPointingHIDEditor.cpp \ 1510 1509 src/settings/editors/UIProcessorFeaturesEditor.cpp \ 1510 src/settings/editors/UIProxyFeaturesEditor.cpp \ 1511 1511 src/settings/editors/UIRecordingSettingsEditor.cpp \ 1512 1512 src/settings/editors/UIScaleFactorEditor.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.cpp
r95937 r95938 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI GlobalProxyFeaturesEditor class implementation.3 * VBox Qt GUI - UIProxyFeaturesEditor class implementation. 4 4 */ 5 5 … … 25 25 /* GUI includes: */ 26 26 #include "QILineEdit.h" 27 #include "UI GlobalProxyFeaturesEditor.h"28 29 30 UI GlobalProxyFeaturesEditor::UIGlobalProxyFeaturesEditor(QWidget *pParent /* = 0 */)27 #include "UIProxyFeaturesEditor.h" 28 29 30 UIProxyFeaturesEditor::UIProxyFeaturesEditor(QWidget *pParent /* = 0 */) 31 31 : QIWithRetranslateUI<QWidget>(pParent) 32 32 , m_enmProxyMode(KProxyMode_Max) … … 42 42 } 43 43 44 void UI GlobalProxyFeaturesEditor::setProxyMode(KProxyMode enmMode)44 void UIProxyFeaturesEditor::setProxyMode(KProxyMode enmMode) 45 45 { 46 46 /* Update cached value and … … 72 72 } 73 73 74 KProxyMode UI GlobalProxyFeaturesEditor::proxyMode() const74 KProxyMode UIProxyFeaturesEditor::proxyMode() const 75 75 { 76 76 return m_pRadioButtonProxyEnabled && m_pRadioButtonProxyEnabled->isChecked() … … 83 83 } 84 84 85 void UI GlobalProxyFeaturesEditor::setProxyHost(const QString &strHost)85 void UIProxyFeaturesEditor::setProxyHost(const QString &strHost) 86 86 { 87 87 /* Update cached value and … … 95 95 } 96 96 97 QString UI GlobalProxyFeaturesEditor::proxyHost() const97 QString UIProxyFeaturesEditor::proxyHost() const 98 98 { 99 99 return m_pEditorHost ? m_pEditorHost->text() : m_strProxyHost; 100 100 } 101 101 102 void UI GlobalProxyFeaturesEditor::retranslateUi()102 void UIProxyFeaturesEditor::retranslateUi() 103 103 { 104 104 /* Translate proxy mode editor: */ … … 134 134 } 135 135 136 void UI GlobalProxyFeaturesEditor::sltHandleProxyModeChanged()136 void UIProxyFeaturesEditor::sltHandleProxyModeChanged() 137 137 { 138 138 /* Update widgets availability: */ … … 143 143 } 144 144 145 void UI GlobalProxyFeaturesEditor::prepare()145 void UIProxyFeaturesEditor::prepare() 146 146 { 147 147 /* Prepare main layout: */ … … 218 218 /* Prepare connections: */ 219 219 connect(m_pButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked), 220 this, &UI GlobalProxyFeaturesEditor::sltHandleProxyModeChanged);220 this, &UIProxyFeaturesEditor::sltHandleProxyModeChanged); 221 221 connect(m_pEditorHost, &QILineEdit::textEdited, 222 this, &UI GlobalProxyFeaturesEditor::sigProxyHostChanged);222 this, &UIProxyFeaturesEditor::sigProxyHostChanged); 223 223 224 224 /* Apply language settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.h
r95937 r95938 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UI GlobalProxyFeaturesEditor class declaration.3 * VBox Qt GUI - UIProxyFeaturesEditor class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_settings_editors_UI GlobalProxyFeaturesEditor_h19 #define FEQT_INCLUDED_SRC_settings_editors_UI GlobalProxyFeaturesEditor_h18 #ifndef FEQT_INCLUDED_SRC_settings_editors_UIProxyFeaturesEditor_h 19 #define FEQT_INCLUDED_SRC_settings_editors_UIProxyFeaturesEditor_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 35 35 36 36 /** QWidget subclass used as global proxy features editor. */ 37 class SHARED_LIBRARY_STUFF UI GlobalProxyFeaturesEditor : public QIWithRetranslateUI<QWidget>37 class SHARED_LIBRARY_STUFF UIProxyFeaturesEditor : public QIWithRetranslateUI<QWidget> 38 38 { 39 39 Q_OBJECT; … … 49 49 50 50 /** Constructs editor passing @a pParent to the base-class. */ 51 UI GlobalProxyFeaturesEditor(QWidget *pParent = 0);51 UIProxyFeaturesEditor(QWidget *pParent = 0); 52 52 53 53 /** Defines proxy @a enmMode. */ … … 103 103 }; 104 104 105 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UI GlobalProxyFeaturesEditor_h */105 #endif /* !FEQT_INCLUDED_SRC_settings_editors_UIProxyFeaturesEditor_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
r94666 r95938 20 20 21 21 /* GUI includes: */ 22 #include "UIGlobalProxyFeaturesEditor.h"23 22 #include "UIGlobalSettingsProxy.h" 24 23 #include "UIErrorString.h" 25 24 #include "UIExtraDataManager.h" 25 #include "UIProxyFeaturesEditor.h" 26 26 27 27 /* COM includes: */ … … 104 104 /* Load old data from cache: */ 105 105 const UIDataSettingsGlobalProxy &oldData = m_pCache->base(); 106 if (m_pEditor GlobalProxyFeatures)107 { 108 m_pEditor GlobalProxyFeatures->setProxyMode(oldData.m_enmProxyMode);109 m_pEditor GlobalProxyFeatures->setProxyHost(oldData.m_strProxyHost);106 if (m_pEditorProxyFeatures) 107 { 108 m_pEditorProxyFeatures->setProxyMode(oldData.m_enmProxyMode); 109 m_pEditorProxyFeatures->setProxyHost(oldData.m_strProxyHost); 110 110 } 111 111 … … 124 124 125 125 /* Cache new data: */ 126 if (m_pEditor GlobalProxyFeatures)127 { 128 newData.m_enmProxyMode = m_pEditor GlobalProxyFeatures->proxyMode();129 newData.m_strProxyHost = m_pEditor GlobalProxyFeatures->proxyHost();126 if (m_pEditorProxyFeatures) 127 { 128 newData.m_enmProxyMode = m_pEditorProxyFeatures->proxyMode(); 129 newData.m_strProxyHost = m_pEditorProxyFeatures->proxyHost(); 130 130 } 131 131 m_pCache->cacheCurrentData(newData); … … 147 147 { 148 148 /* Pass if proxy is disabled: */ 149 if (m_pEditor GlobalProxyFeatures->proxyMode() != KProxyMode_Manual)149 if (m_pEditorProxyFeatures->proxyMode() != KProxyMode_Manual) 150 150 return true; 151 151 … … 157 157 158 158 /* Check for URL presence: */ 159 if (m_pEditor GlobalProxyFeatures->proxyHost().trimmed().isEmpty())159 if (m_pEditorProxyFeatures->proxyHost().trimmed().isEmpty()) 160 160 { 161 161 message.second << tr("No proxy URL is currently specified."); … … 166 166 167 167 /* Check for URL validness: */ 168 if (!QUrl(m_pEditor GlobalProxyFeatures->proxyHost().trimmed()).isValid())168 if (!QUrl(m_pEditorProxyFeatures->proxyHost().trimmed()).isValid()) 169 169 { 170 170 message.second << tr("Invalid proxy URL is currently specified."); … … 175 175 176 176 /* Check for password presence: */ 177 if (!QUrl(m_pEditor GlobalProxyFeatures->proxyHost().trimmed()).password().isEmpty())177 if (!QUrl(m_pEditorProxyFeatures->proxyHost().trimmed()).password().isEmpty()) 178 178 { 179 179 message.second << tr("You have provided a proxy password. " … … 216 216 if (pLayout) 217 217 { 218 /* Prepare ' globalproxy features' editor: */219 m_pEditor GlobalProxyFeatures = new UIGlobalProxyFeaturesEditor(this);220 if (m_pEditor GlobalProxyFeatures)221 pLayout->addWidget(m_pEditor GlobalProxyFeatures);218 /* Prepare 'proxy features' editor: */ 219 m_pEditorProxyFeatures = new UIProxyFeaturesEditor(this); 220 if (m_pEditorProxyFeatures) 221 pLayout->addWidget(m_pEditorProxyFeatures); 222 222 223 223 /* Add stretch to the end: */ … … 228 228 void UIGlobalSettingsProxy::prepareConnections() 229 229 { 230 connect(m_pEditor GlobalProxyFeatures, &UIGlobalProxyFeaturesEditor::sigProxyModeChanged,230 connect(m_pEditorProxyFeatures, &UIProxyFeaturesEditor::sigProxyModeChanged, 231 231 this, &UIGlobalSettingsProxy::revalidate); 232 connect(m_pEditor GlobalProxyFeatures, &UIGlobalProxyFeaturesEditor::sigProxyHostChanged,232 connect(m_pEditorProxyFeatures, &UIProxyFeaturesEditor::sigProxyHostChanged, 233 233 this, &UIGlobalSettingsProxy::revalidate); 234 234 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.h
r95390 r95938 27 27 28 28 /* Forward declarations: */ 29 class UI GlobalProxyFeaturesEditor;29 class UIProxyFeaturesEditor; 30 30 struct UIDataSettingsGlobalProxy; 31 31 typedef UISettingsCache<UIDataSettingsGlobalProxy> UISettingsCacheGlobalProxy; … … 84 84 /** @name Widgets 85 85 * @{ */ 86 /** Holds the globalproxy features editor instance. */87 UI GlobalProxyFeaturesEditor *m_pEditorGlobalProxyFeatures;86 /** Holds the proxy features editor instance. */ 87 UIProxyFeaturesEditor *m_pEditorProxyFeatures; 88 88 /** @} */ 89 89 };
Note:
See TracChangeset
for help on using the changeset viewer.