2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2022-04-06 10:15:29 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2022-09-14 16:20:02 +02:00
|
|
|
#include "dockerdevice.h"
|
|
|
|
|
|
2022-04-06 10:15:29 +02:00
|
|
|
#include "kitdetector.h"
|
|
|
|
|
|
2022-07-13 10:43:31 +02:00
|
|
|
#include <projectexplorer/devicesupport/idevice.h>
|
2022-04-06 10:15:29 +02:00
|
|
|
#include <projectexplorer/devicesupport/idevicewidget.h>
|
|
|
|
|
|
|
|
|
|
#include <utils/pathlisteditor.h>
|
|
|
|
|
|
2022-07-13 10:43:31 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QCheckBox;
|
|
|
|
|
class QLabel;
|
|
|
|
|
class QLineEdit;
|
|
|
|
|
class QToolButton;
|
|
|
|
|
QT_END_NAMESPACE
|
2022-04-06 10:15:29 +02:00
|
|
|
|
2022-07-13 10:43:31 +02:00
|
|
|
namespace Docker::Internal {
|
2022-04-06 10:15:29 +02:00
|
|
|
|
|
|
|
|
class DockerDeviceWidget final : public ProjectExplorer::IDeviceWidget
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit DockerDeviceWidget(const ProjectExplorer::IDevice::Ptr &device);
|
|
|
|
|
|
|
|
|
|
void updateDeviceFromUi() final {}
|
|
|
|
|
void updateDaemonStateTexts();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QLineEdit *m_repoLineEdit;
|
|
|
|
|
QLineEdit *m_tagLineEdit;
|
|
|
|
|
QLineEdit *m_idLineEdit;
|
|
|
|
|
QToolButton *m_daemonReset;
|
|
|
|
|
QLabel *m_daemonState;
|
|
|
|
|
QCheckBox *m_runAsOutsideUser;
|
2022-09-14 16:43:39 +02:00
|
|
|
QCheckBox *m_keepEntryPoint;
|
2022-04-06 10:15:29 +02:00
|
|
|
Utils::PathListEditor *m_pathsListEdit;
|
|
|
|
|
KitDetector m_kitItemDetector;
|
2022-09-14 16:20:02 +02:00
|
|
|
|
|
|
|
|
DockerDeviceData m_data;
|
2022-04-06 10:15:29 +02:00
|
|
|
};
|
|
|
|
|
|
2022-07-13 10:43:31 +02:00
|
|
|
} // Docker::Internal
|