[f82ac4e] | 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 |
|
---|
[816625] | 23 | // This text will be stored with each diagram; use it for notes.</help_text><zoom_level>7</zoom_level><element><type>com.umlet.element.base.Class</type><coordinates><x>266</x><y>21</y><w>147</w><h>98</h></coordinates><panel_attributes>Menu
|
---|
[f82ac4e] | 24 | --
|
---|
| 25 | --
|
---|
| 26 | #Menu()
|
---|
| 27 | /+~Menu()/
|
---|
| 28 | #addItem(MenuItem*)
|
---|
| 29 | #removeItem(MenuItem*)
|
---|
| 30 | #display()
|
---|
| 31 | --
|
---|
[816625] | 32 | -- Base class for all Menus</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>266</x><y>168</y><w>147</w><h>175</h></coordinates><panel_attributes>TextMenu
|
---|
[f82ac4e] | 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*)
|
---|
[816625] | 48 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>784</x><y>0</y><w>259</w><h>266</h></coordinates><panel_attributes>MenuItem
|
---|
[f82ac4e] | 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
|
---|
[816625] | 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>392</x><y>42</y><w>405</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 73 | m1=1
|
---|
[816625] | 74 | m2=1...N</panel_attributes><additional_attributes>21;21;392;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>315</x><y>98</y><w>34</w><h>83</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;70</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>791</x><y>630</y><w>252</w><h>84</h></coordinates><panel_attributes>ActionMenuItem
|
---|
[f82ac4e] | 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
|
---|
[816625] | 84 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>882</x><y>245</y><w>34</w><h>398</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;385</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1246</x><y>371</y><w>238</w><h>182</h></coordinates><panel_attributes>DisplayMenuItem
|
---|
[f82ac4e] | 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
|
---|
[816625] | 100 | -- All trigger are ignored</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1589</x><y>406</y><w>287</w><h>84</h></coordinates><panel_attributes>StringView
|
---|
[f82ac4e] | 101 | --
|
---|
| 102 | --
|
---|
| 103 | #StringView()
|
---|
| 104 | /+~StringView()/
|
---|
| 105 | /+toString(): const string/
|
---|
| 106 | --
|
---|
| 107 | Responsibilities
|
---|
[816625] | 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>1463</x><y>420</y><w>139</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 109 | m1=1...N
|
---|
[816625] | 110 | m2=1</panel_attributes><additional_attributes>21;21;126;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>882</x><y>245</y><w>447</w><h>139</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;105;434;105;434;126</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>938</x><y>385</y><w>217</w><h>154</h></coordinates><panel_attributes>SeperatorItem
|
---|
[f82ac4e] | 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
|
---|
[816625] | 124 | -- Display a seperating line of spacers </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>882</x><y>245</y><w>174</w><h>153</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;105;161;105;161;140</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>511</x><y>322</y><w>252</w><h>98</h></coordinates><panel_attributes><<composite>>
|
---|
[f82ac4e] | 125 | SubMenuItem
|
---|
| 126 | --
|
---|
| 127 | --
|
---|
| 128 | #SubMenuItem(char,const char*,Menu*,Menu*)
|
---|
| 129 | /+~SubMenuItem()/
|
---|
| 130 | /+doTrigger()/
|
---|
| 131 | --
|
---|
| 132 | Responsibilities
|
---|
[816625] | 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>392</x><y>77</y><w>132</w><h>321</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 134 | m1=1
|
---|
[816625] | 135 | m2=1</panel_attributes><additional_attributes>119;308;77;308;77;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>609</x><y>245</y><w>307</w><h>90</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>294;21;294;56;21;56;21;77</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>532</x><y>623</y><w>154</w><h>119</h></coordinates><panel_attributes><<Command>>
|
---|
[f82ac4e] | 136 | Action
|
---|
| 137 | --
|
---|
| 138 | --
|
---|
| 139 | #Action()
|
---|
| 140 | /+~Action()/
|
---|
| 141 | /+call()/
|
---|
| 142 | /+undo()/
|
---|
| 143 | /+canUndo(): bool/
|
---|
| 144 | --
|
---|
| 145 | Responsibilities
|
---|
[816625] | 146 | -- Perfom an Operation on call</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>665</x><y>637</y><w>139</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 147 | m1=0...N
|
---|
[816625] | 148 | m2=1</panel_attributes><additional_attributes>126;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>658</x><y>826</y><w>238</w><h>133</h></coordinates><panel_attributes><<Wrapper>>
|
---|
[f82ac4e] | 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
|
---|
[816625] | 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>581</x><y>721</y><w>202</w><h>118</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;70;189;70;189;105</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1645</x><y>238</y><w>182</w><h>56</h></coordinates><panel_attributes><<View>>
|
---|
[f82ac4e] | 161 | View
|
---|
| 162 | --
|
---|
| 163 | --
|
---|
| 164 | --
|
---|
| 165 | Responsibilities
|
---|
| 166 | -- Anything that needs to be shown
|
---|
[816625] | 167 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1715</x><y>273</y><w>34</w><h>146</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;133</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1428</x><y>623</y><w>287</w><h>105</h></coordinates><panel_attributes><<Wrapper>>
|
---|
[f82ac4e] | 168 | MethodStringView
|
---|
| 169 | --
|
---|
| 170 | displayMethod: boost::function<string()>
|
---|
| 171 | --
|
---|
| 172 | #MethodStringView(boost::function<string()>)
|
---|
| 173 | /+~MethodStringView()/
|
---|
| 174 | /+toString(): const string/
|
---|
| 175 | --
|
---|
| 176 | Responsibilities
|
---|
[816625] | 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>1771</x><y>623</y><w>329</w><h>105</h></coordinates><panel_attributes><<Wrapper>>
|
---|
[f82ac4e] | 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
|
---|
[816625] | 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>1547</x><y>469</y><w>195</w><h>167</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>182;21;182;84;21;84;21;154</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1708</x><y>469</y><w>244</w><h>167</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;84;231;84;231;154</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>413</x><y>826</y><w>196</w><h>119</h></coordinates><panel_attributes><<composite>>
|
---|
| 188 | MakroAction
|
---|
| 189 | --
|
---|
| 190 | --
|
---|
| 191 | #MakroAction(ActionSequence*)
|
---|
| 192 | /+~MakroAction()/
|
---|
| 193 | /+call()/
|
---|
| 194 | /+undo()/
|
---|
| 195 | /+canUndo(): bool/
|
---|
| 196 | --
|
---|
| 197 | Responsibilities
|
---|
| 198 | -- Group several small actions together</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>140</x><y>623</y><w>231</w><h>133</h></coordinates><panel_attributes>ActionSequence
|
---|
| 199 | --
|
---|
| 200 | --
|
---|
| 201 | #ActionSequence();
|
---|
| 202 | /+~ActionSequence();/
|
---|
| 203 | #addAction(Action*)
|
---|
| 204 | #removeLastAction(): Action*
|
---|
| 205 | #callAll()
|
---|
| 206 | #undoAll()
|
---|
| 207 | #canUndo(): bool
|
---|
| 208 | --
|
---|
| 209 | Responsibilities
|
---|
| 210 | -- Group several actions together for later use</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>350</x><y>665</y><w>195</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
| 211 | m1=0...N
|
---|
| 212 | m2=1...N</panel_attributes><additional_attributes>21;21;182;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>350</x><y>693</y><w>76</w><h>202</h></coordinates><panel_attributes>lt=<<<<-
|
---|
| 213 | m1=1
|
---|
| 214 | m2=1</panel_attributes><additional_attributes>63;189;42;189;42;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>490</x><y>721</y><w>125</w><h>118</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>112;21;112;70;21;70;21;105</additional_attributes></element></umlet_diagram> |
---|