[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 |
|
---|
[3c5606] | 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>1057</x><y>42</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 | --
|
---|
[3c5606] | 32 | -- Base class for all Menus</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1057</x><y>189</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*)
|
---|
[3c5606] | 48 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1575</x><y>21</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
|
---|
[3c5606] | 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>1183</x><y>63</y><w>405</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 73 | m1=1
|
---|
[3c5606] | 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>1106</x><y>119</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>1582</x><y>651</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
|
---|
[3c5606] | 84 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1673</x><y>266</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>2037</x><y>392</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
|
---|
[3c5606] | 100 | -- All trigger are ignored</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2380</x><y>427</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
|
---|
[3c5606] | 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>2254</x><y>441</y><w>139</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 109 | m1=1...N
|
---|
[3c5606] | 110 | m2=1</panel_attributes><additional_attributes>21;21;126;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1673</x><y>266</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>1729</x><y>406</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
|
---|
[3c5606] | 124 | -- Display a seperating line of spacers </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1673</x><y>266</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>1302</x><y>343</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
|
---|
[3c5606] | 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>1183</x><y>98</y><w>132</w><h>321</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 134 | m1=1
|
---|
[3c5606] | 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>1400</x><y>266</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>1288</x><y>644</y><w>231</w><h>133</h></coordinates><panel_attributes><<Command>>
|
---|
[f82ac4e] | 136 | Action
|
---|
| 137 | --
|
---|
[3c5606] | 138 | name : string
|
---|
[f82ac4e] | 139 | --
|
---|
[3c5606] | 140 | #Action(std::string _name,bool _doRegister=true)
|
---|
[f82ac4e] | 141 | /+~Action()/
|
---|
| 142 | /+call()/
|
---|
| 143 | /+undo()/
|
---|
| 144 | /+canUndo(): bool/
|
---|
[3c5606] | 145 | /+getName(): const string/
|
---|
[f82ac4e] | 146 | --
|
---|
| 147 | Responsibilities
|
---|
[3c5606] | 148 | -- Perfom an Operation on call</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1498</x><y>658</y><w>97</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[f82ac4e] | 149 | m1=0...N
|
---|
[3c5606] | 150 | m2=1</panel_attributes><additional_attributes>84;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1484</x><y>847</y><w>238</w><h>133</h></coordinates><panel_attributes><<Wrapper>>
|
---|
[f82ac4e] | 151 | MethodAction
|
---|
| 152 | --
|
---|
| 153 | executeMethod : boost::function<void()>
|
---|
| 154 | --
|
---|
| 155 | #MethodAction(boost::function<void()>)
|
---|
| 156 | /+~MethodAction()/
|
---|
| 157 | /+call()/
|
---|
| 158 | /+undo()/
|
---|
| 159 | /+canUndo(): bool/
|
---|
| 160 | --
|
---|
| 161 | Responsibilities
|
---|
[3c5606] | 162 | -- Transform an ordinary method into an Action</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1386</x><y>756</y><w>223</w><h>104</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;56;210;56;210;91</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2436</x><y>259</y><w>182</w><h>56</h></coordinates><panel_attributes><<View>>
|
---|
[f82ac4e] | 163 | View
|
---|
| 164 | --
|
---|
| 165 | --
|
---|
| 166 | --
|
---|
| 167 | Responsibilities
|
---|
| 168 | -- Anything that needs to be shown
|
---|
[3c5606] | 169 | </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2506</x><y>294</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>2219</x><y>644</y><w>287</w><h>105</h></coordinates><panel_attributes><<Wrapper>>
|
---|
[f82ac4e] | 170 | MethodStringView
|
---|
| 171 | --
|
---|
| 172 | displayMethod: boost::function<string()>
|
---|
| 173 | --
|
---|
| 174 | #MethodStringView(boost::function<string()>)
|
---|
| 175 | /+~MethodStringView()/
|
---|
| 176 | /+toString(): const string/
|
---|
| 177 | --
|
---|
| 178 | Responsibilities
|
---|
[3c5606] | 179 | -- 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>2562</x><y>644</y><w>329</w><h>105</h></coordinates><panel_attributes><<Wrapper>>
|
---|
[f82ac4e] | 180 | StreamStringView
|
---|
| 181 | --
|
---|
| 182 | displayMethod: boost::function<void(ofstream *)>
|
---|
| 183 | --
|
---|
| 184 | StreamStringView(boost::function<void(ofstream *)>)
|
---|
| 185 | /+~StreamStringView()/
|
---|
| 186 | /+toString(): const string/
|
---|
| 187 | --
|
---|
| 188 | Responsibilities
|
---|
[3c5606] | 189 | -- 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>2338</x><y>490</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>2499</x><y>490</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>1022</x><y>847</y><w>196</w><h>119</h></coordinates><panel_attributes><<composite>>
|
---|
[816625] | 190 | MakroAction
|
---|
| 191 | --
|
---|
| 192 | --
|
---|
| 193 | #MakroAction(ActionSequence*)
|
---|
| 194 | /+~MakroAction()/
|
---|
| 195 | /+call()/
|
---|
| 196 | /+undo()/
|
---|
| 197 | /+canUndo(): bool/
|
---|
| 198 | --
|
---|
| 199 | Responsibilities
|
---|
[3c5606] | 200 | -- Group several small actions together</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>700</x><y>644</y><w>231</w><h>133</h></coordinates><panel_attributes>ActionSequence
|
---|
[816625] | 201 | --
|
---|
| 202 | --
|
---|
| 203 | #ActionSequence();
|
---|
| 204 | /+~ActionSequence();/
|
---|
| 205 | #addAction(Action*)
|
---|
| 206 | #removeLastAction(): Action*
|
---|
| 207 | #callAll()
|
---|
| 208 | #undoAll()
|
---|
| 209 | #canUndo(): bool
|
---|
| 210 | --
|
---|
| 211 | Responsibilities
|
---|
[3c5606] | 212 | -- Group several actions together for later use</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>910</x><y>686</y><w>391</w><h>34</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[816625] | 213 | m1=0...N
|
---|
[3c5606] | 214 | m2=1...N</panel_attributes><additional_attributes>21;21;378;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>910</x><y>714</y><w>125</w><h>202</h></coordinates><panel_attributes>lt=<<<<-
|
---|
[816625] | 215 | m1=1
|
---|
[3c5606] | 216 | m2=1</panel_attributes><additional_attributes>112;189;77;189;77;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1099</x><y>756</y><w>321</w><h>104</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>308;21;308;56;21;56;21;91</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1890</x><y>868</y><w>217</w><h>91</h></coordinates><panel_attributes><<singleton>>
|
---|
| 217 | ActionRegistry
|
---|
| 218 | --
|
---|
| 219 | --
|
---|
| 220 | getActionByName(const std::string) : Action*;
|
---|
| 221 | registerAction(Action*);
|
---|
| 222 | --
|
---|
| 223 | Responsibilities
|
---|
| 224 | -- Stores all actions by name for later retrieval
|
---|
| 225 | -- handle destruction of all registered actions</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1498</x><y>728</y><w>398</w><h>181</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>385;168;294;168;294;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1498</x><y>742</y><w>405</w><h>195</h></coordinates><panel_attributes>lt=<.
|
---|
| 226 | registers itself upon creation
|
---|
| 227 | </panel_attributes><additional_attributes>392;182;273;182;273;84;133;84;133;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1295</x><y>756</y><w>125</w><h>111</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>112;21;112;56;21;56;21;98</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1246</x><y>854</y><w>182</w><h>77</h></coordinates><panel_attributes>ErrorAction
|
---|
| 228 | --
|
---|
| 229 | --
|
---|
| 230 | /+call()/
|
---|
| 231 | /+undo()/
|
---|
| 232 | /+canUndo()/
|
---|
| 233 | --
|
---|
| 234 | Responsibilities
|
---|
| 235 | -- Display some kind of error Message</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>399</x><y>21</y><w>469</w><h>91</h></coordinates><panel_attributes><<Abstract Factory>>
|
---|
| 236 | <<Singleton>>
|
---|
| 237 | UIFactory
|
---|
| 238 | --
|
---|
| 239 | --
|
---|
| 240 | /+makeMainWindow(menuPopulaters,MoleculeListClass *, config *, periodentafel *, char *): MainWindow*/
|
---|
| 241 | /+makeDialog() : Dialog*/
|
---|
| 242 | --
|
---|
| 243 | Responsibilities
|
---|
| 244 | -- Handles creation of all UIElements</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>399</x><y>238</y><w>462</w><h>133</h></coordinates><panel_attributes><<Concrete Factory>>
|
---|
| 245 | TextUIFactory
|
---|
| 246 | --
|
---|
| 247 | --
|
---|
| 248 | /+makeMainWindow(menuPopulaters,MoleculeListClass *, config *, periodentafel *, char *): MainWindow*/
|
---|
| 249 | /+makeDialog() : Dialog*/
|
---|
| 250 | --
|
---|
| 251 | Responsibilities
|
---|
| 252 | -- Production of all kinds of TextWidgets</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>714</x><y>91</y><w>120</w><h>160</h></coordinates><panel_attributes>lt=<.
|
---|
| 253 | creates and stores</panel_attributes><additional_attributes>63;147;63;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>847</x><y>56</y><w>223</w><h>49</h></coordinates><panel_attributes>lt=<.
|
---|
| 254 | creates abstract</panel_attributes><additional_attributes>210;35;21;35</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>840</x><y>259</y><w>230</w><h>49</h></coordinates><panel_attributes>lt=<.
|
---|
| 255 | creates concrete</panel_attributes><additional_attributes>217;35;21;35</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>0</x><y>28</y><w>238</w><h>63</h></coordinates><panel_attributes>MainWindow
|
---|
| 256 | --
|
---|
| 257 | --
|
---|
| 258 | /+display()/
|
---|
| 259 | --
|
---|
| 260 | Responsibilities
|
---|
| 261 | -- Abstract base class for all kinds of MainWindows</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>217</x><y>35</y><w>195</w><h>49</h></coordinates><panel_attributes>lt=<.
|
---|
| 262 | creates abstract</panel_attributes><additional_attributes>21;35;182;35</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>21</x><y>259</y><w>196</w><h>56</h></coordinates><panel_attributes>TextWindow
|
---|
| 263 | --
|
---|
| 264 | --
|
---|
| 265 | /+display()/
|
---|
| 266 | --
|
---|
| 267 | Responsibilities
|
---|
| 268 | -- Special class for MainWindow in TextUIs</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>91</x><y>70</y><w>34</w><h>202</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;189</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>196</x><y>259</y><w>216</w><h>49</h></coordinates><panel_attributes>lt=<.
|
---|
| 269 | creates concrete
|
---|
| 270 | </panel_attributes><additional_attributes>21;35;203;35</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>560</x><y>91</y><w>34</w><h>160</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;147</additional_attributes></element></umlet_diagram> |
---|