Commit d6da482b authored by Ralf Habacker's avatar Ralf Habacker

Add support for importing simple statements into class diagrams.

Class and association statements could be imported by pasting from
the clipboard or by selecting "from file" in the "new" submenu of
a class diagram context menu.

Parsing errors are logged into the log windows.

See test/import/diagrams/class/classes.txt for the supported statements.

BUG:380266
FIXED-IN:2.22.80 (KDE Applications 17.07.80)
parent 9f7c578d
# import into class diagram
TestClass1
member11
member12
method11()
method12()
TestClass2
member21
member22
method21()
method22()
TestClass3
int member11
test member12
int method12()
# comments
# int method11()
// int method11()
TestClass4
public int publicMember41
protected int proctedMember42
private test privateMember43
public int publicMethod41()
protected int protectedMethod42()
private int privateMethod43()
TestClass5
+ int publicMember51
# test protectedMember52
- test privateMember53
+ int publicMethod51()
# int protectedMethod52()
- int privateMethod53()
~ int implementationMethod54()
# association
TestClass1 --- TestClass5
# uniassociation
TestClass4 --> TestClass2
# generalization
TestClass4 -|> TestClass1
# aggregation
TestClass2 -<> TestClass3
# composition
TestClass5 --* TestClass2
# parse error
# unknown class
TestClass --* TestClass2
# invalid syntax
TestClass --*
## not yet implemented
# type modifiers
# method parameter
# multiplicity e.g TestClass2 {1..*} -<> {1} TestClass3
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment