aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/extpropertiesmview.h
blob: 02659aa6c277622e22c120bc019e6e6743941264 (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
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "qmt/model_widgets_ui/propertiesviewmview.h"

namespace qmt { class ProjectController; }

namespace Utils {
class FilePath;
class PathChooser;
} // Utils

namespace ModelEditor {
namespace Internal {

class ExtPropertiesMView : public qmt::PropertiesView::MView
{
    Q_OBJECT

public:
    ExtPropertiesMView(qmt::PropertiesView *view);
    ~ExtPropertiesMView();

    void setProjectController(qmt::ProjectController *projectController);

    void visitMPackage(const qmt::MPackage *package) override;

private:
    void onConfigPathChanged(const Utils::FilePath &path);

private:
    qmt::ProjectController *m_projectController = nullptr;
    Utils::PathChooser *m_configPath = nullptr;
    QLabel *m_configPathInfo = nullptr;
};

} // namespace Interal
} // namespace ModelEditor