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
Definition: shared.h:23
QList< int > lineNumbers
Definition: shared.h:27
QStringList tagNames
Definition: shared.h:25
QString value
Definition: shared.h:26
bool fetchPoFile(const QString &fileName, TranslationMap &map)
Definition: shared.cpp:170
bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result)
Definition: shared.cpp:59
QMap< QString, POEntry > POMap
Definition: shared.h:30
QMap< QString, QString > TranslationMap
Definition: shared.h:37
bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations)
Definition: shared.cpp:215
QString toGetTextString(const QString &message)
Definition: shared.cpp:126
QStringList XMILanguagesAttributes()
Definition: shared.cpp:42