umbrello: tools/shared.h Source File

umbrello 2.38.5 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

shared.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2014-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 SPDX-FileCopyrightText: 2014-2020 Ralf Habacker <ralf.habacker@freenet.de>
5*/
6
7#ifndef SHARED_H
8#define SHARED_H
9
10#include <QString>
11#include <QStringList>
12#include <QMap>
13
14QStringList XMILanguagesAttributes();
15
16 class POEntry {
17public:
18 QStringList tagNames;
19 QString value;
20 QList<int> lineNumbers;
21};
22
23 typedef QMap<QString, POEntry> POMap;
24
25
26bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result);
27
28QString toGetTextString(const QString &message);
29
30 typedef QMap<QString,QString> TranslationMap;
31
32bool fetchPoFile(const QString &fileName, TranslationMap &map);
33
34bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations);
35
36#endif
POEntry
Definition shared.h:16
POEntry::lineNumbers
QList< int > lineNumbers
Definition shared.h:20
POEntry::tagNames
QStringList tagNames
Definition shared.h:18
POEntry::value
QString value
Definition shared.h:19
fetchPoFile
bool fetchPoFile(const QString &fileName, TranslationMap &map)
Definition shared.cpp:163
extractAttributesFromXMI
bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result)
Definition shared.cpp:52
POMap
QMap< QString, POEntry > POMap
Definition shared.h:23
TranslationMap
QMap< QString, QString > TranslationMap
Definition shared.h:30
applyTranslationToXMIFile
bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations)
Definition shared.cpp:208
toGetTextString
QString toGetTextString(const QString &message)
Definition shared.cpp:119
XMILanguagesAttributes
QStringList XMILanguagesAttributes()
Definition shared.cpp:35