TCL TK Introduction to third Use case
Use Case - 3 : Saving and Printing
What was done:
Functionality to most of the menu items were made. The printing feature
was added. New save/open dialog was added that allowed backward and
forward directory navigation. The "Save" and "Save As" had the same
functionality. We removed the "Close" item, because it was the same
as "New". "Save work" warning were added.
Bugs:
Most of these bugs were in the Use Case - 2, but weren't spotted.
1. The alternation edge bends points would get created wrong.
2. The Tcl/Tk code had problems with edges and verities that used the
same name. Error boxes or object loosing where they were on screen.
3. Clearing the screen wouldn't remove the graph from C++'s data structure.
Any refresh from delete or rename brings back what you thought was
deleted.
4. The last vertex on a screen of only verities would loose it's attachment
to it's label...until the screen was refresh by C++ with either a
rename ot delet...only to loose it again.
5. Edges could not begin and end from the same vertex.
Fixes:
The fixes here do not show up in Use Case - 3. But will be seen in 4.
1. Since the items in an Alter edge is double (|| lines) we just divide
the number of items by two and things work correctly in Constr
edges.
2. Being fixed for Use Case - 4. The C++ will be taking full control of
tracking object with a unique serial number. Thus Tcl/Tk
id everything with the number rather than the label name
as it was doing.
3. The PP Group gave us a cppClear command that will allow us to
clear the C++ object data.
4. Missed a vertex label setting procedure that needed to be done. Doh!
5. Fixed with a hack. When an edge like this is being created it makes
a line with default bend edges around the vertex. (These bend
points can only be moved. Making/Deleting them is not allowed
on these line it is a hack. Oh well...)
-------------------------------------------------
Use Case 3 -
Lots of new stuff was added to dialogs.tcl and mainwin.tcl
for saving and printing.