aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/panelswidget.h
blob: ff9db47cd5cf41c6e110ce07ade4953877c0687e (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
// 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 "projectexplorer_export.h"
#include "projectsettingswidget.h"

#include <QWidget>

QT_BEGIN_NAMESPACE
class QVBoxLayout;
QT_END_NAMESPACE

namespace ProjectExplorer {

class PROJECTEXPLORER_EXPORT PanelsWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PanelsWidget(QWidget *parent = nullptr);
    PanelsWidget(const QString &displayName, QWidget *widget);
    PanelsWidget(const QString &displayName, ProjectSettingsWidget *widget);
    ~PanelsWidget() override;

    void addPropertiesPanel(const QString &displayName);
    void addGlobalSettingsProperties(ProjectSettingsWidget *widget);
    void addWidget(QWidget *widget);

    static int constexpr PanelVMargin = 14;

private:
    QVBoxLayout *m_layout;
    QWidget *m_root;
};

} // namespace ProjectExplorer