aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/plugin_interface/scxmlnamespace.h
blob: 80fbfe3baa8dca69f5e5c448b4946dd1cbcb61a6 (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
// 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 <QMap>
#include <QObject>

namespace ScxmlEditor {

namespace PluginInterface {

class ScxmlNamespace : public QObject
{
public:
    ScxmlNamespace(const QString &prefix, const QString &name, QObject *parent = nullptr);

    QString prefix() const;
    QString name() const;

    bool isTagVisible(const QString &tag) const;
    void setTagVisibility(const QString &tag, bool visible);

private:
    QString m_prefix, m_name;
    QMap<QString, bool> m_tagVisibility;
};

} // namespace PluginInterface
} // namespace ScxmlEditor