| 1 | <?xml version="1.0" encoding="UTF-8"?><umlet_diagram><help_text>// Uncomment the following line to change the fontsize:
 | 
|---|
| 2 | // fontsize=14
 | 
|---|
| 3 | 
 | 
|---|
| 4 | 
 | 
|---|
| 5 | //////////////////////////////////////////////////////////////////////////////////////////////
 | 
|---|
| 6 | // Welcome to UMLet!
 | 
|---|
| 7 | //
 | 
|---|
| 8 | // Double-click on UML elements to add them to the diagram, or to copy them
 | 
|---|
| 9 | // Edit elements by modifying the text in this panel
 | 
|---|
| 10 | // Hold Ctrl to select multiple elements
 | 
|---|
| 11 | // Use Ctrl+mouse to select via lasso
 | 
|---|
| 12 | //
 | 
|---|
| 13 | // Use ± or Ctrl+mouse wheel to zoom
 | 
|---|
| 14 | // Drag a whole relation at its central square icon
 | 
|---|
| 15 | //
 | 
|---|
| 16 | // Press Ctrl+C to copy the whole diagram to the system clipboard (then just paste it to, eg, Word)
 | 
|---|
| 17 | // Edit the files in the "palettes" directory to create your own element palettes
 | 
|---|
| 18 | //
 | 
|---|
| 19 | // Select "Custom Elements > New..." to create new element types
 | 
|---|
| 20 | //////////////////////////////////////////////////////////////////////////////////////////////
 | 
|---|
| 21 | 
 | 
|---|
| 22 | 
 | 
|---|
| 23 | // This text will be stored with each diagram;  use it for notes.</help_text><zoom_level>10</zoom_level><element><type>com.umlet.element.base.Class</type><coordinates><x>0</x><y>330</y><w>210</w><h>140</h></coordinates><panel_attributes>Menu
 | 
|---|
| 24 | --
 | 
|---|
| 25 | --
 | 
|---|
| 26 | #Menu()
 | 
|---|
| 27 | /+~Menu()/
 | 
|---|
| 28 | #addItem(MenuItem*)
 | 
|---|
| 29 | #removeItem(MenuItem*)
 | 
|---|
| 30 | #display()
 | 
|---|
| 31 | --
 | 
|---|
| 32 | -- Base class for all Menus</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>0</x><y>540</y><w>210</w><h>250</h></coordinates><panel_attributes>TextMenu
 | 
|---|
| 33 | --
 | 
|---|
| 34 | outputter: ostream
 | 
|---|
| 35 | title: string;
 | 
|---|
| 36 | spacer: char
 | 
|---|
| 37 | length: int
 | 
|---|
| 38 | --
 | 
|---|
| 39 | #TextMenu(ostream&,string,char,int)
 | 
|---|
| 40 | #TextMenu(ostream&,string)
 | 
|---|
| 41 | /+~TextMenu()/
 | 
|---|
| 42 | addItem(MenuItem*)
 | 
|---|
| 43 | removeItem(MenuItem*)
 | 
|---|
| 44 | display()
 | 
|---|
| 45 | doQuit()
 | 
|---|
| 46 | hasQuit(): bool
 | 
|---|
| 47 | showEntry(MenuItem*)
 | 
|---|
| 48 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>740</x><y>300</y><w>370</w><h>380</h></coordinates><panel_attributes>MenuItem
 | 
|---|
| 49 | --
 | 
|---|
| 50 | char trigger: char
 | 
|---|
| 51 | description: string*
 | 
|---|
| 52 | added: bool
 | 
|---|
| 53 | --
 | 
|---|
| 54 | #MenuItem(char,const char*,Menu*);
 | 
|---|
| 55 | /+~MenuItem();/
 | 
|---|
| 56 | /+doTrigger()/
 | 
|---|
| 57 | /+checkTrigger(char)/
 | 
|---|
| 58 | /+formatEntry(): const string/
 | 
|---|
| 59 | /+getDescription(): const string/
 | 
|---|
| 60 | /+getTrigger(): char/
 | 
|---|
| 61 | /+add_to_menu(Menu*)/
 | 
|---|
| 62 | /+wasAdded(): bool/
 | 
|---|
| 63 | #setDescription(string);
 | 
|---|
| 64 | --
 | 
|---|
| 65 | Responsibilities
 | 
|---|
| 66 | -- Store Items in a menu 
 | 
|---|
| 67 | -- check a trigger, 
 | 
|---|
| 68 |      if the trigger matches call doTrigger() on subclass
 | 
