blob: ceaf349ff2e36085968ce6f148b25beba2f01e6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "idevicefwd.h"
#include <QList>
#include <QString>
#include <QWidget>
#include <coreplugin/dialogs/ioptionspage.h>
QT_BEGIN_NAMESPACE
class QComboBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QVBoxLayout;
QT_END_NAMESPACE
namespace ProjectExplorer {
class DeviceManager;
class DeviceManagerModel;
class IDeviceWidget;
namespace Internal {
namespace Ui { class DeviceSettingsWidget; }
class NameValidator;
class DeviceSettingsWidget final : public Core::IOptionsPageWidget
{
Q_OBJECT
public:
DeviceSettingsWidget();
~DeviceSettingsWidget() final;
private:
void apply() final { saveSettings(); }
void saveSettings();
void handleDeviceUpdated(Utils::Id id);
void currentDeviceChanged(int index);
void addDevice();
void removeDevice();
void deviceNameEditingFinished();
void setDefaultDevice();
void testDevice();
void handleProcessListRequested();
void initGui();
void displayCurrent();
void setDeviceInfoWidgetsEnabled(bool enable);
IDeviceConstPtr currentDevice() const;
int currentIndex() const;
void clearDetails();
QString parseTestOutput();
void fillInValues();
void updateDeviceFromUi();
Ui::DeviceSettingsWidget *m_ui;
DeviceManager * const m_deviceManager;
DeviceManagerModel * const m_deviceManagerModel;
NameValidator * const m_nameValidator;
QList<QPushButton *> m_additionalActionButtons;
IDeviceWidget *m_configWidget;
QLabel *m_configurationLabel;
QComboBox *m_configurationComboBox;
QGroupBox *m_generalGroupBox;
QLineEdit *m_nameLineEdit;
QLabel *m_osTypeValueLabel;
QLabel *m_autoDetectionLabel;
QLabel *m_deviceStateIconLabel;
QLabel *m_deviceStateTextLabel;
QGroupBox *m_osSpecificGroupBox;
QPushButton *m_addConfigButton;
QPushButton *m_removeConfigButton;
QPushButton *m_defaultDeviceButton;
QVBoxLayout *m_buttonsLayout;
};
} // namespace Internal
} // namespace ProjectExplorer
|