aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/waitforstopdialog.h
blob: 3209c5942ff38d9318d5692f971f3c24b96a11f3 (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QList>
#include <QDialog>
#include <QElapsedTimer>

QT_BEGIN_NAMESPACE
class QLabel;
QT_END_NAMESPACE

namespace ProjectExplorer {

class RunControl;

namespace Internal {

class WaitForStopDialog : public QDialog
{
    Q_OBJECT
public:
    explicit WaitForStopDialog(const QList<RunControl *> &runControls);

    bool canceled();
private:
    void updateProgressText();
    void runControlFinished(const RunControl *runControl);

    QList<ProjectExplorer::RunControl *> m_runControls;
    QLabel *m_progressLabel;
    QElapsedTimer m_timer;
};

} // namespace Internal
} // namespace ProjectExplorer