aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/config/configcontroller.h
blob: 28e6d65afcd3099c43a0a66ba0589588e80b9eb2 (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 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "qmt/infrastructure/qmt_global.h"

#include <QObject>

namespace qmt {

class CustomRelation;
class StereotypeController;
class StereotypeIcon;
class Toolbar;

class QMT_EXPORT ConfigController : public QObject
{
    class ConfigControllerPrivate;

public:
    explicit ConfigController(QObject *parent = nullptr);
    ~ConfigController() override;

    void setStereotypeController(StereotypeController *stereotypeController);

    void readStereotypeDefinitions(const QString &path);

private:
    void onStereotypeIconParsed(const StereotypeIcon &stereotypeIcon);
    void onRelationParsed(const CustomRelation &customRelation);
    void onToolbarParsed(const Toolbar &toolbar);

    ConfigControllerPrivate *d;
};

} // namespace qmt