blob: 00d4bce79f5d8962ab27aad4e8449aae32cbd03f (
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
|
// 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 QPushButton;
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;
};
} // namespace Internal
} // namespace ProjectExplorer
|