graphviz-code-viewer 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/PKG-INFO +1 -1
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/about.py +1 -1
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/LoginStateMachine.dot +15 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/LoginStateMachine.svg +84 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/ParallelGroupsLR.dot +36 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/ParallelGroupsLR.svg +168 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/ParallelGroupsTB.dot +36 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/ParallelGroupsTB.svg +168 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/TrafficLightStateMachine.dot +11 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/data/TrafficLightStateMachine.svg +64 -0
- graphviz_code_viewer-0.1.5/graphviz_code_viewer/modules/example_selector.py +257 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/program.py +59 -4
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/PKG-INFO +1 -1
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/SOURCES.txt +9 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/pyproject.toml +2 -2
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/LICENSE +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/README.md +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/__init__.py +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/desktop.py +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/document-open.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/download-green.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/download.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/emote-love.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/image.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/logo.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/status_help.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/system-run.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/text-configure.png +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/__init__.py +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/configure.py +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/resources.py +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/wabout.py +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/dependency_links.txt +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/entry_points.txt +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/requires.txt +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/top_level.txt +0 -0
- {graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: graphviz_code_viewer
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Program to edit and view Graphviz code.
|
|
5
5
|
Author-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
|
|
6
6
|
Maintainer-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
digraph LoginStateMachine {
|
|
2
|
+
rankdir=LR;
|
|
3
|
+
|
|
4
|
+
node [shape=circle];
|
|
5
|
+
|
|
6
|
+
LoggedOut -> LoggingIn [label="click login"];
|
|
7
|
+
LoggingIn -> Authenticated [label="success"];
|
|
8
|
+
LoggingIn -> Error [label="failure"];
|
|
9
|
+
|
|
10
|
+
Error -> LoggingIn [label="retry"];
|
|
11
|
+
Authenticated -> LoggedOut [label="logout"];
|
|
12
|
+
|
|
13
|
+
start [shape=square];
|
|
14
|
+
start -> LoggedOut;
|
|
15
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
+
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<!-- Generated by graphviz version 2.43.0 (0)
|
|
5
|
+
-->
|
|
6
|
+
<!-- Title: LoginStateMachine Pages: 1 -->
|
|
7
|
+
<svg width="687pt" height="250pt"
|
|
8
|
+
viewBox="0.00 0.00 687.27 250.44" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
+
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 246.44)">
|
|
10
|
+
<title>LoginStateMachine</title>
|
|
11
|
+
<polygon fill="white" stroke="transparent" points="-4,4 -4,-246.44 683.27,-246.44 683.27,4 -4,4"/>
|
|
12
|
+
<!-- LoggedOut -->
|
|
13
|
+
<g id="node1" class="node">
|
|
14
|
+
<title>LoggedOut</title>
|
|
15
|
+
<ellipse fill="none" stroke="black" cx="149.74" cy="-92.04" rx="61.99" ry="61.99"/>
|
|
16
|
+
<text text-anchor="middle" x="149.74" y="-88.34" font-family="Times,serif" font-size="14.00">LoggedOut</text>
|
|
17
|
+
</g>
|
|
18
|
+
<!-- LoggingIn -->
|
|
19
|
+
<g id="node2" class="node">
|
|
20
|
+
<title>LoggingIn</title>
|
|
21
|
+
<ellipse fill="none" stroke="black" cx="378.33" cy="-167.04" rx="57.69" ry="57.69"/>
|
|
22
|
+
<text text-anchor="middle" x="378.33" y="-163.34" font-family="Times,serif" font-size="14.00">LoggingIn</text>
|
|
23
|
+
</g>
|
|
24
|
+
<!-- LoggedOut->LoggingIn -->
|
|
25
|
+
<g id="edge1" class="edge">
|
|
26
|
+
<title>LoggedOut->LoggingIn</title>
|
|
27
|
+
<path fill="none" stroke="black" d="M208.51,-111.16C240.61,-121.79 280.62,-135.03 313.62,-145.96"/>
|
|
28
|
+
<polygon fill="black" stroke="black" points="312.59,-149.3 323.18,-149.12 314.79,-142.65 312.59,-149.3"/>
|
|
29
|
+
<text text-anchor="middle" x="265.99" y="-144.84" font-family="Times,serif" font-size="14.00">click login</text>
|
|
30
|
+
</g>
|
|
31
|
+
<!-- Authenticated -->
|
|
32
|
+
<g id="node3" class="node">
|
|
33
|
+
<title>Authenticated</title>
|
|
34
|
+
<ellipse fill="none" stroke="black" cx="603.22" cy="-76.04" rx="76.09" ry="76.09"/>
|
|
35
|
+
<text text-anchor="middle" x="603.22" y="-72.34" font-family="Times,serif" font-size="14.00">Authenticated</text>
|
|
36
|
+
</g>
|
|
37
|
+
<!-- LoggingIn->Authenticated -->
|
|
38
|
+
<g id="edge2" class="edge">
|
|
39
|
+
<title>LoggingIn->Authenticated</title>
|
|
40
|
+
<path fill="none" stroke="black" d="M432.16,-145.48C459.22,-134.43 492.74,-120.74 522.84,-108.45"/>
|
|
41
|
+
<polygon fill="black" stroke="black" points="524.54,-111.54 532.48,-104.52 521.9,-105.06 524.54,-111.54"/>
|
|
42
|
+
<text text-anchor="middle" x="481.68" y="-138.84" font-family="Times,serif" font-size="14.00">success</text>
|
|
43
|
+
</g>
|
|
44
|
+
<!-- Error -->
|
|
45
|
+
<g id="node4" class="node">
|
|
46
|
+
<title>Error</title>
|
|
47
|
+
<ellipse fill="none" stroke="black" cx="603.22" cy="-206.04" rx="36.29" ry="36.29"/>
|
|
48
|
+
<text text-anchor="middle" x="603.22" y="-202.34" font-family="Times,serif" font-size="14.00">Error</text>
|
|
49
|
+
</g>
|
|
50
|
+
<!-- LoggingIn->Error -->
|
|
51
|
+
<g id="edge3" class="edge">
|
|
52
|
+
<title>LoggingIn->Error</title>
|
|
53
|
+
<path fill="none" stroke="black" d="M436.05,-162.85C458.96,-162.35 485.53,-163.31 509.18,-168.04 526.75,-171.56 545.19,-178.37 560.98,-185.27"/>
|
|
54
|
+
<polygon fill="black" stroke="black" points="559.89,-188.61 570.44,-189.54 562.77,-182.23 559.89,-188.61"/>
|
|
55
|
+
<text text-anchor="middle" x="481.68" y="-171.84" font-family="Times,serif" font-size="14.00">failure</text>
|
|
56
|
+
</g>
|
|
57
|
+
<!-- Authenticated->LoggedOut -->
|
|
58
|
+
<g id="edge5" class="edge">
|
|
59
|
+
<title>Authenticated->LoggedOut</title>
|
|
60
|
+
<path fill="none" stroke="black" d="M527.18,-78.25C470.41,-79.97 390.54,-82.48 320.49,-85.04 288.05,-86.23 252.13,-87.69 221.72,-88.97"/>
|
|
61
|
+
<polygon fill="black" stroke="black" points="221.47,-85.48 211.63,-89.4 221.77,-92.47 221.47,-85.48"/>
|
|
62
|
+
<text text-anchor="middle" x="378.33" y="-88.84" font-family="Times,serif" font-size="14.00">logout</text>
|
|
63
|
+
</g>
|
|
64
|
+
<!-- Error->LoggingIn -->
|
|
65
|
+
<g id="edge4" class="edge">
|
|
66
|
+
<title>Error->LoggingIn</title>
|
|
67
|
+
<path fill="none" stroke="black" d="M567.13,-201.16C537.07,-196.84 492.68,-190.14 454.18,-183.04 451.2,-182.49 448.17,-181.92 445.1,-181.32"/>
|
|
68
|
+
<polygon fill="black" stroke="black" points="445.75,-177.88 435.26,-179.36 444.38,-184.75 445.75,-177.88"/>
|
|
69
|
+
<text text-anchor="middle" x="481.68" y="-196.84" font-family="Times,serif" font-size="14.00">retry</text>
|
|
70
|
+
</g>
|
|
71
|
+
<!-- start -->
|
|
72
|
+
<g id="node5" class="node">
|
|
73
|
+
<title>start</title>
|
|
74
|
+
<polygon fill="none" stroke="black" points="51,-117.54 0,-117.54 0,-66.54 51,-66.54 51,-117.54"/>
|
|
75
|
+
<text text-anchor="middle" x="25.5" y="-88.34" font-family="Times,serif" font-size="14.00">start</text>
|
|
76
|
+
</g>
|
|
77
|
+
<!-- start->LoggedOut -->
|
|
78
|
+
<g id="edge6" class="edge">
|
|
79
|
+
<title>start->LoggedOut</title>
|
|
80
|
+
<path fill="none" stroke="black" d="M51.24,-92.04C59.16,-92.04 68.36,-92.04 77.89,-92.04"/>
|
|
81
|
+
<polygon fill="black" stroke="black" points="77.9,-95.54 87.9,-92.04 77.9,-88.54 77.9,-95.54"/>
|
|
82
|
+
</g>
|
|
83
|
+
</g>
|
|
84
|
+
</svg>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
digraph ParallelGroupsLR {
|
|
2
|
+
rankdir=LR;
|
|
3
|
+
compound=true;
|
|
4
|
+
|
|
5
|
+
node [shape=box];
|
|
6
|
+
|
|
7
|
+
Start -> Split;
|
|
8
|
+
|
|
9
|
+
Split -> LeftGroup_Start;
|
|
10
|
+
Split -> RightGroup_Start;
|
|
11
|
+
|
|
12
|
+
subgraph cluster_left {
|
|
13
|
+
label="Left Group";
|
|
14
|
+
style=rounded;
|
|
15
|
+
|
|
16
|
+
LeftGroup_Start -> LeftTask1;
|
|
17
|
+
LeftTask1 -> LeftTask2;
|
|
18
|
+
LeftTask2 -> LeftDone;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
subgraph cluster_right {
|
|
22
|
+
label="Right Group";
|
|
23
|
+
style=rounded;
|
|
24
|
+
|
|
25
|
+
RightGroup_Start -> RightTask1;
|
|
26
|
+
RightTask1 -> RightTask2;
|
|
27
|
+
RightTask2 -> RightDone;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
LeftDone -> Merge;
|
|
31
|
+
RightDone -> Merge;
|
|
32
|
+
|
|
33
|
+
Merge -> End;
|
|
34
|
+
|
|
35
|
+
End [shape=doublecircle];
|
|
36
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
+
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<!-- Generated by graphviz version 2.43.0 (0)
|
|
5
|
+
-->
|
|
6
|
+
<!-- Title: ParallelGroupsLR Pages: 1 -->
|
|
7
|
+
<svg width="926pt" height="182pt"
|
|
8
|
+
viewBox="0.00 0.00 926.49 182.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
+
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 178)">
|
|
10
|
+
<title>ParallelGroupsLR</title>
|
|
11
|
+
<polygon fill="white" stroke="transparent" points="-4,4 -4,-178 922.49,-178 922.49,4 -4,4"/>
|
|
12
|
+
<g id="clust1" class="cluster">
|
|
13
|
+
<title>cluster_left</title>
|
|
14
|
+
<path fill="none" stroke="black" d="M189,-91C189,-91 708,-91 708,-91 714,-91 720,-97 720,-103 720,-103 720,-154 720,-154 720,-160 714,-166 708,-166 708,-166 189,-166 189,-166 183,-166 177,-160 177,-154 177,-154 177,-103 177,-103 177,-97 183,-91 189,-91"/>
|
|
15
|
+
<text text-anchor="middle" x="448.5" y="-150.8" font-family="Times,serif" font-size="14.00">Left Group</text>
|
|
16
|
+
</g>
|
|
17
|
+
<g id="clust2" class="cluster">
|
|
18
|
+
<title>cluster_right</title>
|
|
19
|
+
<path fill="none" stroke="black" d="M184,-8C184,-8 713,-8 713,-8 719,-8 725,-14 725,-20 725,-20 725,-71 725,-71 725,-77 719,-83 713,-83 713,-83 184,-83 184,-83 178,-83 172,-77 172,-71 172,-71 172,-20 172,-20 172,-14 178,-8 184,-8"/>
|
|
20
|
+
<text text-anchor="middle" x="448.5" y="-67.8" font-family="Times,serif" font-size="14.00">Right Group</text>
|
|
21
|
+
</g>
|
|
22
|
+
<!-- Start -->
|
|
23
|
+
<g id="node1" class="node">
|
|
24
|
+
<title>Start</title>
|
|
25
|
+
<polygon fill="none" stroke="black" points="54,-93 0,-93 0,-57 54,-57 54,-93"/>
|
|
26
|
+
<text text-anchor="middle" x="27" y="-71.3" font-family="Times,serif" font-size="14.00">Start</text>
|
|
27
|
+
</g>
|
|
28
|
+
<!-- Split -->
|
|
29
|
+
<g id="node2" class="node">
|
|
30
|
+
<title>Split</title>
|
|
31
|
+
<polygon fill="none" stroke="black" points="144,-93 90,-93 90,-57 144,-57 144,-93"/>
|
|
32
|
+
<text text-anchor="middle" x="117" y="-71.3" font-family="Times,serif" font-size="14.00">Split</text>
|
|
33
|
+
</g>
|
|
34
|
+
<!-- Start->Split -->
|
|
35
|
+
<g id="edge1" class="edge">
|
|
36
|
+
<title>Start->Split</title>
|
|
37
|
+
<path fill="none" stroke="black" d="M54.4,-75C62.39,-75 71.31,-75 79.82,-75"/>
|
|
38
|
+
<polygon fill="black" stroke="black" points="79.92,-78.5 89.92,-75 79.92,-71.5 79.92,-78.5"/>
|
|
39
|
+
</g>
|
|
40
|
+
<!-- LeftGroup_Start -->
|
|
41
|
+
<g id="node3" class="node">
|
|
42
|
+
<title>LeftGroup_Start</title>
|
|
43
|
+
<polygon fill="none" stroke="black" points="318,-135 185,-135 185,-99 318,-99 318,-135"/>
|
|
44
|
+
<text text-anchor="middle" x="251.5" y="-113.3" font-family="Times,serif" font-size="14.00">LeftGroup_Start</text>
|
|
45
|
+
</g>
|
|
46
|
+
<!-- Split->LeftGroup_Start -->
|
|
47
|
+
<g id="edge2" class="edge">
|
|
48
|
+
<title>Split->LeftGroup_Start</title>
|
|
49
|
+
<path fill="none" stroke="black" d="M144.18,-83.3C155.7,-86.95 169.81,-91.42 183.94,-95.9"/>
|
|
50
|
+
<polygon fill="black" stroke="black" points="183.1,-99.31 193.69,-98.99 185.21,-92.63 183.1,-99.31"/>
|
|
51
|
+
</g>
|
|
52
|
+
<!-- RightGroup_Start -->
|
|
53
|
+
<g id="node4" class="node">
|
|
54
|
+
<title>RightGroup_Start</title>
|
|
55
|
+
<polygon fill="none" stroke="black" points="323,-52 180,-52 180,-16 323,-16 323,-52"/>
|
|
56
|
+
<text text-anchor="middle" x="251.5" y="-30.3" font-family="Times,serif" font-size="14.00">RightGroup_Start</text>
|
|
57
|
+
</g>
|
|
58
|
+
<!-- Split->RightGroup_Start -->
|
|
59
|
+
<g id="edge3" class="edge">
|
|
60
|
+
<title>Split->RightGroup_Start</title>
|
|
61
|
+
<path fill="none" stroke="black" d="M144.18,-66.9C155.28,-63.46 168.8,-59.28 182.41,-55.07"/>
|
|
62
|
+
<polygon fill="black" stroke="black" points="183.79,-58.3 192.31,-52.01 181.73,-51.62 183.79,-58.3"/>
|
|
63
|
+
</g>
|
|
64
|
+
<!-- LeftTask1 -->
|
|
65
|
+
<g id="node5" class="node">
|
|
66
|
+
<title>LeftTask1</title>
|
|
67
|
+
<polygon fill="none" stroke="black" points="450.5,-135 364.5,-135 364.5,-99 450.5,-99 450.5,-135"/>
|
|
68
|
+
<text text-anchor="middle" x="407.5" y="-113.3" font-family="Times,serif" font-size="14.00">LeftTask1</text>
|
|
69
|
+
</g>
|
|
70
|
+
<!-- LeftGroup_Start->LeftTask1 -->
|
|
71
|
+
<g id="edge4" class="edge">
|
|
72
|
+
<title>LeftGroup_Start->LeftTask1</title>
|
|
73
|
+
<path fill="none" stroke="black" d="M318.26,-117C330.15,-117 342.41,-117 353.86,-117"/>
|
|
74
|
+
<polygon fill="black" stroke="black" points="354.12,-120.5 364.12,-117 354.12,-113.5 354.12,-120.5"/>
|
|
75
|
+
</g>
|
|
76
|
+
<!-- RightTask1 -->
|
|
77
|
+
<g id="node8" class="node">
|
|
78
|
+
<title>RightTask1</title>
|
|
79
|
+
<polygon fill="none" stroke="black" points="456,-52 359,-52 359,-16 456,-16 456,-52"/>
|
|
80
|
+
<text text-anchor="middle" x="407.5" y="-30.3" font-family="Times,serif" font-size="14.00">RightTask1</text>
|
|
81
|
+
</g>
|
|
82
|
+
<!-- RightGroup_Start->RightTask1 -->
|
|
83
|
+
<g id="edge7" class="edge">
|
|
84
|
+
<title>RightGroup_Start->RightTask1</title>
|
|
85
|
+
<path fill="none" stroke="black" d="M323.19,-34C331.64,-34 340.19,-34 348.44,-34"/>
|
|
86
|
+
<polygon fill="black" stroke="black" points="348.68,-37.5 358.68,-34 348.68,-30.5 348.68,-37.5"/>
|
|
87
|
+
</g>
|
|
88
|
+
<!-- LeftTask2 -->
|
|
89
|
+
<g id="node6" class="node">
|
|
90
|
+
<title>LeftTask2</title>
|
|
91
|
+
<polygon fill="none" stroke="black" points="583.5,-135 497.5,-135 497.5,-99 583.5,-99 583.5,-135"/>
|
|
92
|
+
<text text-anchor="middle" x="540.5" y="-113.3" font-family="Times,serif" font-size="14.00">LeftTask2</text>
|
|
93
|
+
</g>
|
|
94
|
+
<!-- LeftTask1->LeftTask2 -->
|
|
95
|
+
<g id="edge5" class="edge">
|
|
96
|
+
<title>LeftTask1->LeftTask2</title>
|
|
97
|
+
<path fill="none" stroke="black" d="M450.67,-117C462.36,-117 475.18,-117 487.37,-117"/>
|
|
98
|
+
<polygon fill="black" stroke="black" points="487.41,-120.5 497.41,-117 487.41,-113.5 487.41,-120.5"/>
|
|
99
|
+
</g>
|
|
100
|
+
<!-- LeftDone -->
|
|
101
|
+
<g id="node7" class="node">
|
|
102
|
+
<title>LeftDone</title>
|
|
103
|
+
<polygon fill="none" stroke="black" points="712,-135 630,-135 630,-99 712,-99 712,-135"/>
|
|
104
|
+
<text text-anchor="middle" x="671" y="-113.3" font-family="Times,serif" font-size="14.00">LeftDone</text>
|
|
105
|
+
</g>
|
|
106
|
+
<!-- LeftTask2->LeftDone -->
|
|
107
|
+
<g id="edge6" class="edge">
|
|
108
|
+
<title>LeftTask2->LeftDone</title>
|
|
109
|
+
<path fill="none" stroke="black" d="M583.58,-117C595.01,-117 607.52,-117 619.37,-117"/>
|
|
110
|
+
<polygon fill="black" stroke="black" points="619.58,-120.5 629.58,-117 619.58,-113.5 619.58,-120.5"/>
|
|
111
|
+
</g>
|
|
112
|
+
<!-- Merge -->
|
|
113
|
+
<g id="node11" class="node">
|
|
114
|
+
<title>Merge</title>
|
|
115
|
+
<polygon fill="none" stroke="black" points="816,-93 753,-93 753,-57 816,-57 816,-93"/>
|
|
116
|
+
<text text-anchor="middle" x="784.5" y="-71.3" font-family="Times,serif" font-size="14.00">Merge</text>
|
|
117
|
+
</g>
|
|
118
|
+
<!-- LeftDone->Merge -->
|
|
119
|
+
<g id="edge10" class="edge">
|
|
120
|
+
<title>LeftDone->Merge</title>
|
|
121
|
+
<path fill="none" stroke="black" d="M712.25,-101.84C722.37,-98.03 733.23,-93.94 743.34,-90.13"/>
|
|
122
|
+
<polygon fill="black" stroke="black" points="744.63,-93.38 752.76,-86.58 742.16,-86.83 744.63,-93.38"/>
|
|
123
|
+
</g>
|
|
124
|
+
<!-- RightTask2 -->
|
|
125
|
+
<g id="node9" class="node">
|
|
126
|
+
<title>RightTask2</title>
|
|
127
|
+
<polygon fill="none" stroke="black" points="589,-52 492,-52 492,-16 589,-16 589,-52"/>
|
|
128
|
+
<text text-anchor="middle" x="540.5" y="-30.3" font-family="Times,serif" font-size="14.00">RightTask2</text>
|
|
129
|
+
</g>
|
|
130
|
+
<!-- RightTask1->RightTask2 -->
|
|
131
|
+
<g id="edge8" class="edge">
|
|
132
|
+
<title>RightTask1->RightTask2</title>
|
|
133
|
+
<path fill="none" stroke="black" d="M456.16,-34C464.38,-34 473.01,-34 481.46,-34"/>
|
|
134
|
+
<polygon fill="black" stroke="black" points="481.65,-37.5 491.65,-34 481.65,-30.5 481.65,-37.5"/>
|
|
135
|
+
</g>
|
|
136
|
+
<!-- RightDone -->
|
|
137
|
+
<g id="node10" class="node">
|
|
138
|
+
<title>RightDone</title>
|
|
139
|
+
<polygon fill="none" stroke="black" points="717,-52 625,-52 625,-16 717,-16 717,-52"/>
|
|
140
|
+
<text text-anchor="middle" x="671" y="-30.3" font-family="Times,serif" font-size="14.00">RightDone</text>
|
|
141
|
+
</g>
|
|
142
|
+
<!-- RightTask2->RightDone -->
|
|
143
|
+
<g id="edge9" class="edge">
|
|
144
|
+
<title>RightTask2->RightDone</title>
|
|
145
|
+
<path fill="none" stroke="black" d="M589.35,-34C597.57,-34 606.17,-34 614.57,-34"/>
|
|
146
|
+
<polygon fill="black" stroke="black" points="614.67,-37.5 624.67,-34 614.67,-30.5 614.67,-37.5"/>
|
|
147
|
+
</g>
|
|
148
|
+
<!-- RightDone->Merge -->
|
|
149
|
+
<g id="edge11" class="edge">
|
|
150
|
+
<title>RightDone->Merge</title>
|
|
151
|
+
<path fill="none" stroke="black" d="M717.03,-50.56C725.81,-53.79 734.96,-57.15 743.57,-60.32"/>
|
|
152
|
+
<polygon fill="black" stroke="black" points="742.41,-63.62 753,-63.78 744.82,-57.05 742.41,-63.62"/>
|
|
153
|
+
</g>
|
|
154
|
+
<!-- End -->
|
|
155
|
+
<g id="node12" class="node">
|
|
156
|
+
<title>End</title>
|
|
157
|
+
<ellipse fill="none" stroke="black" cx="885.25" cy="-75" rx="29.47" ry="29.47"/>
|
|
158
|
+
<ellipse fill="none" stroke="black" cx="885.25" cy="-75" rx="33.5" ry="33.5"/>
|
|
159
|
+
<text text-anchor="middle" x="885.25" y="-71.3" font-family="Times,serif" font-size="14.00">End</text>
|
|
160
|
+
</g>
|
|
161
|
+
<!-- Merge->End -->
|
|
162
|
+
<g id="edge12" class="edge">
|
|
163
|
+
<title>Merge->End</title>
|
|
164
|
+
<path fill="none" stroke="black" d="M816.2,-75C824.25,-75 833.08,-75 841.63,-75"/>
|
|
165
|
+
<polygon fill="black" stroke="black" points="841.85,-78.5 851.85,-75 841.85,-71.5 841.85,-78.5"/>
|
|
166
|
+
</g>
|
|
167
|
+
</g>
|
|
168
|
+
</svg>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
digraph ParallelGroupsTB {
|
|
2
|
+
rankdir=TB;
|
|
3
|
+
compound=true;
|
|
4
|
+
|
|
5
|
+
node [shape=box];
|
|
6
|
+
|
|
7
|
+
Start -> Split;
|
|
8
|
+
|
|
9
|
+
Split -> LeftGroup_Start;
|
|
10
|
+
Split -> RightGroup_Start;
|
|
11
|
+
|
|
12
|
+
subgraph cluster_left {
|
|
13
|
+
label="Left Group";
|
|
14
|
+
style=rounded;
|
|
15
|
+
|
|
16
|
+
LeftGroup_Start -> LeftTask1;
|
|
17
|
+
LeftTask1 -> LeftTask2;
|
|
18
|
+
LeftTask2 -> LeftDone;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
subgraph cluster_right {
|
|
22
|
+
label="Right Group";
|
|
23
|
+
style=rounded;
|
|
24
|
+
|
|
25
|
+
RightGroup_Start -> RightTask1;
|
|
26
|
+
RightTask1 -> RightTask2;
|
|
27
|
+
RightTask2 -> RightDone;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
LeftDone -> Merge;
|
|
31
|
+
RightDone -> Merge;
|
|
32
|
+
|
|
33
|
+
Merge -> End;
|
|
34
|
+
|
|
35
|
+
End [shape=doublecircle];
|
|
36
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
+
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<!-- Generated by graphviz version 2.43.0 (0)
|
|
5
|
+
-->
|
|
6
|
+
<!-- Title: ParallelGroupsTB Pages: 1 -->
|
|
7
|
+
<svg width="342pt" height="581pt"
|
|
8
|
+
viewBox="0.00 0.00 342.00 581.49" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
+
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 577.49)">
|
|
10
|
+
<title>ParallelGroupsTB</title>
|
|
11
|
+
<polygon fill="white" stroke="transparent" points="-4,4 -4,-577.49 338,-577.49 338,4 -4,4"/>
|
|
12
|
+
<g id="clust1" class="cluster">
|
|
13
|
+
<title>cluster_left</title>
|
|
14
|
+
<path fill="none" stroke="black" d="M20,-166.49C20,-166.49 146,-166.49 146,-166.49 152,-166.49 158,-172.49 158,-178.49 158,-178.49 158,-445.49 158,-445.49 158,-451.49 152,-457.49 146,-457.49 146,-457.49 20,-457.49 20,-457.49 14,-457.49 8,-451.49 8,-445.49 8,-445.49 8,-178.49 8,-178.49 8,-172.49 14,-166.49 20,-166.49"/>
|
|
15
|
+
<text text-anchor="middle" x="83" y="-442.29" font-family="Times,serif" font-size="14.00">Left Group</text>
|
|
16
|
+
</g>
|
|
17
|
+
<g id="clust2" class="cluster">
|
|
18
|
+
<title>cluster_right</title>
|
|
19
|
+
<path fill="none" stroke="black" d="M178,-166.49C178,-166.49 314,-166.49 314,-166.49 320,-166.49 326,-172.49 326,-178.49 326,-178.49 326,-445.49 326,-445.49 326,-451.49 320,-457.49 314,-457.49 314,-457.49 178,-457.49 178,-457.49 172,-457.49 166,-451.49 166,-445.49 166,-445.49 166,-178.49 166,-178.49 166,-172.49 172,-166.49 178,-166.49"/>
|
|
20
|
+
<text text-anchor="middle" x="246" y="-442.29" font-family="Times,serif" font-size="14.00">Right Group</text>
|
|
21
|
+
</g>
|
|
22
|
+
<!-- Start -->
|
|
23
|
+
<g id="node1" class="node">
|
|
24
|
+
<title>Start</title>
|
|
25
|
+
<polygon fill="none" stroke="black" points="191,-573.49 137,-573.49 137,-537.49 191,-537.49 191,-573.49"/>
|
|
26
|
+
<text text-anchor="middle" x="164" y="-551.79" font-family="Times,serif" font-size="14.00">Start</text>
|
|
27
|
+
</g>
|
|
28
|
+
<!-- Split -->
|
|
29
|
+
<g id="node2" class="node">
|
|
30
|
+
<title>Split</title>
|
|
31
|
+
<polygon fill="none" stroke="black" points="191,-501.49 137,-501.49 137,-465.49 191,-465.49 191,-501.49"/>
|
|
32
|
+
<text text-anchor="middle" x="164" y="-479.79" font-family="Times,serif" font-size="14.00">Split</text>
|
|
33
|
+
</g>
|
|
34
|
+
<!-- Start->Split -->
|
|
35
|
+
<g id="edge1" class="edge">
|
|
36
|
+
<title>Start->Split</title>
|
|
37
|
+
<path fill="none" stroke="black" d="M164,-537.19C164,-529.48 164,-520.21 164,-511.61"/>
|
|
38
|
+
<polygon fill="black" stroke="black" points="167.5,-511.6 164,-501.6 160.5,-511.6 167.5,-511.6"/>
|
|
39
|
+
</g>
|
|
40
|
+
<!-- LeftGroup_Start -->
|
|
41
|
+
<g id="node3" class="node">
|
|
42
|
+
<title>LeftGroup_Start</title>
|
|
43
|
+
<polygon fill="none" stroke="black" points="149.5,-426.49 16.5,-426.49 16.5,-390.49 149.5,-390.49 149.5,-426.49"/>
|
|
44
|
+
<text text-anchor="middle" x="83" y="-404.79" font-family="Times,serif" font-size="14.00">LeftGroup_Start</text>
|
|
45
|
+
</g>
|
|
46
|
+
<!-- Split->LeftGroup_Start -->
|
|
47
|
+
<g id="edge2" class="edge">
|
|
48
|
+
<title>Split->LeftGroup_Start</title>
|
|
49
|
+
<path fill="none" stroke="black" d="M144.8,-465.19C134.31,-455.74 121.16,-443.88 109.68,-433.54"/>
|
|
50
|
+
<polygon fill="black" stroke="black" points="111.83,-430.77 102.06,-426.67 107.14,-435.97 111.83,-430.77"/>
|
|
51
|
+
</g>
|
|
52
|
+
<!-- RightGroup_Start -->
|
|
53
|
+
<g id="node4" class="node">
|
|
54
|
+
<title>RightGroup_Start</title>
|
|
55
|
+
<polygon fill="none" stroke="black" points="317.5,-426.49 174.5,-426.49 174.5,-390.49 317.5,-390.49 317.5,-426.49"/>
|
|
56
|
+
<text text-anchor="middle" x="246" y="-404.79" font-family="Times,serif" font-size="14.00">RightGroup_Start</text>
|
|
57
|
+
</g>
|
|
58
|
+
<!-- Split->RightGroup_Start -->
|
|
59
|
+
<g id="edge3" class="edge">
|
|
60
|
+
<title>Split->RightGroup_Start</title>
|
|
61
|
+
<path fill="none" stroke="black" d="M183.43,-465.19C194.05,-455.74 207.37,-443.88 218.99,-433.54"/>
|
|
62
|
+
<polygon fill="black" stroke="black" points="221.56,-435.93 226.71,-426.67 216.91,-430.71 221.56,-435.93"/>
|
|
63
|
+
</g>
|
|
64
|
+
<!-- LeftTask1 -->
|
|
65
|
+
<g id="node5" class="node">
|
|
66
|
+
<title>LeftTask1</title>
|
|
67
|
+
<polygon fill="none" stroke="black" points="129,-354.49 43,-354.49 43,-318.49 129,-318.49 129,-354.49"/>
|
|
68
|
+
<text text-anchor="middle" x="86" y="-332.79" font-family="Times,serif" font-size="14.00">LeftTask1</text>
|
|
69
|
+
</g>
|
|
70
|
+
<!-- LeftGroup_Start->LeftTask1 -->
|
|
71
|
+
<g id="edge4" class="edge">
|
|
72
|
+
<title>LeftGroup_Start->LeftTask1</title>
|
|
73
|
+
<path fill="none" stroke="black" d="M83.74,-390.19C84.07,-382.48 84.47,-373.21 84.84,-364.61"/>
|
|
74
|
+
<polygon fill="black" stroke="black" points="88.34,-364.74 85.27,-354.6 81.34,-364.44 88.34,-364.74"/>
|
|
75
|
+
</g>
|
|
76
|
+
<!-- RightTask1 -->
|
|
77
|
+
<g id="node8" class="node">
|
|
78
|
+
<title>RightTask1</title>
|
|
79
|
+
<polygon fill="none" stroke="black" points="288.5,-354.49 191.5,-354.49 191.5,-318.49 288.5,-318.49 288.5,-354.49"/>
|
|
80
|
+
<text text-anchor="middle" x="240" y="-332.79" font-family="Times,serif" font-size="14.00">RightTask1</text>
|
|
81
|
+
</g>
|
|
82
|
+
<!-- RightGroup_Start->RightTask1 -->
|
|
83
|
+
<g id="edge7" class="edge">
|
|
84
|
+
<title>RightGroup_Start->RightTask1</title>
|
|
85
|
+
<path fill="none" stroke="black" d="M244.52,-390.19C243.86,-382.48 243.06,-373.21 242.32,-364.61"/>
|
|
86
|
+
<polygon fill="black" stroke="black" points="245.81,-364.26 241.47,-354.6 238.83,-364.86 245.81,-364.26"/>
|
|
87
|
+
</g>
|
|
88
|
+
<!-- LeftTask2 -->
|
|
89
|
+
<g id="node6" class="node">
|
|
90
|
+
<title>LeftTask2</title>
|
|
91
|
+
<polygon fill="none" stroke="black" points="141,-282.49 55,-282.49 55,-246.49 141,-246.49 141,-282.49"/>
|
|
92
|
+
<text text-anchor="middle" x="98" y="-260.79" font-family="Times,serif" font-size="14.00">LeftTask2</text>
|
|
93
|
+
</g>
|
|
94
|
+
<!-- LeftTask1->LeftTask2 -->
|
|
95
|
+
<g id="edge5" class="edge">
|
|
96
|
+
<title>LeftTask1->LeftTask2</title>
|
|
97
|
+
<path fill="none" stroke="black" d="M88.97,-318.19C90.29,-310.48 91.88,-301.21 93.35,-292.61"/>
|
|
98
|
+
<polygon fill="black" stroke="black" points="96.83,-293.05 95.07,-282.6 89.93,-291.86 96.83,-293.05"/>
|
|
99
|
+
</g>
|
|
100
|
+
<!-- LeftDone -->
|
|
101
|
+
<g id="node7" class="node">
|
|
102
|
+
<title>LeftDone</title>
|
|
103
|
+
<polygon fill="none" stroke="black" points="146,-210.49 64,-210.49 64,-174.49 146,-174.49 146,-210.49"/>
|
|
104
|
+
<text text-anchor="middle" x="105" y="-188.79" font-family="Times,serif" font-size="14.00">LeftDone</text>
|
|
105
|
+
</g>
|
|
106
|
+
<!-- LeftTask2->LeftDone -->
|
|
107
|
+
<g id="edge6" class="edge">
|
|
108
|
+
<title>LeftTask2->LeftDone</title>
|
|
109
|
+
<path fill="none" stroke="black" d="M99.73,-246.19C100.5,-238.48 101.43,-229.21 102.29,-220.61"/>
|
|
110
|
+
<polygon fill="black" stroke="black" points="105.78,-220.9 103.29,-210.6 98.81,-220.2 105.78,-220.9"/>
|
|
111
|
+
</g>
|
|
112
|
+
<!-- Merge -->
|
|
113
|
+
<g id="node11" class="node">
|
|
114
|
+
<title>Merge</title>
|
|
115
|
+
<polygon fill="none" stroke="black" points="202.5,-138.49 139.5,-138.49 139.5,-102.49 202.5,-102.49 202.5,-138.49"/>
|
|
116
|
+
<text text-anchor="middle" x="171" y="-116.79" font-family="Times,serif" font-size="14.00">Merge</text>
|
|
117
|
+
</g>
|
|
118
|
+
<!-- LeftDone->Merge -->
|
|
119
|
+
<g id="edge10" class="edge">
|
|
120
|
+
<title>LeftDone->Merge</title>
|
|
121
|
+
<path fill="none" stroke="black" d="M121.31,-174.19C129.31,-165.71 139.07,-155.36 147.82,-146.08"/>
|
|
122
|
+
<polygon fill="black" stroke="black" points="150.56,-148.28 154.87,-138.6 145.47,-143.47 150.56,-148.28"/>
|
|
123
|
+
</g>
|
|
124
|
+
<!-- RightTask2 -->
|
|
125
|
+
<g id="node9" class="node">
|
|
126
|
+
<title>RightTask2</title>
|
|
127
|
+
<polygon fill="none" stroke="black" points="282.5,-282.49 185.5,-282.49 185.5,-246.49 282.5,-246.49 282.5,-282.49"/>
|
|
128
|
+
<text text-anchor="middle" x="234" y="-260.79" font-family="Times,serif" font-size="14.00">RightTask2</text>
|
|
129
|
+
</g>
|
|
130
|
+
<!-- RightTask1->RightTask2 -->
|
|
131
|
+
<g id="edge8" class="edge">
|
|
132
|
+
<title>RightTask1->RightTask2</title>
|
|
133
|
+
<path fill="none" stroke="black" d="M238.52,-318.19C237.86,-310.48 237.06,-301.21 236.32,-292.61"/>
|
|
134
|
+
<polygon fill="black" stroke="black" points="239.81,-292.26 235.47,-282.6 232.83,-292.86 239.81,-292.26"/>
|
|
135
|
+
</g>
|
|
136
|
+
<!-- RightDone -->
|
|
137
|
+
<g id="node10" class="node">
|
|
138
|
+
<title>RightDone</title>
|
|
139
|
+
<polygon fill="none" stroke="black" points="273,-210.49 181,-210.49 181,-174.49 273,-174.49 273,-210.49"/>
|
|
140
|
+
<text text-anchor="middle" x="227" y="-188.79" font-family="Times,serif" font-size="14.00">RightDone</text>
|
|
141
|
+
</g>
|
|
142
|
+
<!-- RightTask2->RightDone -->
|
|
143
|
+
<g id="edge9" class="edge">
|
|
144
|
+
<title>RightTask2->RightDone</title>
|
|
145
|
+
<path fill="none" stroke="black" d="M232.27,-246.19C231.5,-238.48 230.57,-229.21 229.71,-220.61"/>
|
|
146
|
+
<polygon fill="black" stroke="black" points="233.19,-220.2 228.71,-210.6 226.22,-220.9 233.19,-220.2"/>
|
|
147
|
+
</g>
|
|
148
|
+
<!-- RightDone->Merge -->
|
|
149
|
+
<g id="edge11" class="edge">
|
|
150
|
+
<title>RightDone->Merge</title>
|
|
151
|
+
<path fill="none" stroke="black" d="M213.16,-174.19C206.51,-165.88 198.42,-155.77 191.11,-146.64"/>
|
|
152
|
+
<polygon fill="black" stroke="black" points="193.66,-144.22 184.68,-138.6 188.2,-148.59 193.66,-144.22"/>
|
|
153
|
+
</g>
|
|
154
|
+
<!-- End -->
|
|
155
|
+
<g id="node12" class="node">
|
|
156
|
+
<title>End</title>
|
|
157
|
+
<ellipse fill="none" stroke="black" cx="171" cy="-33.25" rx="29.47" ry="29.47"/>
|
|
158
|
+
<ellipse fill="none" stroke="black" cx="171" cy="-33.25" rx="33.5" ry="33.5"/>
|
|
159
|
+
<text text-anchor="middle" x="171" y="-29.55" font-family="Times,serif" font-size="14.00">End</text>
|
|
160
|
+
</g>
|
|
161
|
+
<!-- Merge->End -->
|
|
162
|
+
<g id="edge12" class="edge">
|
|
163
|
+
<title>Merge->End</title>
|
|
164
|
+
<path fill="none" stroke="black" d="M171,-102.24C171,-94.82 171,-85.78 171,-76.75"/>
|
|
165
|
+
<polygon fill="black" stroke="black" points="174.5,-76.65 171,-66.65 167.5,-76.65 174.5,-76.65"/>
|
|
166
|
+
</g>
|
|
167
|
+
</g>
|
|
168
|
+
</svg>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
3
|
+
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<!-- Generated by graphviz version 2.43.0 (0)
|
|
5
|
+
-->
|
|
6
|
+
<!-- Title: TrafficLightStateMachine Pages: 1 -->
|
|
7
|
+
<svg width="466pt" height="143pt"
|
|
8
|
+
viewBox="0.00 0.00 465.78 143.29" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
+
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 139.29)">
|
|
10
|
+
<title>TrafficLightStateMachine</title>
|
|
11
|
+
<polygon fill="white" stroke="transparent" points="-4,4 -4,-139.29 461.78,-139.29 461.78,4 -4,4"/>
|
|
12
|
+
<!-- Red -->
|
|
13
|
+
<g id="node1" class="node">
|
|
14
|
+
<title>Red</title>
|
|
15
|
+
<ellipse fill="none" stroke="black" cx="118.6" cy="-40.3" rx="28.7" ry="28.7"/>
|
|
16
|
+
<text text-anchor="middle" x="118.6" y="-36.6" font-family="Times,serif" font-size="14.00">Red</text>
|
|
17
|
+
</g>
|
|
18
|
+
<!-- Green -->
|
|
19
|
+
<g id="node2" class="node">
|
|
20
|
+
<title>Green</title>
|
|
21
|
+
<ellipse fill="none" stroke="black" cx="262.19" cy="-96.3" rx="38.99" ry="38.99"/>
|
|
22
|
+
<text text-anchor="middle" x="262.19" y="-92.6" font-family="Times,serif" font-size="14.00">Green</text>
|
|
23
|
+
</g>
|
|
24
|
+
<!-- Red->Green -->
|
|
25
|
+
<g id="edge1" class="edge">
|
|
26
|
+
<title>Red->Green</title>
|
|
27
|
+
<path fill="none" stroke="black" d="M145.57,-50.57C165.36,-58.39 193.08,-69.36 216.42,-78.59"/>
|
|
28
|
+
<polygon fill="black" stroke="black" points="215.2,-81.87 225.79,-82.29 217.77,-75.36 215.2,-81.87"/>
|
|
29
|
+
<text text-anchor="middle" x="185.19" y="-77.1" font-family="Times,serif" font-size="14.00">timer</text>
|
|
30
|
+
</g>
|
|
31
|
+
<!-- Yellow -->
|
|
32
|
+
<g id="node3" class="node">
|
|
33
|
+
<title>Yellow</title>
|
|
34
|
+
<ellipse fill="none" stroke="black" cx="417.48" cy="-40.3" rx="40.09" ry="40.09"/>
|
|
35
|
+
<text text-anchor="middle" x="417.48" y="-36.6" font-family="Times,serif" font-size="14.00">Yellow</text>
|
|
36
|
+
</g>
|
|
37
|
+
<!-- Green->Yellow -->
|
|
38
|
+
<g id="edge2" class="edge">
|
|
39
|
+
<title>Green->Yellow</title>
|
|
40
|
+
<path fill="none" stroke="black" d="M299.13,-83.17C320.27,-75.44 347.23,-65.6 369.98,-57.29"/>
|
|
41
|
+
<polygon fill="black" stroke="black" points="371.24,-60.55 379.44,-53.83 368.84,-53.97 371.24,-60.55"/>
|
|
42
|
+
<text text-anchor="middle" x="339.19" y="-78.1" font-family="Times,serif" font-size="14.00">timer</text>
|
|
43
|
+
</g>
|
|
44
|
+
<!-- Yellow->Red -->
|
|
45
|
+
<g id="edge3" class="edge">
|
|
46
|
+
<title>Yellow->Red</title>
|
|
47
|
+
<path fill="none" stroke="black" d="M377.29,-37.33C354.99,-35.78 326.54,-34.07 301.19,-33.3 266.54,-32.25 257.84,-32.13 223.19,-33.3 201.36,-34.03 176.97,-35.64 157.35,-37.13"/>
|
|
48
|
+
<polygon fill="black" stroke="black" points="156.97,-33.65 147.27,-37.92 157.52,-40.63 156.97,-33.65"/>
|
|
49
|
+
<text text-anchor="middle" x="262.19" y="-37.1" font-family="Times,serif" font-size="14.00">timer</text>
|
|
50
|
+
</g>
|
|
51
|
+
<!-- Start -->
|
|
52
|
+
<g id="node4" class="node">
|
|
53
|
+
<title>Start</title>
|
|
54
|
+
<polygon fill="none" stroke="black" points="53,-66.8 0,-66.8 0,-13.8 53,-13.8 53,-66.8"/>
|
|
55
|
+
<text text-anchor="middle" x="26.5" y="-36.6" font-family="Times,serif" font-size="14.00">Start</text>
|
|
56
|
+
</g>
|
|
57
|
+
<!-- Start->Red -->
|
|
58
|
+
<g id="edge4" class="edge">
|
|
59
|
+
<title>Start->Red</title>
|
|
60
|
+
<path fill="none" stroke="black" d="M53.08,-40.3C61.3,-40.3 70.6,-40.3 79.53,-40.3"/>
|
|
61
|
+
<polygon fill="black" stroke="black" points="79.75,-43.8 89.75,-40.3 79.75,-36.8 79.75,-43.8"/>
|
|
62
|
+
</g>
|
|
63
|
+
</g>
|
|
64
|
+
</svg>
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
#!/usr/bin/python3
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
from PyQt5.QtWidgets import (
|
|
6
|
+
QDialog,
|
|
7
|
+
QVBoxLayout,
|
|
8
|
+
QHBoxLayout,
|
|
9
|
+
QListWidget,
|
|
10
|
+
QListWidgetItem,
|
|
11
|
+
QLabel,
|
|
12
|
+
QPushButton,
|
|
13
|
+
QSpinBox,
|
|
14
|
+
QWidget,
|
|
15
|
+
QSizePolicy
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
from PyQt5.QtGui import QIcon, QPixmap, QPainter
|
|
19
|
+
from PyQt5.QtCore import Qt, QSize, QRectF, QTimer
|
|
20
|
+
from PyQt5.QtSvg import QSvgRenderer
|
|
21
|
+
|
|
22
|
+
# ------------------------------------------------------------
|
|
23
|
+
# SVG thumbnail helper
|
|
24
|
+
# ------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
def svg_to_pixmap(svg_path, width=180, height=140):
|
|
27
|
+
|
|
28
|
+
renderer = QSvgRenderer(svg_path)
|
|
29
|
+
|
|
30
|
+
default_size = renderer.defaultSize()
|
|
31
|
+
|
|
32
|
+
if default_size.width() <= 0 or default_size.height() <= 0:
|
|
33
|
+
default_size = QSize(100, 100)
|
|
34
|
+
|
|
35
|
+
# calcula escala preservando aspect ratio
|
|
36
|
+
scale = min(
|
|
37
|
+
width / default_size.width(),
|
|
38
|
+
height / default_size.height()
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
new_width = int(default_size.width() * scale)
|
|
42
|
+
new_height = int(default_size.height() * scale)
|
|
43
|
+
|
|
44
|
+
pixmap = QPixmap(width, height)
|
|
45
|
+
pixmap.fill(Qt.transparent)
|
|
46
|
+
|
|
47
|
+
painter = QPainter(pixmap)
|
|
48
|
+
|
|
49
|
+
# centraliza
|
|
50
|
+
x = (width - new_width) // 2
|
|
51
|
+
y = (height - new_height) // 2
|
|
52
|
+
|
|
53
|
+
renderer.render(
|
|
54
|
+
painter,
|
|
55
|
+
QRectF(x, y, new_width, new_height)
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
painter.end()
|
|
59
|
+
|
|
60
|
+
return pixmap
|
|
61
|
+
|
|
62
|
+
# ------------------------------------------------------------
|
|
63
|
+
# Main dialog
|
|
64
|
+
# ------------------------------------------------------------
|
|
65
|
+
|
|
66
|
+
class ExampleSelectorDialog(QDialog):
|
|
67
|
+
|
|
68
|
+
def __init__(self, dir_base, parent=None):
|
|
69
|
+
super().__init__(parent)
|
|
70
|
+
|
|
71
|
+
self.dir_base = os.path.abspath(dir_base)
|
|
72
|
+
self.selected_svg = None
|
|
73
|
+
|
|
74
|
+
self.setWindowTitle("Select example")
|
|
75
|
+
self.resize(1100, 700)
|
|
76
|
+
|
|
77
|
+
self.main_layout = QVBoxLayout(self)
|
|
78
|
+
|
|
79
|
+
# ----------------------------------------------------
|
|
80
|
+
# top controls
|
|
81
|
+
# ----------------------------------------------------
|
|
82
|
+
|
|
83
|
+
controls_layout = QHBoxLayout()
|
|
84
|
+
|
|
85
|
+
label = QLabel("Columns:")
|
|
86
|
+
self.columns_spin = QSpinBox()
|
|
87
|
+
self.columns_spin.setMinimum(1)
|
|
88
|
+
self.columns_spin.setMaximum(12)
|
|
89
|
+
self.columns_spin.setValue(4)
|
|
90
|
+
|
|
91
|
+
self.columns_spin.valueChanged.connect(self.update_grid_size)
|
|
92
|
+
|
|
93
|
+
controls_layout.addWidget(label)
|
|
94
|
+
controls_layout.addWidget(self.columns_spin)
|
|
95
|
+
controls_layout.addStretch()
|
|
96
|
+
|
|
97
|
+
self.main_layout.addLayout(controls_layout)
|
|
98
|
+
|
|
99
|
+
# ----------------------------------------------------
|
|
100
|
+
# list widget
|
|
101
|
+
# ----------------------------------------------------
|
|
102
|
+
|
|
103
|
+
self.list_widget = QListWidget()
|
|
104
|
+
|
|
105
|
+
self.list_widget.setViewMode(QListWidget.IconMode)
|
|
106
|
+
self.list_widget.setResizeMode(QListWidget.Adjust)
|
|
107
|
+
self.list_widget.setMovement(QListWidget.Static)
|
|
108
|
+
|
|
109
|
+
self.list_widget.setSpacing(16)
|
|
110
|
+
|
|
111
|
+
self.list_widget.setSelectionMode(QListWidget.SingleSelection)
|
|
112
|
+
|
|
113
|
+
self.list_widget.itemDoubleClicked.connect(self.accept)
|
|
114
|
+
|
|
115
|
+
self.main_layout.addWidget(self.list_widget)
|
|
116
|
+
|
|
117
|
+
# ----------------------------------------------------
|
|
118
|
+
# buttons
|
|
119
|
+
# ----------------------------------------------------
|
|
120
|
+
|
|
121
|
+
buttons_layout = QHBoxLayout()
|
|
122
|
+
|
|
123
|
+
buttons_layout.addStretch()
|
|
124
|
+
|
|
125
|
+
self.ok_button = QPushButton("OK")
|
|
126
|
+
self.cancel_button = QPushButton("Cancel")
|
|
127
|
+
|
|
128
|
+
self.ok_button.clicked.connect(self.accept)
|
|
129
|
+
self.cancel_button.clicked.connect(self.reject)
|
|
130
|
+
|
|
131
|
+
buttons_layout.addWidget(self.ok_button)
|
|
132
|
+
buttons_layout.addWidget(self.cancel_button)
|
|
133
|
+
|
|
134
|
+
self.main_layout.addLayout(buttons_layout)
|
|
135
|
+
|
|
136
|
+
# load content
|
|
137
|
+
self.populate()
|
|
138
|
+
|
|
139
|
+
# initial grid update
|
|
140
|
+
QTimer.singleShot(0, self.update_grid_size)
|
|
141
|
+
# --------------------------------------------------------
|
|
142
|
+
|
|
143
|
+
def populate(self):
|
|
144
|
+
|
|
145
|
+
self.list_widget.clear()
|
|
146
|
+
|
|
147
|
+
if not os.path.isdir(self.dir_base):
|
|
148
|
+
return
|
|
149
|
+
|
|
150
|
+
files = sorted(os.listdir(self.dir_base))
|
|
151
|
+
|
|
152
|
+
for filename in files:
|
|
153
|
+
|
|
154
|
+
if not filename.lower().endswith(".svg"):
|
|
155
|
+
continue
|
|
156
|
+
|
|
157
|
+
svg_path = os.path.join(self.dir_base, filename)
|
|
158
|
+
|
|
159
|
+
item = QListWidgetItem()
|
|
160
|
+
|
|
161
|
+
item.setText(os.path.splitext(filename)[0])
|
|
162
|
+
|
|
163
|
+
item.setData(Qt.UserRole, svg_path)
|
|
164
|
+
|
|
165
|
+
item.setTextAlignment(Qt.AlignCenter)
|
|
166
|
+
|
|
167
|
+
self.list_widget.addItem(item)
|
|
168
|
+
# --------------------------------------------------------
|
|
169
|
+
|
|
170
|
+
def update_grid_size(self):
|
|
171
|
+
|
|
172
|
+
columns = self.columns_spin.value()
|
|
173
|
+
|
|
174
|
+
viewport_width = self.list_widget.viewport().width()
|
|
175
|
+
|
|
176
|
+
spacing = self.list_widget.spacing()
|
|
177
|
+
|
|
178
|
+
total_spacing = spacing * (columns + 1)
|
|
179
|
+
|
|
180
|
+
cell_width = int((viewport_width - total_spacing) / columns)
|
|
181
|
+
|
|
182
|
+
cell_width = max(140, cell_width)
|
|
183
|
+
|
|
184
|
+
thumbnail_width = cell_width - 20
|
|
185
|
+
thumbnail_height = int(cell_width * 0.75)
|
|
186
|
+
|
|
187
|
+
icon_size = QSize(
|
|
188
|
+
thumbnail_width,
|
|
189
|
+
thumbnail_height
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
grid_size = QSize(
|
|
193
|
+
cell_width,
|
|
194
|
+
thumbnail_height + 50
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
self.list_widget.setIconSize(icon_size)
|
|
198
|
+
self.list_widget.setGridSize(grid_size)
|
|
199
|
+
|
|
200
|
+
# ----------------------------------------------------
|
|
201
|
+
# regenerate thumbnails
|
|
202
|
+
# ----------------------------------------------------
|
|
203
|
+
|
|
204
|
+
for i in range(self.list_widget.count()):
|
|
205
|
+
|
|
206
|
+
item = self.list_widget.item(i)
|
|
207
|
+
|
|
208
|
+
svg_path = item.data(Qt.UserRole)
|
|
209
|
+
|
|
210
|
+
pixmap = svg_to_pixmap(
|
|
211
|
+
svg_path,
|
|
212
|
+
width=thumbnail_width,
|
|
213
|
+
height=thumbnail_height
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
item.setIcon(QIcon(pixmap))
|
|
217
|
+
# --------------------------------------------------------
|
|
218
|
+
|
|
219
|
+
def resizeEvent(self, event):
|
|
220
|
+
|
|
221
|
+
super().resizeEvent(event)
|
|
222
|
+
|
|
223
|
+
self.update_grid_size()
|
|
224
|
+
|
|
225
|
+
# --------------------------------------------------------
|
|
226
|
+
|
|
227
|
+
def get_selected_dot_path(self):
|
|
228
|
+
|
|
229
|
+
item = self.list_widget.currentItem()
|
|
230
|
+
|
|
231
|
+
if item is None:
|
|
232
|
+
return ""
|
|
233
|
+
|
|
234
|
+
svg_path = item.data(Qt.UserRole)
|
|
235
|
+
|
|
236
|
+
dot_path = os.path.splitext(svg_path)[0] + ".dot"
|
|
237
|
+
|
|
238
|
+
return dot_path
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
# ------------------------------------------------------------
|
|
242
|
+
# public function
|
|
243
|
+
# ------------------------------------------------------------
|
|
244
|
+
|
|
245
|
+
def open_window_example_selector(dir_base, parent=None):
|
|
246
|
+
|
|
247
|
+
dialog = ExampleSelectorDialog(
|
|
248
|
+
dir_base=dir_base,
|
|
249
|
+
parent=parent
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
result = dialog.exec_()
|
|
253
|
+
|
|
254
|
+
if result == QDialog.Accepted:
|
|
255
|
+
return dialog.get_selected_dot_path()
|
|
256
|
+
|
|
257
|
+
return ""
|
|
@@ -26,6 +26,7 @@ import graphviz_code_viewer.modules.configure as configure
|
|
|
26
26
|
from graphviz_code_viewer.desktop import create_desktop_file, create_desktop_directory, create_desktop_menu
|
|
27
27
|
from graphviz_code_viewer.modules.wabout import show_about_window
|
|
28
28
|
from graphviz_code_viewer.modules.resources import resource_path
|
|
29
|
+
from graphviz_code_viewer.modules.example_selector import open_window_example_selector
|
|
29
30
|
|
|
30
31
|
# ------------------------------------------------------------------------------
|
|
31
32
|
# Path to config file
|
|
@@ -44,6 +45,8 @@ DEFAULT_CONTENT={ "error_loading_svg": "Error loading SVG file",
|
|
|
44
45
|
"action_saveas_tooltip": "Save the DOT file as",
|
|
45
46
|
"action_saveimg":"Save image",
|
|
46
47
|
"action_saveimg_tooltip": "Save the output as binary or vector image (SVG,PNG,PDF)",
|
|
48
|
+
"action_load_example": "Load example",
|
|
49
|
+
"action_load_example_tooltip": "Select and load a example code",
|
|
47
50
|
"action_configure_window": "Conf. window",
|
|
48
51
|
"action_configure_window_tooltip": "Open the configure window Json file",
|
|
49
52
|
"action_configure_editor": "Conf. Editor",
|
|
@@ -78,6 +81,7 @@ CONFIG_EDITOR_PATH = os.path.join(os.path.expanduser("~"),".config",about.__pack
|
|
|
78
81
|
|
|
79
82
|
DEFAULT_EDITOR_CONTENT= { "font_size": 11,
|
|
80
83
|
"font_name": "Monospace",
|
|
84
|
+
"tab_size": 4,
|
|
81
85
|
"save_file": "Ctrl+S",
|
|
82
86
|
"find_text": "Ctrl+F",
|
|
83
87
|
"syntax_rules": {
|
|
@@ -235,6 +239,9 @@ class TextEditor(QPlainTextEdit):
|
|
|
235
239
|
self.setLineWrapMode(QPlainTextEdit.NoWrap)
|
|
236
240
|
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)
|
|
237
241
|
|
|
242
|
+
# tab
|
|
243
|
+
self.setTabStopDistance(CONFIG_EDITOR["tab_size"] * self.fontMetrics().horizontalAdvance(' '))
|
|
244
|
+
|
|
238
245
|
# Filtro de busca
|
|
239
246
|
self.search_bar = QLineEdit(self)
|
|
240
247
|
self.search_bar.setPlaceholderText("Buscar...")
|
|
@@ -301,8 +308,20 @@ class TextEditor(QPlainTextEdit):
|
|
|
301
308
|
self.toggle_search_bar()
|
|
302
309
|
return
|
|
303
310
|
|
|
311
|
+
if event.key() == Qt.Key_Tab:
|
|
312
|
+
self.insertPlainText(CONFIG_EDITOR["tab_size"]*" ") # 4 espaços
|
|
313
|
+
return
|
|
314
|
+
|
|
304
315
|
super().keyPressEvent(event)
|
|
305
316
|
|
|
317
|
+
def insertFromMimeData(self, source):
|
|
318
|
+
text = source.text()
|
|
319
|
+
|
|
320
|
+
# converte TABs para espaços
|
|
321
|
+
text = text.replace("\t", " " * CONFIG_EDITOR["tab_size"])
|
|
322
|
+
|
|
323
|
+
self.insertPlainText(text)
|
|
324
|
+
|
|
306
325
|
def toggle_search_bar(self):
|
|
307
326
|
if self.search_bar.isVisible():
|
|
308
327
|
self.search_bar.hide()
|
|
@@ -374,6 +393,7 @@ class MainWindow(QMainWindow):
|
|
|
374
393
|
self.icon_path = resource_path("icons", "logo.png")
|
|
375
394
|
self.setWindowIcon(QIcon(self.icon_path))
|
|
376
395
|
|
|
396
|
+
self.data_path = resource_path("data")
|
|
377
397
|
|
|
378
398
|
# Toolbar
|
|
379
399
|
self.func_toolbar()
|
|
@@ -501,8 +521,16 @@ class MainWindow(QMainWindow):
|
|
|
501
521
|
|
|
502
522
|
# Adicionar o espaçador
|
|
503
523
|
spacer = QWidget()
|
|
504
|
-
spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.
|
|
524
|
+
spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
|
|
505
525
|
toolbar.addWidget(spacer)
|
|
526
|
+
|
|
527
|
+
#
|
|
528
|
+
self.load_example_action = QAction( QIcon(resource_path("icons", "image.png")),
|
|
529
|
+
CONFIG["action_load_example"],
|
|
530
|
+
self)
|
|
531
|
+
self.load_example_action.setToolTip(CONFIG["action_load_example_tooltip"])
|
|
532
|
+
self.load_example_action.triggered.connect(self.load_example)
|
|
533
|
+
toolbar.addAction(self.load_example_action)
|
|
506
534
|
|
|
507
535
|
#
|
|
508
536
|
self.configure_editor_action = QAction( QIcon(resource_path("icons", "text-configure.png")),
|
|
@@ -536,6 +564,7 @@ class MainWindow(QMainWindow):
|
|
|
536
564
|
self.coffee_action.triggered.connect(self.on_coffee_action_click)
|
|
537
565
|
toolbar.addAction(self.coffee_action)
|
|
538
566
|
|
|
567
|
+
|
|
539
568
|
def on_coffee_action_click(self):
|
|
540
569
|
QDesktopServices.openUrl(QUrl("https://ko-fi.com/trucomanx"))
|
|
541
570
|
|
|
@@ -574,7 +603,7 @@ class MainWindow(QMainWindow):
|
|
|
574
603
|
|
|
575
604
|
# Nome sugerido baseado no .dot
|
|
576
605
|
if self.input_filepath:
|
|
577
|
-
base = os.path.splitext(
|
|
606
|
+
base = os.path.splitext(self.input_filepath)[0]
|
|
578
607
|
default_name = base + ".svg"
|
|
579
608
|
else:
|
|
580
609
|
default_name = "graph.svg"
|
|
@@ -635,10 +664,15 @@ class MainWindow(QMainWindow):
|
|
|
635
664
|
|
|
636
665
|
if not os.path.exists(filepath):
|
|
637
666
|
# Abre uma caixa de diálogo para selecionar arquivos .dot
|
|
667
|
+
filepath = os.path.abspath(self.file_path_edit.text())
|
|
668
|
+
directory = os.path.dirname(filepath)
|
|
669
|
+
if not os.path.isdir(directory):
|
|
670
|
+
directory = ""
|
|
671
|
+
|
|
638
672
|
filepath, _ = QFileDialog.getOpenFileName(
|
|
639
673
|
self,
|
|
640
674
|
CONFIG["open_dot_file"],
|
|
641
|
-
|
|
675
|
+
directory,
|
|
642
676
|
CONFIG["dot_file_dot"]
|
|
643
677
|
)
|
|
644
678
|
|
|
@@ -649,7 +683,9 @@ class MainWindow(QMainWindow):
|
|
|
649
683
|
self.editor.setPlainText(content) # carrega o conteúdo no QPlainTextEdit
|
|
650
684
|
self.input_filepath=str(filepath)
|
|
651
685
|
self.update_filepath_ui()
|
|
686
|
+
self.compile_dot()
|
|
652
687
|
self.status.showMessage(CONFIG["loaded_file"]+" "+self.input_filepath, 5000)
|
|
688
|
+
|
|
653
689
|
except Exception as e:
|
|
654
690
|
print(CONFIG["error_opening_dot_file"]+f"{e}")
|
|
655
691
|
|
|
@@ -665,10 +701,15 @@ class MainWindow(QMainWindow):
|
|
|
665
701
|
|
|
666
702
|
# Se path não foi fornecido ou não existe, abre diálogo para salvar
|
|
667
703
|
if not path or len(path)==0:
|
|
704
|
+
filepath = os.path.abspath(self.file_path_edit.text())
|
|
705
|
+
directory = os.path.dirname(filepath)
|
|
706
|
+
if not os.path.isdir(directory):
|
|
707
|
+
directory = ""
|
|
708
|
+
|
|
668
709
|
path, _ = QFileDialog.getSaveFileName(
|
|
669
710
|
self,
|
|
670
711
|
CONFIG["save_dot_file"],
|
|
671
|
-
|
|
712
|
+
directory,
|
|
672
713
|
CONFIG["dot_file_dot"]
|
|
673
714
|
)
|
|
674
715
|
|
|
@@ -690,6 +731,20 @@ class MainWindow(QMainWindow):
|
|
|
690
731
|
self.input_filepath = str(path)
|
|
691
732
|
|
|
692
733
|
self.update_filepath_ui()
|
|
734
|
+
|
|
735
|
+
def load_example(self):
|
|
736
|
+
content=""
|
|
737
|
+
example_path = open_window_example_selector(
|
|
738
|
+
dir_base=self.data_path,
|
|
739
|
+
parent=self
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
if os.path.isfile(example_path):
|
|
743
|
+
with open(example_path, "r", encoding="utf-8") as f:
|
|
744
|
+
content = f.read()
|
|
745
|
+
|
|
746
|
+
self.editor.setPlainText(content)
|
|
747
|
+
self.compile_dot()
|
|
693
748
|
|
|
694
749
|
def compile_dot(self):
|
|
695
750
|
dot_code = self.editor.toPlainText()
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: graphviz_code_viewer
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Program to edit and view Graphviz code.
|
|
5
5
|
Author-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
|
|
6
6
|
Maintainer-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/SOURCES.txt
RENAMED
|
@@ -11,6 +11,14 @@ graphviz_code_viewer.egg-info/dependency_links.txt
|
|
|
11
11
|
graphviz_code_viewer.egg-info/entry_points.txt
|
|
12
12
|
graphviz_code_viewer.egg-info/requires.txt
|
|
13
13
|
graphviz_code_viewer.egg-info/top_level.txt
|
|
14
|
+
graphviz_code_viewer/data/LoginStateMachine.dot
|
|
15
|
+
graphviz_code_viewer/data/LoginStateMachine.svg
|
|
16
|
+
graphviz_code_viewer/data/ParallelGroupsLR.dot
|
|
17
|
+
graphviz_code_viewer/data/ParallelGroupsLR.svg
|
|
18
|
+
graphviz_code_viewer/data/ParallelGroupsTB.dot
|
|
19
|
+
graphviz_code_viewer/data/ParallelGroupsTB.svg
|
|
20
|
+
graphviz_code_viewer/data/TrafficLightStateMachine.dot
|
|
21
|
+
graphviz_code_viewer/data/TrafficLightStateMachine.svg
|
|
14
22
|
graphviz_code_viewer/icons/document-open.png
|
|
15
23
|
graphviz_code_viewer/icons/download-green.png
|
|
16
24
|
graphviz_code_viewer/icons/download.png
|
|
@@ -22,5 +30,6 @@ graphviz_code_viewer/icons/system-run.png
|
|
|
22
30
|
graphviz_code_viewer/icons/text-configure.png
|
|
23
31
|
graphviz_code_viewer/modules/__init__.py
|
|
24
32
|
graphviz_code_viewer/modules/configure.py
|
|
33
|
+
graphviz_code_viewer/modules/example_selector.py
|
|
25
34
|
graphviz_code_viewer/modules/resources.py
|
|
26
35
|
graphviz_code_viewer/modules/wabout.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "graphviz_code_viewer"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.5"
|
|
8
8
|
description = "Program to edit and view Graphviz code."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Fernando Pujaico Rivera", email = "fernando.pujaico.rivera@gmail.com"}]
|
|
@@ -35,4 +35,4 @@ dependencies = [
|
|
|
35
35
|
packages = ["graphviz_code_viewer", "graphviz_code_viewer.modules"]
|
|
36
36
|
|
|
37
37
|
[tool.setuptools.package-data]
|
|
38
|
-
"graphviz_code_viewer" = ["icons/*.png"]
|
|
38
|
+
"graphviz_code_viewer" = ["icons/*.png", "data/*.svg", "data/*.dot"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/download.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/emote-love.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/image.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/logo.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/status_help.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/icons/system-run.png
RENAMED
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/__init__.py
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/configure.py
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/resources.py
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer/modules/wabout.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.4 → graphviz_code_viewer-0.1.5}/graphviz_code_viewer.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|