aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/abiwidget.h
blob: 67aa66770356b5e352f4005f20154fd8627d7647 (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
// 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 "projectexplorer_export.h"

#include "abi.h"

#include <QWidget>

#include <memory>

namespace ProjectExplorer {

namespace Internal { class AbiWidgetPrivate; }

// --------------------------------------------------------------------------
// AbiWidget:
// --------------------------------------------------------------------------

class PROJECTEXPLORER_EXPORT AbiWidget : public QWidget
{
    Q_OBJECT

public:
    AbiWidget(QWidget *parent = nullptr);
    ~AbiWidget() override;

    void setAbis(const ProjectExplorer::Abis &, const Abi &currentAbi);

    Abis supportedAbis() const;
    bool isCustomAbi() const;
    Abi currentAbi() const;

signals:
    void abiChanged();

private:
    void mainComboBoxChanged();
    void customOsComboBoxChanged();
    void customComboBoxesChanged();

    void setCustomAbiComboBoxes(const Abi &current);

    void emitAbiChanged(const Abi &current);

    const std::unique_ptr<Internal::AbiWidgetPrivate> d;
};

} // namespace ProjectExplorer