|---|
| 69 | --
 | 
|---|
| 70 | Constraints
 | 
|---|
| 71 | -- A MenuItem always belongs to a single
 | 
|---|
| 72 | -- Destruction is done by the owning menu</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>180</x><y>360</y><w>580</w><h>50</h></coordinates><panel_attributes>lt=<<<<-
 | 
|---|
| 73 | m1=1
 | 
|---|
| 74 | m2=1...N</panel_attributes><additional_attributes>30;30;560;30</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>70</x><y>440</y><w>50</w><h>120</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;100</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>750</x><y>1200</y><w>360</w><h>120</h></coordinates><panel_attributes>ActionMenuItem
 | 
|---|
| 75 | --
 | 
|---|
| 76 | 
 | 
|---|
| 77 | --
 | 
|---|
| 78 | #ActionMenuItem(char,const char*,Menu*,Action*)
 | 
|---|
| 79 | /+~ActionMenuItem()/
 | 
|---|
| 80 | /+doTrigger()/
 | 
|---|
| 81 | --
 | 
|---|
| 82 | Responsibilities
 | 
|---|
| 83 | -- Call action.call() when the trigger is recieved
 | 
|---|
| 84 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>880</x><y>650</y><w>50</w><h>570</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;550</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1400</x><y>830</y><w>340</w><h>260</h></coordinates><panel_attributes>DisplayMenuItem
 | 
|---|
| 85 | --
 | 
|---|
| 86 | string title;
 | 
|---|
| 87 | int length;
 | 
|---|
| 88 | char spacer;
 | 
|---|
| 89 | --
 | 
|---|
| 90 | #DisplayMenuItem(Menu*, StringView *);
 | 
|---|
| 91 | #DisplayMenuItem(Menu*, StringView *, string, char, int);
 | 
|---|
| 92 | /+~DisplayMenuItem()/
 | 
|---|
| 93 | /+doTrigger()/
 | 
|---|
| 94 | /+checkTrigger(char)/
 | 
|---|
| 95 | /+formatEntry(): const string/
 | 
|---|
| 96 | /getDescription(): const string/
 | 
|---|
| 97 | --
 | 
|---|
| 98 | Responsibilities
 | 
|---|
| 99 | -- Display any kind of stringView within a Menu
 | 
|---|
| 100 | -- All trigger are ignored</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1890</x><y>880</y><w>410</w><h>120</h></coordinates><panel_attributes>StringView
 | 
|---|
| 101 | --
 | 
|---|
| 102 | --
 | 
|---|
| 103 | #StringView()
 | 
|---|
| 104 | /+~StringView()/
 | 
|---|
| 105 | /+toString(): const string/
 | 
|---|
| 106 | --
 | 
|---|
| 107 | Responsibilities
 | 
|---|
| 108 | -- Base class for anything that can be displayed as a String</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1710</x><y>900</y><w>190</w><h>40</h></coordinates><panel_attributes>lt=<<<<-
 | 
|---|
| 109 | m1=1...N
 | 
|---|
| 110 | m2=1</panel_attributes><additional_attributes>30;30;180;30</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>880</x><y>650</y><w>640</w><h>200</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;150;620;150;620;180</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>960</x><y>850</y><w>310</w><h>220</h></coordinates><panel_attributes>SeperatorItem
 | 
|---|
| 111 | --
 | 
|---|
| 112 | spacer: char
 | 
|---|
| 113 | length: int
 | 
|---|
| 114 | --
 | 
|---|
| 115 | #SeperatorItem(Menu*)
 | 
|---|
| 116 | #SeperatorItem(Menu*,char,int)
 | 
|---|
| 117 | /+virtual ~SeperatorItem()/
 | 
|---|
| 118 | /+doTrigger()/
 | 
|---|
| 119 | /+checkTrigger(char)/
 | 
|---|
| 120 | /+getDescription(): const string/
 | 
|---|
| 121 | /+formatEntry(): const string/
 | 
|---|
| 122 | --
 | 
|---|
| 123 | Responsibilities
 | 
|---|
| 124 | -- Display a seperating line of spacers </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>880</x><y>650</y><w>250</w><h>220</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;150;230;150;230;200</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>350</x><y>760</y><w>360</w><h>140</h></coordinates><panel_attributes><<composite>>
 | 
|---|
| 125 | SubMenuItem
 | 
|---|
| 126 | --
 | 
|---|
| 127 | --
 | 
|---|
| 128 | #SubMenuItem(char,const char*,Menu*,Menu*)
 | 
