blob: 7d8af82f6ee4ee5534e768109af29e9cba2558b0 (
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
|
// 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 <utils/filepath.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 Utils::FilePath &path);
private:
void onStereotypeIconParsed(const StereotypeIcon &stereotypeIcon);
void onRelationParsed(const CustomRelation &customRelation);
void onToolbarParsed(const Toolbar &toolbar);
ConfigControllerPrivate *d;
};
} // namespace qmt
|