Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated README. fixed bug in arrowhead handling

  • Loading branch information...
commit fd7a1e3627a9a44f35c64fdf7cab5ca0d8bcce59 1 parent 1a1b7ea
Michael Johnston authored
Showing with 21 additions and 6 deletions.
  1. +19 −4 README
  2. +2 −2 Templates/Sequence Macros.tmTemplate/sequence.pic
23 README
View
@@ -1,8 +1,21 @@
-TextMate bundle for writing Sequence Diagrams using pic
+TextMate bundle for writing Sequence Diagrams using pic.
-Contains the sequence diagram macros from http://www.umlgraph.org/ in a template, with a few tweaks.
+Contains the sequence diagram macros from http://www.umlgraph.org/ in a template, with some additions & tweaks:
-Has a command for previewing the sequence diagram in Preview, and for saving it to pdf (requires pic2plot and epstopdf).
+ * objects have a gray fill. Just because this makes diagrams much easier for me to read.
+ * also turned off underline of object labels. If want to be more uml-compliant need to add two
+ object prototypes: one with underline & one without. For my purposes bold text in filled box
+ is just much easier to read.
+ * messages to inactive objects auto-activate them. There is currently no way to override this.
+ * added action message for message from <<actor>> -- start point is a small dark circle
+ * fixed arrowhead bug
+ * added divider_line (dashed line across diagram)
+ * added section_line (double line across diagram)
+ * added begin_group...end_group to draw a group box around objects
+ * added message_self to draw common way of showing messages to self in one call
+ * added title, which just prints text & does a step.**
+
+The bundle has a command for previewing the sequence diagram in Preview, and for saving it to pdf (requires pic2plot and epstopdf).
pic2plot is contained in the umlgraph package at http://www.umlgraph.org/
@@ -14,4 +27,6 @@ To install bundle with git:
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/lastobelus/sequence_diagram.tmbundle.git
- osascript -e 'tell app "TextMate" to reload bundles'
+ osascript -e 'tell app "TextMate" to reload bundles'
+
+**Can anyone tell me how to make font size changes in gnu pic2plot? The only way of many that I tried that worked was command "PTSIZE xx", which only works using groff -p, but groff -p totally mangles my documents in other ways.
4 Templates/Sequence Macros.tmTemplate/sequence.pic
View
@@ -306,7 +306,7 @@ define step {
# Switch to asynchronous messages
define async {
- if(arrowhead != 0) {
+ if(arrowhead != 0) then {
arrowhead = 0;
arrowwid = async_arrowwid;
}
@@ -314,7 +314,7 @@ define async {
# Switch to synchronous messages
define sync {
- if(arrowhead != 1) {
+ if (arrowhead != 1) then {
arrowhead = 1;
arrowwid = sync_arrowwid;
}
Please sign in to comment.
Something went wrong with that request. Please try again.