umbrello: tools/shared.h Source File

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

shared.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2014-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 * *
10 * @author Ralf Habacker <ralf.habacker@freenet.de> *
11 * *
12 ***************************************************************************/
13
14 #ifndef SHARED_H
15 #define SHARED_H
16
17 #include <QString>
18 #include <QStringList>
19 #include <QMap>
20
21 QStringList XMILanguagesAttributes();
22
23 class POEntry {
24 public:
25 QStringList tagNames;
26 QString value;
27 QList<int> lineNumbers;
28 };
29
30 typedef QMap<QString, POEntry> POMap;
31
32
33 bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result);
34
35 QString toGetTextString(const QString &message);
36
37 typedef QMap<QString,QString> TranslationMap;
38
39 bool fetchPoFile(const QString &fileName, TranslationMap &map);
40
41 bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations);
42
43 #endif
POEntry
Definition: shared.h:23
POEntry::lineNumbers
QList< int > lineNumbers
Definition: shared.h:27
POEntry::tagNames
QStringList tagNames
Definition: shared.h:25
POEntry::value
QString value
Definition: shared.h:26
fetchPoFile
bool fetchPoFile(const QString &fileName, TranslationMap &map)
Definition: shared.cpp:170
extractAttributesFromXMI
bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result)
Definition: shared.cpp:59
POMap
QMap< QString, POEntry > POMap
Definition: shared.h:30
TranslationMap
QMap< QString, QString > TranslationMap
Definition: shared.h:37
applyTranslationToXMIFile
bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations)
Definition: shared.cpp:215
toGetTextString
QString toGetTextString(const QString &message)
Definition: shared.cpp:126
XMILanguagesAttributes
QStringList XMILanguagesAttributes()
Definition: shared.cpp:42