|---|
| 129 | /+~SubMenuItem()/
 | 
|---|
| 130 | /+doTrigger()/
 | 
|---|
| 131 | --
 | 
|---|
| 132 | Responsibilities
 | 
|---|
| 133 | -- Produce a submenu when this item is triggered</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>180</x><y>410</y><w>190</w><h>460</h></coordinates><panel_attributes>lt=<<<<-
 | 
|---|
| 134 | m1=1
 | 
|---|
| 135 | m2=1</panel_attributes><additional_attributes>170;440;110;440;110;30;30;30</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>490</x><y>650</y><w>440</w><h>130</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>420;30;420;80;30;80;30;110</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>380</x><y>1190</y><w>220</w><h>170</h></coordinates><panel_attributes><<Command>>
 | 
|---|
| 136 | Action
 | 
|---|
| 137 | --
 | 
|---|
| 138 | --
 | 
|---|
| 139 | #Action()
 | 
|---|
| 140 | /+~Action()/
 | 
|---|
| 141 | /+call()/
 | 
|---|
| 142 | /+undo()/
 | 
|---|
| 143 | /+canUndo(): bool/
 | 
|---|
| 144 | --
 | 
|---|
| 145 | Responsibilities
 | 
|---|
| 146 | -- Perfom an Operation on call</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>570</x><y>1210</y><w>200</w><h>50</h></coordinates><panel_attributes>lt=<<<<-
 | 
|---|
| 147 | m1=0...N
 | 
|---|
| 148 | m2=1</panel_attributes><additional_attributes>180;30;30;30</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>320</x><y>1470</y><w>340</w><h>190</h></coordinates><panel_attributes><<Wrapper>>
 | 
|---|
| 149 | MethodAction
 | 
|---|
| 150 | --
 | 
|---|
| 151 | executeMethod : boost::function<void()>  
 | 
|---|
| 152 | --
 | 
|---|
| 153 | #MethodAction(boost::function<void()>)
 | 
|---|
| 154 | /+~MethodAction()/
 | 
|---|
| 155 | /+call()/
 | 
|---|
| 156 | /+undo()/
 | 
|---|
| 157 | /+canUndo(): bool/
 | 
|---|
| 158 | --
 | 
|---|
| 159 | Responsibilities
 | 
|---|
| 160 | -- Transform an ordinary method into an Action</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>450</x><y>1330</y><w>50</w><h>160</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;140</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1970</x><y>640</y><w>260</w><h>80</h></coordinates><panel_attributes><<View>>
 | 
|---|
| 161 | View
 | 
|---|
| 162 | --
 | 
|---|
| 163 | --
 | 
|---|
| 164 | --
 | 
|---|
| 165 | Responsibilities
 | 
|---|
| 166 | -- Anything that needs to be shown
 | 
|---|
| 167 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2070</x><y>690</y><w>40</w><h>200</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;190</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1660</x><y>1190</y><w>410</w><h>150</h></coordinates><panel_attributes><<Wrapper>>
 | 
|---|
| 168 | MethodStringView
 | 
|---|
| 169 | --
 | 
|---|
| 170 | displayMethod: boost::function<string()>
 | 
|---|
| 171 | --
 | 
|---|
| 172 | #MethodStringView(boost::function<string()>)
 | 
|---|
| 173 | /+~MethodStringView()/
 | 
|---|
| 174 | /+toString(): const string/
 | 
|---|
| 175 | --
 | 
|---|
| 176 | Responsibilities
 | 
|---|
| 177 | -- Turn any method that returns a string into a StringView</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2150</x><y>1190</y><w>470</w><h>150</h></coordinates><panel_attributes><<Wrapper>>
 | 
|---|
| 178 | StreamStringView
 | 
|---|
| 179 | --
 | 
|---|
| 180 | displayMethod: boost::function<void(ofstream *)>
 | 
|---|
| 181 | --
 | 
|---|
| 182 | StreamStringView(boost::function<void(ofstream *)>)
 | 
|---|
| 183 | /+~StreamStringView()/
 | 
|---|
| 184 | /+toString(): const string/
 | 
|---|
| 185 | --
 | 
|---|
| 186 | Responsibilities
 | 
|---|
| 187 | -- Turn any method that uses a stream for output into a StringView</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1830</x><y>970</y><w>270</w><h>230</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>260;30;260;120;30;120;30;220</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2060</x><y>970</y><w>340</w><h>230</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>30;30;30;120;330;120;330;220</additional_attributes></element></umlet_diagram> | 
|---|