graphviz-code-viewer 0.1.6__tar.gz → 0.1.7__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.6 → graphviz_code_viewer-0.1.7}/PKG-INFO +1 -1
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/about.py +1 -1
- graphviz_code_viewer-0.1.7/graphviz_code_viewer/data/gradient1.dot +19 -0
- graphviz_code_viewer-0.1.7/graphviz_code_viewer/data/gradient1.svg +68 -0
- graphviz_code_viewer-0.1.7/graphviz_code_viewer/data/gradient2.dot +46 -0
- graphviz_code_viewer-0.1.7/graphviz_code_viewer/data/gradient2.svg +339 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/program.py +92 -4
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/PKG-INFO +1 -1
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/SOURCES.txt +4 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/pyproject.toml +1 -1
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/LICENSE +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/README.md +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/__init__.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/LoginStateMachine.dot +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/LoginStateMachine.svg +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/ParallelGroupsLR.dot +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/ParallelGroupsLR.svg +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/ParallelGroupsTB.dot +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/ParallelGroupsTB.svg +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/TrafficLightStateMachine.dot +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/data/TrafficLightStateMachine.svg +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/desktop.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/document-open.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/download-green.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/download.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/emote-love.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/image.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/logo.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/logo.svg +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/status_help.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/system-run.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/text-configure.png +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/__init__.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/configure.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/example_selector.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/resources.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/wabout.py +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/dependency_links.txt +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/entry_points.txt +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/requires.txt +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/top_level.txt +0 -0
- {graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/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.7
|
|
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,19 @@
|
|
|
1
|
+
digraph G {
|
|
2
|
+
fontname="Helvetica,Arial,sans-serif"
|
|
3
|
+
node [fontname="Helvetica,Arial,sans-serif"]
|
|
4
|
+
edge [fontname="Helvetica,Arial,sans-serif"]
|
|
5
|
+
|
|
6
|
+
a0 [shape=none label=<
|
|
7
|
+
<TABLE border="0" cellspacing="10" cellpadding="10" style="rounded" bgcolor="/rdylgn11/1:/rdylgn11/11" gradientangle="315">
|
|
8
|
+
<TR>
|
|
9
|
+
<TD bgcolor="/rdylgn11/1:/rdylgn11/2">00</TD>
|
|
10
|
+
<TD bgcolor="/rdylgn11/2:/rdylgn11/3">01</TD>
|
|
11
|
+
<TD bgcolor="/rdylgn11/3:/rdylgn11/4">02</TD>
|
|
12
|
+
<TD bgcolor="/rdylgn11/4:/rdylgn11/5">03</TD>
|
|
13
|
+
</TR>
|
|
14
|
+
</TABLE>
|
|
15
|
+
>];
|
|
16
|
+
a1;
|
|
17
|
+
|
|
18
|
+
a0 -> a1;
|
|
19
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 14.1.2 (0)
|
|
5
|
+
-->
|
|
6
|
+
<!-- Title: G Pages: 1 -->
|
|
7
|
+
<svg width="214pt" height="143pt"
|
|
8
|
+
viewBox="0.00 0.00 214.00 143.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 139)">
|
|
10
|
+
<title>G</title>
|
|
11
|
+
<polygon fill="white" stroke="none" points="-4,4 -4,-139 210,-139 210,4 -4,4"/>
|
|
12
|
+
<!-- a0 -->
|
|
13
|
+
<g id="node1" class="node">
|
|
14
|
+
<title>a0</title>
|
|
15
|
+
<defs>
|
|
16
|
+
<linearGradient id="l_0" gradientUnits="userSpaceOnUse" x1="35.82" y1="-122.95" x2="170.18" y2="-84.05" >
|
|
17
|
+
<stop offset="0" style="stop-color:#a50026;stop-opacity:1.;"/>
|
|
18
|
+
<stop offset="1" style="stop-color:#006837;stop-opacity:1.;"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
</defs>
|
|
21
|
+
<path fill="url(#l_0)" stroke="none" d="M20,-76C20,-76 186,-76 186,-76 192,-76 198,-82 198,-88 198,-88 198,-119 198,-119 198,-125 192,-131 186,-131 186,-131 20,-131 20,-131 14,-131 8,-125 8,-119 8,-119 8,-88 8,-88 8,-82 14,-76 20,-76"/>
|
|
22
|
+
<defs>
|
|
23
|
+
<linearGradient id="l_1" gradientUnits="userSpaceOnUse" x1="18" y1="-103.5" x2="53" y2="-103.5" >
|
|
24
|
+
<stop offset="0" style="stop-color:#a50026;stop-opacity:1.;"/>
|
|
25
|
+
<stop offset="1" style="stop-color:#d73027;stop-opacity:1.;"/>
|
|
26
|
+
</linearGradient>
|
|
27
|
+
</defs>
|
|
28
|
+
<polygon fill="url(#l_1)" stroke="none" points="18,-86 18,-121 53,-121 53,-86 18,-86"/>
|
|
29
|
+
<text xml:space="preserve" text-anchor="start" x="28" y="-97.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00">00</text>
|
|
30
|
+
<defs>
|
|
31
|
+
<linearGradient id="l_2" gradientUnits="userSpaceOnUse" x1="63" y1="-103.5" x2="98" y2="-103.5" >
|
|
32
|
+
<stop offset="0" style="stop-color:#d73027;stop-opacity:1.;"/>
|
|
33
|
+
<stop offset="1" style="stop-color:#f46d43;stop-opacity:1.;"/>
|
|
34
|
+
</linearGradient>
|
|
35
|
+
</defs>
|
|
36
|
+
<polygon fill="url(#l_2)" stroke="none" points="63,-86 63,-121 98,-121 98,-86 63,-86"/>
|
|
37
|
+
<text xml:space="preserve" text-anchor="start" x="73" y="-97.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00">01</text>
|
|
38
|
+
<defs>
|
|
39
|
+
<linearGradient id="l_3" gradientUnits="userSpaceOnUse" x1="108" y1="-103.5" x2="143" y2="-103.5" >
|
|
40
|
+
<stop offset="0" style="stop-color:#f46d43;stop-opacity:1.;"/>
|
|
41
|
+
<stop offset="1" style="stop-color:#fdae61;stop-opacity:1.;"/>
|
|
42
|
+
</linearGradient>
|
|
43
|
+
</defs>
|
|
44
|
+
<polygon fill="url(#l_3)" stroke="none" points="108,-86 108,-121 143,-121 143,-86 108,-86"/>
|
|
45
|
+
<text xml:space="preserve" text-anchor="start" x="118" y="-97.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00">02</text>
|
|
46
|
+
<defs>
|
|
47
|
+
<linearGradient id="l_4" gradientUnits="userSpaceOnUse" x1="153" y1="-103.5" x2="188" y2="-103.5" >
|
|
48
|
+
<stop offset="0" style="stop-color:#fdae61;stop-opacity:1.;"/>
|
|
49
|
+
<stop offset="1" style="stop-color:#fee08b;stop-opacity:1.;"/>
|
|
50
|
+
</linearGradient>
|
|
51
|
+
</defs>
|
|
52
|
+
<polygon fill="url(#l_4)" stroke="none" points="153,-86 153,-121 188,-121 188,-86 153,-86"/>
|
|
53
|
+
<text xml:space="preserve" text-anchor="start" x="163" y="-97.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00">03</text>
|
|
54
|
+
</g>
|
|
55
|
+
<!-- a1 -->
|
|
56
|
+
<g id="node2" class="node">
|
|
57
|
+
<title>a1</title>
|
|
58
|
+
<ellipse fill="none" stroke="black" cx="103" cy="-18" rx="27" ry="18"/>
|
|
59
|
+
<text xml:space="preserve" text-anchor="middle" x="103" y="-12.2" font-family="Helvetica,Arial,sans-serif" font-size="14.00">a1</text>
|
|
60
|
+
</g>
|
|
61
|
+
<!-- a0->a1 -->
|
|
62
|
+
<g id="edge1" class="edge">
|
|
63
|
+
<title>a0->a1</title>
|
|
64
|
+
<path fill="none" stroke="black" d="M103,-72.35C103,-64.29 103,-55.6 103,-47.62"/>
|
|
65
|
+
<polygon fill="black" stroke="black" points="106.5,-47.74 103,-37.74 99.5,-47.74 106.5,-47.74"/>
|
|
66
|
+
</g>
|
|
67
|
+
</g>
|
|
68
|
+
</svg>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
digraph G {
|
|
2
|
+
fontname="Helvetica,Arial,sans-serif"
|
|
3
|
+
node [fontname="Helvetica,Arial,sans-serif"]
|
|
4
|
+
edge [fontname="Helvetica,Arial,sans-serif"]
|
|
5
|
+
subgraph cluster_1 {
|
|
6
|
+
node [ style=filled,shape="box",fillcolor="antiquewhite:aquamarine" ]n5;
|
|
7
|
+
node [ shape="ellipse",fillcolor="bisque4:blue2" ]n4;
|
|
8
|
+
node [ shape="circle",fillcolor="cadetblue1:chocolate1" ]n3;
|
|
9
|
+
node [ shape="diamond",fillcolor="crimson:cyan4" ]n2;
|
|
10
|
+
node [ shape="triangle",fillcolor="deepskyblue2:firebrick" ]n1;
|
|
11
|
+
node [ shape="pentagon",fillcolor="gray24:gray88" ]n0;
|
|
12
|
+
|
|
13
|
+
label = "X11 Colors";
|
|
14
|
+
}
|
|
15
|
+
subgraph cluster_2 {
|
|
16
|
+
node [ style=filled,shape="box",fillcolor="bisque:brown" ]n11;
|
|
17
|
+
node [ shape="ellipse",fillcolor="green:darkorchid" ]n10;
|
|
18
|
+
node [ shape="circle",fillcolor="deepskyblue:gold" ]n9;
|
|
19
|
+
node [ shape="diamond",fillcolor="lightseagreen:orangered" ]n8;
|
|
20
|
+
node [ shape="triangle",fillcolor="turquoise:salmon" ]n7;
|
|
21
|
+
node [ shape="pentagon",fillcolor="snow:black" ]n6;
|
|
22
|
+
|
|
23
|
+
label = "SVG Colors";
|
|
24
|
+
}
|
|
25
|
+
subgraph cluster_3 {
|
|
26
|
+
node [ style=filled,shape="box",fillcolor="/accent3/1:/accent3/3" ]n17;
|
|
27
|
+
node [ shape="ellipse",fillcolor="/accent4/1:/accent4/4" ]n16;
|
|
28
|
+
node [ shape="circle",fillcolor="/accent5/1:/accent5/5" ]n15;
|
|
29
|
+
node [ shape="diamond",fillcolor="/accent6/1:/accent6/6" ]n14;
|
|
30
|
+
node [ shape="triangle",fillcolor="/accent7/1:/accent7/7" ]n13;
|
|
31
|
+
node [ shape="pentagon",fillcolor="/accent8/1:/accent8/8" ]n12;
|
|
32
|
+
|
|
33
|
+
label = "Brewer - accent";
|
|
34
|
+
}
|
|
35
|
+
subgraph cluster_4 {
|
|
36
|
+
node [ style=filled,shape="box",fillcolor="/blues3/1:/blues3/2" ]n23;
|
|
37
|
+
node [ shape="ellipse",fillcolor="/blues4/1:/blues4/3" ]n22;
|
|
38
|
+
node [ shape="circle",fillcolor="/blues5/1:/blues5/4" ]n21;
|
|
39
|
+
node [ shape="diamond",fillcolor="/blues6/1:/blues6/5" ]n20;
|
|
40
|
+
node [ shape="triangle",fillcolor="/blues7/1:/blues7/6" ]n19;
|
|
41
|
+
node [ shape="pentagon",fillcolor="/blues8/1:/blues8/7" ]n18;
|
|
42
|
+
|
|
43
|
+
label = "Brewer - blues";
|
|
44
|
+
}
|
|
45
|
+
n3 -> n9 -> n15 -> n21;
|
|
46
|
+
}
|
|
@@ -0,0 +1,339 @@
|
|
|
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 14.1.2 (0)
|
|
5
|
+
-->
|
|
6
|
+
<!-- Title: G Pages: 1 -->
|
|
7
|
+
<svg width="520pt" height="396pt"
|
|
8
|
+
viewBox="0.00 0.00 520.00 396.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 392.09)">
|
|
10
|
+
<title>G</title>
|
|
11
|
+
<polygon fill="white" stroke="none" points="-4,4 -4,-392.09 516,-392.09 516,4 -4,4"/>
|
|
12
|
+
<g id="clust1" class="cluster">
|
|
13
|
+
<title>cluster_1</title>
|
|
14
|
+
<polygon fill="none" stroke="black" points="13,-295.09 13,-380.09 459,-380.09 459,-295.09 13,-295.09"/>
|
|
15
|
+
<text xml:space="preserve" text-anchor="middle" x="236" y="-362.79" font-family="Helvetica,Arial,sans-serif" font-size="14.00">X11 Colors</text>
|
|
16
|
+
</g>
|
|
17
|
+
<g id="clust2" class="cluster">
|
|
18
|
+
<title>cluster_2</title>
|
|
19
|
+
<polygon fill="none" stroke="black" points="13,-202.09 13,-287.09 459,-287.09 459,-202.09 13,-202.09"/>
|
|
20
|
+
<text xml:space="preserve" text-anchor="middle" x="236" y="-269.79" font-family="Helvetica,Arial,sans-serif" font-size="14.00">SVG Colors</text>
|
|
21
|
+
</g>
|
|
22
|
+
<g id="clust3" class="cluster">
|
|
23
|
+
<title>cluster_3</title>
|
|
24
|
+
<polygon fill="none" stroke="black" points="8,-105.05 8,-194.09 504,-194.09 504,-105.05 8,-105.05"/>
|
|
25
|
+
<text xml:space="preserve" text-anchor="middle" x="256" y="-176.79" font-family="Helvetica,Arial,sans-serif" font-size="14.00">Brewer - accent</text>
|
|
26
|
+
</g>
|
|
27
|
+
<g id="clust4" class="cluster">
|
|
28
|
+
<title>cluster_4</title>
|
|
29
|
+
<polygon fill="none" stroke="black" points="8,-8 8,-97.05 504,-97.05 504,-8 8,-8"/>
|
|
30
|
+
<text xml:space="preserve" text-anchor="middle" x="256" y="-79.75" font-family="Helvetica,Arial,sans-serif" font-size="14.00">Brewer - blues</text>
|
|
31
|
+
</g>
|
|
32
|
+
<!-- n5 -->
|
|
33
|
+
<g id="node1" class="node">
|
|
34
|
+
<title>n5</title>
|
|
35
|
+
<defs>
|
|
36
|
+
<linearGradient id="node1_l_0" gradientUnits="userSpaceOnUse" x1="21" y1="-326.09" x2="75" y2="-326.09" >
|
|
37
|
+
<stop offset="0" style="stop-color:antiquewhite;stop-opacity:1.;"/>
|
|
38
|
+
<stop offset="1" style="stop-color:aquamarine;stop-opacity:1.;"/>
|
|
39
|
+
</linearGradient>
|
|
40
|
+
</defs>
|
|
41
|
+
<polygon fill="url(#node1_l_0)" stroke="black" points="75,-344.09 21,-344.09 21,-308.09 75,-308.09 75,-344.09"/>
|
|
42
|
+
<text xml:space="preserve" text-anchor="middle" x="48" y="-320.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n5</text>
|
|
43
|
+
</g>
|
|
44
|
+
<!-- n4 -->
|
|
45
|
+
<g id="node2" class="node">
|
|
46
|
+
<title>n4</title>
|
|
47
|
+
<defs>
|
|
48
|
+
<linearGradient id="node2_l_1" gradientUnits="userSpaceOnUse" x1="93" y1="-326.09" x2="147" y2="-326.09" >
|
|
49
|
+
<stop offset="0" style="stop-color:#8b7d6b;stop-opacity:1.;"/>
|
|
50
|
+
<stop offset="1" style="stop-color:#0000ee;stop-opacity:1.;"/>
|
|
51
|
+
</linearGradient>
|
|
52
|
+
</defs>
|
|
53
|
+
<ellipse fill="url(#node2_l_1)" stroke="black" cx="120" cy="-326.09" rx="27" ry="18"/>
|
|
54
|
+
<text xml:space="preserve" text-anchor="middle" x="120" y="-320.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n4</text>
|
|
55
|
+
</g>
|
|
56
|
+
<!-- n3 -->
|
|
57
|
+
<g id="node3" class="node">
|
|
58
|
+
<title>n3</title>
|
|
59
|
+
<defs>
|
|
60
|
+
<linearGradient id="node3_l_2" gradientUnits="userSpaceOnUse" x1="164.85" y1="-326.09" x2="205.15" y2="-326.09" >
|
|
61
|
+
<stop offset="0" style="stop-color:#98f5ff;stop-opacity:1.;"/>
|
|
62
|
+
<stop offset="1" style="stop-color:#ff7f24;stop-opacity:1.;"/>
|
|
63
|
+
</linearGradient>
|
|
64
|
+
</defs>
|
|
65
|
+
<ellipse fill="url(#node3_l_2)" stroke="black" cx="185" cy="-326.09" rx="20.15" ry="20.15"/>
|
|
66
|
+
<text xml:space="preserve" text-anchor="middle" x="185" y="-320.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n3</text>
|
|
67
|
+
</g>
|
|
68
|
+
<!-- n9 -->
|
|
69
|
+
<g id="node9" class="node">
|
|
70
|
+
<title>n9</title>
|
|
71
|
+
<defs>
|
|
72
|
+
<linearGradient id="node9_l_3" gradientUnits="userSpaceOnUse" x1="164.85" y1="-233.09" x2="205.15" y2="-233.09" >
|
|
73
|
+
<stop offset="0" style="stop-color:deepskyblue;stop-opacity:1.;"/>
|
|
74
|
+
<stop offset="1" style="stop-color:gold;stop-opacity:1.;"/>
|
|
75
|
+
</linearGradient>
|
|
76
|
+
</defs>
|
|
77
|
+
<ellipse fill="url(#node9_l_3)" stroke="black" cx="185" cy="-233.09" rx="20.15" ry="20.15"/>
|
|
78
|
+
<text xml:space="preserve" text-anchor="middle" x="185" y="-227.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n9</text>
|
|
79
|
+
</g>
|
|
80
|
+
<!-- n3->n9 -->
|
|
81
|
+
<g id="edge1" class="edge">
|
|
82
|
+
<title>n3->n9</title>
|
|
83
|
+
<path fill="none" stroke="black" d="M185,-305.79C185,-293.93 185,-278.46 185,-264.93"/>
|
|
84
|
+
<polygon fill="black" stroke="black" points="188.5,-265.19 185,-255.19 181.5,-265.19 188.5,-265.19"/>
|
|
85
|
+
</g>
|
|
86
|
+
<!-- n2 -->
|
|
87
|
+
<g id="node4" class="node">
|
|
88
|
+
<title>n2</title>
|
|
89
|
+
<defs>
|
|
90
|
+
<linearGradient id="node4_l_4" gradientUnits="userSpaceOnUse" x1="223.51" y1="-326.09" x2="280.49" y2="-326.09" >
|
|
91
|
+
<stop offset="0" style="stop-color:crimson;stop-opacity:1.;"/>
|
|
92
|
+
<stop offset="1" style="stop-color:#008b8b;stop-opacity:1.;"/>
|
|
93
|
+
</linearGradient>
|
|
94
|
+
</defs>
|
|
95
|
+
<polygon fill="url(#node4_l_4)" stroke="black" points="252,-344.09 223.51,-326.09 252,-308.09 280.49,-326.09 252,-344.09"/>
|
|
96
|
+
<text xml:space="preserve" text-anchor="middle" x="252" y="-320.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n2</text>
|
|
97
|
+
</g>
|
|
98
|
+
<!-- n1 -->
|
|
99
|
+
<g id="node5" class="node">
|
|
100
|
+
<title>n1</title>
|
|
101
|
+
<defs>
|
|
102
|
+
<linearGradient id="node5_l_5" gradientUnits="userSpaceOnUse" x1="298.7" y1="-331.84" x2="379.3" y2="-331.84" >
|
|
103
|
+
<stop offset="0" style="stop-color:#00b2ee;stop-opacity:1.;"/>
|
|
104
|
+
<stop offset="1" style="stop-color:firebrick;stop-opacity:1.;"/>
|
|
105
|
+
</linearGradient>
|
|
106
|
+
</defs>
|
|
107
|
+
<polygon fill="url(#node5_l_5)" stroke="black" points="339,-349.09 298.7,-314.59 379.3,-314.59 339,-349.09"/>
|
|
108
|
+
<text xml:space="preserve" text-anchor="middle" x="339" y="-320.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n1</text>
|
|
109
|
+
</g>
|
|
110
|
+
<!-- n0 -->
|
|
111
|
+
<g id="node6" class="node">
|
|
112
|
+
<title>n0</title>
|
|
113
|
+
<defs>
|
|
114
|
+
<linearGradient id="node6_l_6" gradientUnits="userSpaceOnUse" x1="397" y1="-327.81" x2="451" y2="-327.81" >
|
|
115
|
+
<stop offset="0" style="stop-color:#3d3d3d;stop-opacity:1.;"/>
|
|
116
|
+
<stop offset="1" style="stop-color:#e0e0e0;stop-opacity:1.;"/>
|
|
117
|
+
</linearGradient>
|
|
118
|
+
</defs>
|
|
119
|
+
<polygon fill="url(#node6_l_6)" stroke="black" points="451,-331.65 424,-344.09 397,-331.65 407.31,-311.53 440.69,-311.53 451,-331.65"/>
|
|
120
|
+
<text xml:space="preserve" text-anchor="middle" x="424" y="-320.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n0</text>
|
|
121
|
+
</g>
|
|
122
|
+
<!-- n11 -->
|
|
123
|
+
<g id="node7" class="node">
|
|
124
|
+
<title>n11</title>
|
|
125
|
+
<defs>
|
|
126
|
+
<linearGradient id="node7_l_7" gradientUnits="userSpaceOnUse" x1="21" y1="-233.09" x2="75" y2="-233.09" >
|
|
127
|
+
<stop offset="0" style="stop-color:bisque;stop-opacity:1.;"/>
|
|
128
|
+
<stop offset="1" style="stop-color:brown;stop-opacity:1.;"/>
|
|
129
|
+
</linearGradient>
|
|
130
|
+
</defs>
|
|
131
|
+
<polygon fill="url(#node7_l_7)" stroke="black" points="75,-251.09 21,-251.09 21,-215.09 75,-215.09 75,-251.09"/>
|
|
132
|
+
<text xml:space="preserve" text-anchor="middle" x="48" y="-227.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n11</text>
|
|
133
|
+
</g>
|
|
134
|
+
<!-- n10 -->
|
|
135
|
+
<g id="node8" class="node">
|
|
136
|
+
<title>n10</title>
|
|
137
|
+
<defs>
|
|
138
|
+
<linearGradient id="node8_l_8" gradientUnits="userSpaceOnUse" x1="93" y1="-233.09" x2="147" y2="-233.09" >
|
|
139
|
+
<stop offset="0" style="stop-color:green;stop-opacity:1.;"/>
|
|
140
|
+
<stop offset="1" style="stop-color:darkorchid;stop-opacity:1.;"/>
|
|
141
|
+
</linearGradient>
|
|
142
|
+
</defs>
|
|
143
|
+
<ellipse fill="url(#node8_l_8)" stroke="black" cx="120" cy="-233.09" rx="27" ry="18"/>
|
|
144
|
+
<text xml:space="preserve" text-anchor="middle" x="120" y="-227.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n10</text>
|
|
145
|
+
</g>
|
|
146
|
+
<!-- n15 -->
|
|
147
|
+
<g id="node15" class="node">
|
|
148
|
+
<title>n15</title>
|
|
149
|
+
<defs>
|
|
150
|
+
<linearGradient id="node15_l_9" gradientUnits="userSpaceOnUse" x1="159.98" y1="-138.07" x2="210.02" y2="-138.07" >
|
|
151
|
+
<stop offset="0" style="stop-color:#7fc97f;stop-opacity:1.;"/>
|
|
152
|
+
<stop offset="1" style="stop-color:#386cb0;stop-opacity:1.;"/>
|
|
153
|
+
</linearGradient>
|
|
154
|
+
</defs>
|
|
155
|
+
<ellipse fill="url(#node15_l_9)" stroke="black" cx="185" cy="-138.07" rx="25.02" ry="25.02"/>
|
|
156
|
+
<text xml:space="preserve" text-anchor="middle" x="185" y="-132.27" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n15</text>
|
|
157
|
+
</g>
|
|
158
|
+
<!-- n9->n15 -->
|
|
159
|
+
<g id="edge2" class="edge">
|
|
160
|
+
<title>n9->n15</title>
|
|
161
|
+
<path fill="none" stroke="black" d="M185,-212.82C185,-201.82 185,-187.68 185,-174.73"/>
|
|
162
|
+
<polygon fill="black" stroke="black" points="188.5,-174.8 185,-164.8 181.5,-174.8 188.5,-174.8"/>
|
|
163
|
+
</g>
|
|
164
|
+
<!-- n8 -->
|
|
165
|
+
<g id="node10" class="node">
|
|
166
|
+
<title>n8</title>
|
|
167
|
+
<defs>
|
|
168
|
+
<linearGradient id="node10_l_10" gradientUnits="userSpaceOnUse" x1="223.51" y1="-233.09" x2="280.49" y2="-233.09" >
|
|
169
|
+
<stop offset="0" style="stop-color:lightseagreen;stop-opacity:1.;"/>
|
|
170
|
+
<stop offset="1" style="stop-color:orangered;stop-opacity:1.;"/>
|
|
171
|
+
</linearGradient>
|
|
172
|
+
</defs>
|
|
173
|
+
<polygon fill="url(#node10_l_10)" stroke="black" points="252,-251.09 223.51,-233.09 252,-215.09 280.49,-233.09 252,-251.09"/>
|
|
174
|
+
<text xml:space="preserve" text-anchor="middle" x="252" y="-227.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n8</text>
|
|
175
|
+
</g>
|
|
176
|
+
<!-- n7 -->
|
|
177
|
+
<g id="node11" class="node">
|
|
178
|
+
<title>n7</title>
|
|
179
|
+
<defs>
|
|
180
|
+
<linearGradient id="node11_l_11" gradientUnits="userSpaceOnUse" x1="298.7" y1="-238.84" x2="379.3" y2="-238.84" >
|
|
181
|
+
<stop offset="0" style="stop-color:turquoise;stop-opacity:1.;"/>
|
|
182
|
+
<stop offset="1" style="stop-color:salmon;stop-opacity:1.;"/>
|
|
183
|
+
</linearGradient>
|
|
184
|
+
</defs>
|
|
185
|
+
<polygon fill="url(#node11_l_11)" stroke="black" points="339,-256.09 298.7,-221.59 379.3,-221.59 339,-256.09"/>
|
|
186
|
+
<text xml:space="preserve" text-anchor="middle" x="339" y="-227.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n7</text>
|
|
187
|
+
</g>
|
|
188
|
+
<!-- n6 -->
|
|
189
|
+
<g id="node12" class="node">
|
|
190
|
+
<title>n6</title>
|
|
191
|
+
<defs>
|
|
192
|
+
<linearGradient id="node12_l_12" gradientUnits="userSpaceOnUse" x1="397" y1="-234.81" x2="451" y2="-234.81" >
|
|
193
|
+
<stop offset="0" style="stop-color:snow;stop-opacity:1.;"/>
|
|
194
|
+
<stop offset="1" style="stop-color:black;stop-opacity:1.;"/>
|
|
195
|
+
</linearGradient>
|
|
196
|
+
</defs>
|
|
197
|
+
<polygon fill="url(#node12_l_12)" stroke="black" points="451,-238.65 424,-251.09 397,-238.65 407.31,-218.53 440.69,-218.53 451,-238.65"/>
|
|
198
|
+
<text xml:space="preserve" text-anchor="middle" x="424" y="-227.29" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n6</text>
|
|
199
|
+
</g>
|
|
200
|
+
<!-- n17 -->
|
|
201
|
+
<g id="node13" class="node">
|
|
202
|
+
<title>n17</title>
|
|
203
|
+
<defs>
|
|
204
|
+
<linearGradient id="node13_l_13" gradientUnits="userSpaceOnUse" x1="16" y1="-138.07" x2="70" y2="-138.07" >
|
|
205
|
+
<stop offset="0" style="stop-color:#7fc97f;stop-opacity:1.;"/>
|
|
206
|
+
<stop offset="1" style="stop-color:#fdc086;stop-opacity:1.;"/>
|
|
207
|
+
</linearGradient>
|
|
208
|
+
</defs>
|
|
209
|
+
<polygon fill="url(#node13_l_13)" stroke="black" points="70,-156.07 16,-156.07 16,-120.07 70,-120.07 70,-156.07"/>
|
|
210
|
+
<text xml:space="preserve" text-anchor="middle" x="43" y="-132.27" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n17</text>
|
|
211
|
+
</g>
|
|
212
|
+
<!-- n16 -->
|
|
213
|
+
<g id="node14" class="node">
|
|
214
|
+
<title>n16</title>
|
|
215
|
+
<defs>
|
|
216
|
+
<linearGradient id="node14_l_14" gradientUnits="userSpaceOnUse" x1="88" y1="-138.07" x2="142" y2="-138.07" >
|
|
217
|
+
<stop offset="0" style="stop-color:#7fc97f;stop-opacity:1.;"/>
|
|
218
|
+
<stop offset="1" style="stop-color:#ffff99;stop-opacity:1.;"/>
|
|
219
|
+
</linearGradient>
|
|
220
|
+
</defs>
|
|
221
|
+
<ellipse fill="url(#node14_l_14)" stroke="black" cx="115" cy="-138.07" rx="27" ry="18"/>
|
|
222
|
+
<text xml:space="preserve" text-anchor="middle" x="115" y="-132.27" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n16</text>
|
|
223
|
+
</g>
|
|
224
|
+
<!-- n21 -->
|
|
225
|
+
<g id="node21" class="node">
|
|
226
|
+
<title>n21</title>
|
|
227
|
+
<defs>
|
|
228
|
+
<linearGradient id="node21_l_15" gradientUnits="userSpaceOnUse" x1="159.98" y1="-41.02" x2="210.02" y2="-41.02" >
|
|
229
|
+
<stop offset="0" style="stop-color:#eff3ff;stop-opacity:1.;"/>
|
|
230
|
+
<stop offset="1" style="stop-color:#3182bd;stop-opacity:1.;"/>
|
|
231
|
+
</linearGradient>
|
|
232
|
+
</defs>
|
|
233
|
+
<ellipse fill="url(#node21_l_15)" stroke="black" cx="185" cy="-41.02" rx="25.02" ry="25.02"/>
|
|
234
|
+
<text xml:space="preserve" text-anchor="middle" x="185" y="-35.22" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n21</text>
|
|
235
|
+
</g>
|
|
236
|
+
<!-- n15->n21 -->
|
|
237
|
+
<g id="edge3" class="edge">
|
|
238
|
+
<title>n15->n21</title>
|
|
239
|
+
<path fill="none" stroke="black" d="M185,-112.59C185,-101.95 185,-89.27 185,-77.62"/>
|
|
240
|
+
<polygon fill="black" stroke="black" points="188.5,-77.93 185,-67.93 181.5,-77.93 188.5,-77.93"/>
|
|
241
|
+
</g>
|
|
242
|
+
<!-- n14 -->
|
|
243
|
+
<g id="node16" class="node">
|
|
244
|
+
<title>n14</title>
|
|
245
|
+
<defs>
|
|
246
|
+
<linearGradient id="node16_l_16" gradientUnits="userSpaceOnUse" x1="227.61" y1="-138.07" x2="298.39" y2="-138.07" >
|
|
247
|
+
<stop offset="0" style="stop-color:#7fc97f;stop-opacity:1.;"/>
|
|
248
|
+
<stop offset="1" style="stop-color:#f0027f;stop-opacity:1.;"/>
|
|
249
|
+
</linearGradient>
|
|
250
|
+
</defs>
|
|
251
|
+
<polygon fill="url(#node16_l_16)" stroke="black" points="263,-156.07 227.61,-138.07 263,-120.07 298.39,-138.07 263,-156.07"/>
|
|
252
|
+
<text xml:space="preserve" text-anchor="middle" x="263" y="-132.27" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n14</text>
|
|
253
|
+
</g>
|
|
254
|
+
<!-- n13 -->
|
|
255
|
+
<g id="node17" class="node">
|
|
256
|
+
<title>n13</title>
|
|
257
|
+
<defs>
|
|
258
|
+
<linearGradient id="node17_l_17" gradientUnits="userSpaceOnUse" x1="315.95" y1="-143.82" x2="416.05" y2="-143.82" >
|
|
259
|
+
<stop offset="0" style="stop-color:#7fc97f;stop-opacity:1.;"/>
|
|
260
|
+
<stop offset="1" style="stop-color:#bf5b17;stop-opacity:1.;"/>
|
|
261
|
+
</linearGradient>
|
|
262
|
+
</defs>
|
|
263
|
+
<polygon fill="url(#node17_l_17)" stroke="black" points="366,-161.07 315.95,-126.57 416.05,-126.57 366,-161.07"/>
|
|
264
|
+
<text xml:space="preserve" text-anchor="middle" x="366" y="-132.27" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n13</text>
|
|
265
|
+
</g>
|
|
266
|
+
<!-- n12 -->
|
|
267
|
+
<g id="node18" class="node">
|
|
268
|
+
<title>n12</title>
|
|
269
|
+
<defs>
|
|
270
|
+
<linearGradient id="node18_l_18" gradientUnits="userSpaceOnUse" x1="434.07" y1="-139.79" x2="495.93" y2="-139.79" >
|
|
271
|
+
<stop offset="0" style="stop-color:#7fc97f;stop-opacity:1.;"/>
|
|
272
|
+
<stop offset="1" style="stop-color:#666666;stop-opacity:1.;"/>
|
|
273
|
+
</linearGradient>
|
|
274
|
+
</defs>
|
|
275
|
+
<polygon fill="url(#node18_l_18)" stroke="black" points="495.93,-143.63 465,-156.07 434.07,-143.63 445.88,-123.51 484.12,-123.51 495.93,-143.63"/>
|
|
276
|
+
<text xml:space="preserve" text-anchor="middle" x="465" y="-132.27" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n12</text>
|
|
277
|
+
</g>
|
|
278
|
+
<!-- n23 -->
|
|
279
|
+
<g id="node19" class="node">
|
|
280
|
+
<title>n23</title>
|
|
281
|
+
<defs>
|
|
282
|
+
<linearGradient id="node19_l_19" gradientUnits="userSpaceOnUse" x1="16" y1="-41.02" x2="70" y2="-41.02" >
|
|
283
|
+
<stop offset="0" style="stop-color:#deebf7;stop-opacity:1.;"/>
|
|
284
|
+
<stop offset="1" style="stop-color:#9ecae1;stop-opacity:1.;"/>
|
|
285
|
+
</linearGradient>
|
|
286
|
+
</defs>
|
|
287
|
+
<polygon fill="url(#node19_l_19)" stroke="black" points="70,-59.02 16,-59.02 16,-23.02 70,-23.02 70,-59.02"/>
|
|
288
|
+
<text xml:space="preserve" text-anchor="middle" x="43" y="-35.22" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n23</text>
|
|
289
|
+
</g>
|
|
290
|
+
<!-- n22 -->
|
|
291
|
+
<g id="node20" class="node">
|
|
292
|
+
<title>n22</title>
|
|
293
|
+
<defs>
|
|
294
|
+
<linearGradient id="node20_l_20" gradientUnits="userSpaceOnUse" x1="88" y1="-41.02" x2="142" y2="-41.02" >
|
|
295
|
+
<stop offset="0" style="stop-color:#eff3ff;stop-opacity:1.;"/>
|
|
296
|
+
<stop offset="1" style="stop-color:#6baed6;stop-opacity:1.;"/>
|
|
297
|
+
</linearGradient>
|
|
298
|
+
</defs>
|
|
299
|
+
<ellipse fill="url(#node20_l_20)" stroke="black" cx="115" cy="-41.02" rx="27" ry="18"/>
|
|
300
|
+
<text xml:space="preserve" text-anchor="middle" x="115" y="-35.22" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n22</text>
|
|
301
|
+
</g>
|
|
302
|
+
<!-- n20 -->
|
|
303
|
+
<g id="node22" class="node">
|
|
304
|
+
<title>n20</title>
|
|
305
|
+
<defs>
|
|
306
|
+
<linearGradient id="node22_l_21" gradientUnits="userSpaceOnUse" x1="227.61" y1="-41.02" x2="298.39" y2="-41.02" >
|
|
307
|
+
<stop offset="0" style="stop-color:#eff3ff;stop-opacity:1.;"/>
|
|
308
|
+
<stop offset="1" style="stop-color:#3182bd;stop-opacity:1.;"/>
|
|
309
|
+
</linearGradient>
|
|
310
|
+
</defs>
|
|
311
|
+
<polygon fill="url(#node22_l_21)" stroke="black" points="263,-59.02 227.61,-41.02 263,-23.02 298.39,-41.02 263,-59.02"/>
|
|
312
|
+
<text xml:space="preserve" text-anchor="middle" x="263" y="-35.22" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n20</text>
|
|
313
|
+
</g>
|
|
314
|
+
<!-- n19 -->
|
|
315
|
+
<g id="node23" class="node">
|
|
316
|
+
<title>n19</title>
|
|
317
|
+
<defs>
|
|
318
|
+
<linearGradient id="node23_l_22" gradientUnits="userSpaceOnUse" x1="315.95" y1="-46.77" x2="416.05" y2="-46.77" >
|
|
319
|
+
<stop offset="0" style="stop-color:#eff3ff;stop-opacity:1.;"/>
|
|
320
|
+
<stop offset="1" style="stop-color:#2171b5;stop-opacity:1.;"/>
|
|
321
|
+
</linearGradient>
|
|
322
|
+
</defs>
|
|
323
|
+
<polygon fill="url(#node23_l_22)" stroke="black" points="366,-64.02 315.95,-29.52 416.05,-29.52 366,-64.02"/>
|
|
324
|
+
<text xml:space="preserve" text-anchor="middle" x="366" y="-35.22" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n19</text>
|
|
325
|
+
</g>
|
|
326
|
+
<!-- n18 -->
|
|
327
|
+
<g id="node24" class="node">
|
|
328
|
+
<title>n18</title>
|
|
329
|
+
<defs>
|
|
330
|
+
<linearGradient id="node24_l_23" gradientUnits="userSpaceOnUse" x1="434.07" y1="-42.74" x2="495.93" y2="-42.74" >
|
|
331
|
+
<stop offset="0" style="stop-color:#f7fbff;stop-opacity:1.;"/>
|
|
332
|
+
<stop offset="1" style="stop-color:#2171b5;stop-opacity:1.;"/>
|
|
333
|
+
</linearGradient>
|
|
334
|
+
</defs>
|
|
335
|
+
<polygon fill="url(#node24_l_23)" stroke="black" points="495.93,-46.59 465,-59.02 434.07,-46.59 445.88,-26.46 484.12,-26.46 495.93,-46.59"/>
|
|
336
|
+
<text xml:space="preserve" text-anchor="middle" x="465" y="-35.22" font-family="Helvetica,Arial,sans-serif" font-size="14.00">n18</text>
|
|
337
|
+
</g>
|
|
338
|
+
</g>
|
|
339
|
+
</svg>
|
|
@@ -18,7 +18,7 @@ from PyQt5.QtSvg import QSvgRenderer
|
|
|
18
18
|
from PyQt5.QtGui import QPainter
|
|
19
19
|
from PyQt5.QtCore import QSize
|
|
20
20
|
from PyQt5.QtWidgets import QShortcut
|
|
21
|
-
from PyQt5.QtGui import QKeySequence, QTextDocument
|
|
21
|
+
from PyQt5.QtGui import QKeySequence, QTextDocument, QTextCursor
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
import graphviz_code_viewer.about as about
|
|
@@ -57,7 +57,8 @@ DEFAULT_CONTENT={ "error_loading_svg": "Error loading SVG file",
|
|
|
57
57
|
"action_about_tooltip": "About the program",
|
|
58
58
|
"action_coffee": "Coffee",
|
|
59
59
|
"action_coffee_tooltip": "Buy me a coffee (TrucomanX)",
|
|
60
|
-
"file_path": "
|
|
60
|
+
"file_path": "Current file path:",
|
|
61
|
+
"no_saved": " (unsaved)",
|
|
61
62
|
"warning":"Warning",
|
|
62
63
|
"no_image_available":"No image available to save. Compile the code first.",
|
|
63
64
|
"save_image":"Save image",
|
|
@@ -310,12 +311,78 @@ class TextEditor(QPlainTextEdit):
|
|
|
310
311
|
self.toggle_search_bar()
|
|
311
312
|
return
|
|
312
313
|
|
|
313
|
-
if event.key()
|
|
314
|
-
|
|
314
|
+
if event.key() in (Qt.Key_Tab, Qt.Key_Backtab):
|
|
315
|
+
if event.modifiers() & Qt.ShiftModifier or event.key() == Qt.Key_Backtab:
|
|
316
|
+
self.indent_selection(outdent=True)
|
|
317
|
+
elif self.textCursor().hasSelection():
|
|
318
|
+
self.indent_selection()
|
|
319
|
+
else:
|
|
320
|
+
self.insertPlainText(CONFIG_EDITOR["tab_size"] * " ")
|
|
315
321
|
return
|
|
316
322
|
|
|
317
323
|
super().keyPressEvent(event)
|
|
318
324
|
|
|
325
|
+
def indent_selection(self, outdent=False):
|
|
326
|
+
cursor = self.textCursor()
|
|
327
|
+
anchor = cursor.anchor()
|
|
328
|
+
position = cursor.position()
|
|
329
|
+
selection_start = cursor.selectionStart()
|
|
330
|
+
selection_end = cursor.selectionEnd()
|
|
331
|
+
|
|
332
|
+
first_block = self.document().findBlock(selection_start)
|
|
333
|
+
last_block = self.document().findBlock(selection_end)
|
|
334
|
+
if selection_end > selection_start and last_block.position() == selection_end:
|
|
335
|
+
last_block = last_block.previous()
|
|
336
|
+
|
|
337
|
+
blocks = []
|
|
338
|
+
block = first_block
|
|
339
|
+
while block.isValid():
|
|
340
|
+
blocks.append(block.position())
|
|
341
|
+
if block == last_block:
|
|
342
|
+
break
|
|
343
|
+
block = block.next()
|
|
344
|
+
|
|
345
|
+
indent = " " * CONFIG_EDITOR["tab_size"]
|
|
346
|
+
changes = []
|
|
347
|
+
cursor.beginEditBlock()
|
|
348
|
+
for block_position in reversed(blocks):
|
|
349
|
+
line_cursor = QTextCursor(self.document())
|
|
350
|
+
line_cursor.setPosition(block_position)
|
|
351
|
+
line_text = line_cursor.block().text()
|
|
352
|
+
|
|
353
|
+
if outdent:
|
|
354
|
+
if line_text.startswith("\t"):
|
|
355
|
+
remove_count = 1
|
|
356
|
+
else:
|
|
357
|
+
spaces_to_remove = len(line_text) - len(line_text.lstrip(" "))
|
|
358
|
+
remove_count = min(CONFIG_EDITOR["tab_size"], spaces_to_remove)
|
|
359
|
+
if remove_count:
|
|
360
|
+
line_cursor.movePosition(QTextCursor.Right, QTextCursor.KeepAnchor, remove_count)
|
|
361
|
+
line_cursor.removeSelectedText()
|
|
362
|
+
changes.append((block_position, -remove_count))
|
|
363
|
+
else:
|
|
364
|
+
line_cursor.insertText(indent)
|
|
365
|
+
changes.append((block_position, len(indent)))
|
|
366
|
+
cursor.endEditBlock()
|
|
367
|
+
|
|
368
|
+
def adjusted(offset):
|
|
369
|
+
result = offset
|
|
370
|
+
for block_position, delta in changes:
|
|
371
|
+
if delta > 0 and block_position <= offset:
|
|
372
|
+
result += delta
|
|
373
|
+
elif delta < 0:
|
|
374
|
+
removed_end = block_position - delta
|
|
375
|
+
if offset >= removed_end:
|
|
376
|
+
result += delta
|
|
377
|
+
elif offset > block_position:
|
|
378
|
+
result = block_position
|
|
379
|
+
return result
|
|
380
|
+
|
|
381
|
+
restored_cursor = QTextCursor(self.document())
|
|
382
|
+
restored_cursor.setPosition(adjusted(anchor))
|
|
383
|
+
restored_cursor.setPosition(adjusted(position), QTextCursor.KeepAnchor)
|
|
384
|
+
self.setTextCursor(restored_cursor)
|
|
385
|
+
|
|
319
386
|
def insertFromMimeData(self, source):
|
|
320
387
|
text = source.text()
|
|
321
388
|
|
|
@@ -431,6 +498,7 @@ class MainWindow(QMainWindow):
|
|
|
431
498
|
|
|
432
499
|
# Editor e visualizador
|
|
433
500
|
self.editor = TextEditor()
|
|
501
|
+
self.editor.textChanged.connect(self.update_unsaved_indicator)
|
|
434
502
|
|
|
435
503
|
self.highlighter = GraphvizHighlighter(self.editor.document(), CONFIG_EDITOR["syntax_rules"])
|
|
436
504
|
self.viewer = SvgViewer()
|
|
@@ -455,6 +523,8 @@ class MainWindow(QMainWindow):
|
|
|
455
523
|
|
|
456
524
|
if os.path.exists(self.input_filepath):
|
|
457
525
|
self.load_dot(filepath=self.input_filepath)
|
|
526
|
+
else:
|
|
527
|
+
self.update_unsaved_indicator()
|
|
458
528
|
|
|
459
529
|
save_shortcut = QShortcut(QKeySequence(CONFIG_EDITOR["save_file"]), self)
|
|
460
530
|
save_shortcut.activated.connect(lambda: self.save_dot(from_input=True, exist_ok=True))
|
|
@@ -481,6 +551,24 @@ class MainWindow(QMainWindow):
|
|
|
481
551
|
|
|
482
552
|
def update_filepath_ui(self):
|
|
483
553
|
self.file_path_edit.setText(self.input_filepath if self.input_filepath else "")
|
|
554
|
+
self.update_unsaved_indicator()
|
|
555
|
+
|
|
556
|
+
def update_unsaved_indicator(self):
|
|
557
|
+
editor_content = self.editor.toPlainText()
|
|
558
|
+
is_unsaved = bool(editor_content)
|
|
559
|
+
|
|
560
|
+
if self.input_filepath and os.path.isfile(self.input_filepath):
|
|
561
|
+
try:
|
|
562
|
+
with open(self.input_filepath, "r", encoding="utf-8") as file:
|
|
563
|
+
is_unsaved = editor_content != file.read()
|
|
564
|
+
except (OSError, UnicodeError):
|
|
565
|
+
is_unsaved = True
|
|
566
|
+
|
|
567
|
+
self.file_label.setStyleSheet("color: red;" if is_unsaved else "color: black;")
|
|
568
|
+
title = about.__program_name__
|
|
569
|
+
if is_unsaved:
|
|
570
|
+
title += CONFIG["no_saved"]
|
|
571
|
+
self.setWindowTitle(title)
|
|
484
572
|
|
|
485
573
|
def func_toolbar(self):
|
|
486
574
|
toolbar = QToolBar()
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/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.7
|
|
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.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/SOURCES.txt
RENAMED
|
@@ -19,6 +19,10 @@ graphviz_code_viewer/data/ParallelGroupsTB.dot
|
|
|
19
19
|
graphviz_code_viewer/data/ParallelGroupsTB.svg
|
|
20
20
|
graphviz_code_viewer/data/TrafficLightStateMachine.dot
|
|
21
21
|
graphviz_code_viewer/data/TrafficLightStateMachine.svg
|
|
22
|
+
graphviz_code_viewer/data/gradient1.dot
|
|
23
|
+
graphviz_code_viewer/data/gradient1.svg
|
|
24
|
+
graphviz_code_viewer/data/gradient2.dot
|
|
25
|
+
graphviz_code_viewer/data/gradient2.svg
|
|
22
26
|
graphviz_code_viewer/icons/document-open.png
|
|
23
27
|
graphviz_code_viewer/icons/download-green.png
|
|
24
28
|
graphviz_code_viewer/icons/download.png
|
|
@@ -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.7"
|
|
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"}]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/download.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/emote-love.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/image.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/logo.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/logo.svg
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/status_help.png
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/icons/system-run.png
RENAMED
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/__init__.py
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/configure.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/resources.py
RENAMED
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer/modules/wabout.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphviz_code_viewer-0.1.6 → graphviz_code_viewer-0.1.7}/graphviz_code_viewer.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|