Commit 7dc1e8e7dffe3e652a73808707b8989e5a27ceee
1 parent
7e2b9343c2
Exists in
master
added drop class
Showing 2 changed files with 19 additions and 1 deletions Inline Diff
Makefile
View file @
7dc1e8e
PNGS = built/use_cases_diagram.png built/schema_diagram.png built/schema_graph.png | 1 | 1 | PNGS = built/use_cases_diagram.png built/schema_diagram.png built/schema_graph.png | |
PDFS = built/DesignUseCases.pdf built/screen_sequence_diagram.pdf | 2 | 2 | PDFS = built/DesignUseCases.pdf built/screen_sequence_diagram.pdf | |
SCREEN_SEQUENCE_PNGS = built/add_class.png | 3 | 3 | SCREEN_SEQUENCE_PNGS = built/add_class.png built/drop_class.png | |
4 | 4 | |||
all: built/ $(PNGS) $(PDFS) | 5 | 5 | all: built/ $(PNGS) $(PDFS) | |
6 | 6 | |||
built/: | 7 | 7 | built/: | |
mkdir -p built | 8 | 8 | mkdir -p built | |
9 | 9 | |||
built/schema_diagram.png: | 10 | 10 | built/schema_diagram.png: | |
sqlt-diagram --color -c 3 -t png -o built/schema_diagram.png --gutter 60 --from PostgreSQL db_schema.sql --title "Flashy" | 11 | 11 | sqlt-diagram --color -c 3 -t png -o built/schema_diagram.png --gutter 60 --from PostgreSQL db_schema.sql --title "Flashy" | |
12 | 12 | |||
built/schema_graph.png: | 13 | 13 | built/schema_graph.png: | |
sqlt-graph -o built/schema_graph.png --from PostgreSQL db_schema.sql | 14 | 14 | sqlt-graph -o built/schema_graph.png --from PostgreSQL db_schema.sql | |
15 | 15 | |||
built/%.png: %.dot | 16 | 16 | built/%.png: %.dot | |
dot -Tpng -o $@ $< | 17 | 17 | dot -Tpng -o $@ $< | |
18 | 18 | |||
built/%.png: screen_sequence_diagrams/%.dot | 19 | 19 | built/%.png: screen_sequence_diagrams/%.dot | |
dot -Tpng -o $@ $< | 20 | 20 | dot -Tpng -o $@ $< | |
21 | 21 | |||
built/screen_sequence_diagram.pdf: $(SCREEN_SEQUENCE_PNGS) | 22 | 22 | built/screen_sequence_diagram.pdf: $(SCREEN_SEQUENCE_PNGS) | |
convert $(SCREEN_SEQUENCE_PNGS) built/screen_sequence_diagram.pdf | 23 | 23 | convert $(SCREEN_SEQUENCE_PNGS) built/screen_sequence_diagram.pdf | |
24 | 24 | |||
built/%.pdf: %.tex | 25 | 25 | built/%.pdf: %.tex | |
cd built/; pdflatex ../$< | 26 | 26 | cd built/; pdflatex ../$< | |
cd built/; pdflatex ../$< | 27 | 27 | cd built/; pdflatex ../$< |
screen_sequence_diagrams/drop_class.dot
View file @
7dc1e8e
File was created | 1 | digraph G{ | ||
2 | ratio=0.75; | |||
3 | //rankdir="LR"; | |||
4 | node[shape = box]; | |||
5 | //splines=ortho; | |||
6 | nodesep=1.4; | |||
7 | "Sidebar Menu"[center=true, fillcolor="#aaaaff", style=filled,pos="0,0!"]; | |||
8 | "Controller"[center=true, fillcolor="#aaaaff", style=filled, shape = diamond]; | |||
9 | "User Check"[center=true, fillcolor="#aaaaff", style=filled]; | |||
10 | //labelfloat=true; | |||
11 | //lp=100; | |||
12 | ||||
13 | "Controller"[center=true, fillcolor="#aaaaff", style=filled, shape = diamond]; | |||
14 | "Sidebar Menu" -> "Controller" [label="DELETE"]; | |||
15 | "Controller" -> "User Check"; | |||
16 | "User Check"-> "Sidebar Menu"[label="User successfully dropped class"]; | |||
17 | "User Check"-> "Sidebar Menu"[label="User did not drop class"]; |