aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler/perfloaddialog.h
blob: c5f2e0eb73732a705948b58e2d934a626b6d0a52 (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
// Copyright (C) 2018 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 <QDialog>

QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE

namespace ProjectExplorer {
class Kit;
class KitChooser;
} // ProjectExplorer

namespace PerfProfiler {
namespace Internal {

class PerfLoadDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PerfLoadDialog(QWidget *parent = nullptr);
    ~PerfLoadDialog();

    QString traceFilePath() const;
    QString executableDirPath() const;
    ProjectExplorer::Kit *kit() const;

private:
    void on_browseTraceFileButton_pressed();
    void on_browseExecutableDirButton_pressed();

    void chooseDefaults();

    QLineEdit *m_traceFileLineEdit;
    QLineEdit *m_executableDirLineEdit;
    ProjectExplorer::KitChooser *m_kitChooser;
};

} // namespace Internal
} // namespace PerfProfiler