umbrello: tools/shared.h Source File

umbrello 2.31.1 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
AnotherProject
Definition: namespaces-multiple.php:8
AnotherProject\Connection2
Definition: namespaces-multiple.php:10
HelloWorld
Definition: HelloWorld.java:5
Connection3
Definition: namespaces-multiple.php:15
Timetracker\Base\Models
Definition: namespaces-multiple.php:25
escape
QString escape(QString s)
Definition: shared.cpp:119
iTemplate
Definition: interfaces.php:4
AnotherProject\CONNECT_OK
const CONNECT_OK
Definition: namespaces-multiple.php:9
types.Types.instance_variable_tuples
instance_variable_tuples
Definition: types.py:43
HelloWorld.main
static void main(String[] args)
Definition: HelloWorld.java:6
apackage.Derived.protectedMethod
void protectedMethod()
Definition: Derived.java:7
iTemplate\getHtml
getHtml($template)
TranslationMap
QMap< QString, QString > TranslationMap
Definition: shared.h:37
XMILanguagesAttributes
QStringList XMILanguagesAttributes()
Definition: shared.cpp:42
XMILanguagesAttributes
QStringList XMILanguagesAttributes()
Definition: shared.cpp:42
apackage.Derived._static_int_member
static int _static_int_member
Definition: Derived.java:24
apackage.Type
Definition: Type.java:3
types.Types.instance_variable_object_type_params
instance_variable_object_type_params
Definition: types.py:47
apackage.UseGeneric.getA
Generic< Integer > getA()
Definition: UseGeneric.java:6
types.Types.instance_variable_int
instance_variable_int
Definition: types.py:33
types.Types.instance_variable_string
instance_variable_string
Definition: types.py:38
visibility.Visibility.__private
int __private
Definition: visibility.py:4
namespace_enum_literal::test
test
Definition: namespace-enum-literal.h:3
apackage.subdir.anotherpackage.ApackageSubdirAnotherPackageTest
Definition: ApackageSubdirAnotherPackageTest.java:3
AnotherProject\connect
connect()
Definition: namespaces-multiple.php:11
types.Types.instance_variable_negative_int
instance_variable_negative_int
Definition: types.py:34
Illuminate\Database\Eloquent\Model\TestModel
Definition: namespaces-multiple.php:23
extractAttributesFromXMI
bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result)
Definition: shared.cpp:59
method-parameters.TestMethodParameters.method_params_list
def method_params_list(self, a=[], b=[1, 2])
Definition: method-parameters.py:18
apackage.AbstractClass
Definition: AbstractClass.java:3
apackage.Base.getSubs
Type[] getSubs()
Definition: Base.java:7
POMap
QMap< QString, POEntry > POMap
Definition: shared.h:30
toGetTextString
QString toGetTextString(const QString &message)
Definition: shared.cpp:126
fromGetTextString
QString fromGetTextString(QString s)
Definition: shared.cpp:102
MyProject
Definition: namespaces-multiple.php:2
apackage.Base.method
Type method(Type type)
Definition: Base.java:5
types.Types.instance_variable_bool_true
instance_variable_bool_true
Definition: types.py:31
apackage.Generic.Generic
Generic()
Definition: Generic.java:5
POEntry::value
QString value
Definition: shared.h:26
UMLScene::contextMenuEvent
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: umlscene.cpp:2937
apackage.DerivedExtern
Definition: DerivedExtern.java:5
apackage.Derived.publicMethod
void publicMethod()
Definition: Derived.java:6
apackage.Base.methodWithVector
void methodWithVector(String[] args)
Definition: Base.java:6
apackage.UseGeneric._a
Generic< Integer > _a
Definition: UseGeneric.java:4
POEntry
Definition: shared.h:23
apackage.Derived.publicMethodWithParameterAndReturnType
int publicMethodWithParameterAndReturnType(int a)
Definition: Derived.java:16
MyProject\Connection1\test1
test1()
Definition: namespaces-multiple.php:4
UMLScene::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: umlscene.cpp:2971
apackage.Generic.isEmpty
boolean isEmpty()
Definition: Generic.java:9
types.ReferencedType
Definition: types.py:5
POEntry::tagNames
QStringList tagNames
Definition: shared.h:25
apackage.Derived
Definition: Derived.java:3
method-parameters.TestMethodParameters.method_params_dict
def method_params_dict(self, a={} b={ 'a':1, 'b':2})
Definition: method-parameters.py:12
main
int main(int argc, char **argv)
Definition: po2xmi.cpp:28
apackage.Derived.staticProtectedMethod
static void staticProtectedMethod()
Definition: Derived.java:12
toXMLCharacterEntities
QString toXMLCharacterEntities(QString s)
Definition: shared.cpp:109
apackage.Base.stringVector
String[] stringVector
Definition: Base.java:9
apackage.UseGeneric.UseGeneric
UseGeneric(Generic< Integer > a)
Definition: UseGeneric.java:5
types.Types.instance_variable_object_type
instance_variable_object_type
Definition: types.py:46
apackage.DerivedExtern.DerivedExtern
DerivedExtern()
Definition: DerivedExtern.java:6
main
int main(int argc, char *argv[])
Definition: svg2png.cpp:26
method-parameters.TestMethodParameters.method_params_simple_default_values
def method_params_simple_default_values(self, a=0, a=-1, b=None, c="str", d=0.1)
Definition: method-parameters.py:9
apackage.Derived.Derived
Derived()
Definition: Derived.java:4
iTemplate\setVariable
setVariable($name, $var)
apackage.Enum.Value1
Value1
Definition: Enum.java:4
Illuminate\Database\Eloquent\Model
Definition: namespaces-multiple.php:21
types.Types
Definition: types.py:11
a
QString a
Definition: petalnode.cpp:18
apackage.Derived._protected_int_member
int _protected_int_member
Definition: Derived.java:19
fetchPoFile
bool fetchPoFile(const QString &fileName, TranslationMap &map)
Definition: shared.cpp:170
types.Types.instance_variable_negative_float
instance_variable_negative_float
Definition: types.py:36
visibility.Visibility._protected
int _protected
Definition: visibility.py:5
apackage.Derived._private_final_int_member
final int _private_final_int_member
Definition: Derived.java:26
apackage.AbstractClass.abstractMethod
abstract void abstractMethod()
apackage.Type.Type
Type()
Definition: Type.java:4
types.Types.instance_variable_list
instance_variable_list
Definition: types.py:39
method-parameters.TestMethodParameters.method_params
def method_params(self, a, b)
Definition: method-parameters.py:6
UMLScene::setMenu
void setMenu(const QPoint &pos)
types.Types.instance_variable_tuple_params
instance_variable_tuple_params
Definition: types.py:44
types.Types.instance_variable_float
instance_variable_float
Definition: types.py:35
types.Types.instance_variable_bool_false
instance_variable_bool_false
Definition: types.py:32
int
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
apackage.Derived.staticPrivateMethod
static void staticPrivateMethod()
Definition: Derived.java:14
apackage.subdir.apackage.ApackageSubdirApackageTest
Definition: ApackageSubdirApackageTest.java:3
types.Types.test
def test()
Definition: types.py:49
Template
Definition: interfaces.php:9
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
method-parameters.TestMethodParameters.method_params_tuple
def method_params_tuple(self, a=(), b=(1, 2))
Definition: method-parameters.py:21
method-parameters.TestMethodParameters.method
def method(self)
Definition: method-parameters.py:3
Connection3\test3
test3()
Definition: namespaces-multiple.php:15
apackage.AbstractClass.AbstractClass
AbstractClass()
Definition: AbstractClass.java:5
apackage.Base
Definition: Base.java:3
types.Types.__init__
def __init__()
Definition: types.py:30
operator<<
QDebug operator<<(QDebug out, const QXmlStreamAttribute &a)
Definition: shared.cpp:24
fetchPoFile
bool fetchPoFile(const QString &fileName, TranslationMap &map)
Definition: shared.cpp:170
apackage.Generic.empty
void empty()
Definition: Generic.java:10
apackage.Derived.staticPublicMethod
static void staticPublicMethod()
Definition: Derived.java:11
apackage.Enum
Definition: Enum.java:3
apackage.Derived._public_int_member
int _public_int_member
Definition: Derived.java:18
apackage.Derived.privateMethod
void privateMethod()
Definition: Derived.java:9
types.Types.instance_variable_dict
instance_variable_dict
Definition: types.py:41
apackage.Generic
Definition: Generic.java:3
apackage.Generic.Generic
Generic(T value)
Definition: Generic.java:6
apackage.Base.Base
Base()
Definition: Base.java:4
$a
$a
Definition: namespaces-multiple.php:17
extractAttributesFromXMI
bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result)
Definition: shared.cpp:59
toGetTextString
QString toGetTextString(const QString &message)
Definition: shared.cpp:126
apackage.Derived._private_int_member
int _private_int_member
Definition: Derived.java:21
types.Types.instance_variable_object
instance_variable_object
Definition: types.py:45
apackage.Generic.value
T value
Definition: Generic.java:4
visibility.Visibility
Definition: visibility.py:3
apackage.AbstractClass.method
void method()
Definition: AbstractClass.java:9
visibility.Visibility.__init__
def __init__(self)
Definition: visibility.py:9
MyProject\Connection1
Definition: namespaces-multiple.php:4
apackage.Interface
Definition: Interface.java:3
apackage.Base.finalMethod
final void finalMethod()
Definition: Base.java:8
applyTranslationToXMIFile
bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations)
Definition: shared.cpp:215
Timetracker\Base\Models\Hour
Definition: namespaces-multiple.php:30
apackage.Derived._private_initialized_int_member
int _private_initialized_int_member
Definition: Derived.java:23
shared.h
apackage.UseGeneric
Definition: UseGeneric.java:3
method-parameters.TestMethodParameters.method_params_dict_nested
def method_params_dict_nested(self, a={} b={ 'a':1, 'b':{ 'a':1, 'b':2}})
Definition: method-parameters.py:15
apackage.UseGeneric.setA
void setA(Generic< Integer > _a)
Definition: UseGeneric.java:9
types.Types.instance_variable_list_params
instance_variable_list_params
Definition: types.py:40
method-parameters.TestMethodParameters
Definition: method-parameters.py:2
POEntry::lineNumbers
QList< int > lineNumbers
Definition: shared.h:27
applyTranslationToXMIFile
bool applyTranslationToXMIFile(const char *fileName, const QStringList &attributes, TranslationMap &translations)
Definition: shared.cpp:215
types.ReferencedType.__init__
def __init__(self, a=0, b=0)
Definition: types.py:6
types.Types.instance_variable_dict_params
instance_variable_dict_params
Definition: types.py:42
AnotherProject\Connection2\test2
test2()
Definition: namespaces-multiple.php:10
MyProject\CONNECT_OK
const CONNECT_OK
Definition: namespaces-multiple.php:3
visibility.Visibility.public
int public
Definition: visibility.py:6