// Uncomment the following line to change the fontsize: // fontsize=14 ////////////////////////////////////////////////////////////////////////////////////////////// // Welcome to UMLet! // // Double-click on UML elements to add them to the diagram, or to copy them // Edit elements by modifying the text in this panel // Hold Ctrl to select multiple elements // Use Ctrl+mouse to select via lasso // // Use ± or Ctrl+mouse wheel to zoom // Drag a whole relation at its central square icon // // Press Ctrl+C to copy the whole diagram to the system clipboard (then just paste it to, eg, Word) // Edit the files in the "palettes" directory to create your own element palettes // // Select "Custom Elements > New..." to create new element types ////////////////////////////////////////////////////////////////////////////////////////////// // This text will be stored with each diagram; use it for notes.7com.umlet.element.base.Class2662114798Menu -- -- #Menu() /+~Menu()/ #addItem(MenuItem*) #removeItem(MenuItem*) #display() -- -- Base class for all Menuscom.umlet.element.base.Class266168147175TextMenu -- outputter: ostream title: string; spacer: char length: int -- #TextMenu(ostream&,string,char,int) #TextMenu(ostream&,string) /+~TextMenu()/ addItem(MenuItem*) removeItem(MenuItem*) display() doQuit() hasQuit(): bool showEntry(MenuItem*) com.umlet.element.base.Class7840259266MenuItem -- char trigger: char description: string* added: bool -- #MenuItem(char,const char*,Menu*); /+~MenuItem();/ /+doTrigger()/ /+checkTrigger(char)/ /+formatEntry(): const string/ /+getDescription(): const string/ /+getTrigger(): char/ /+add_to_menu(Menu*)/ /+wasAdded(): bool/ #setDescription(string); -- Responsibilities -- Store Items in a menu -- check a trigger, if the trigger matches call doTrigger() on subclass -- Constraints -- A MenuItem always belongs to a single -- Destruction is done by the owning menucom.umlet.element.base.Relation3924240534lt=<<<<- m1=1 m2=1...N21;21;392;21com.umlet.element.base.Relation315983483lt=<<-21;21;21;70com.umlet.element.base.Class79163025284ActionMenuItem -- -- #ActionMenuItem(char,const char*,Menu*,Action*) /+~ActionMenuItem()/ /+doTrigger()/ -- Responsibilities -- Call action.call() when the trigger is recieved com.umlet.element.base.Relation88224534398lt=<<-21;21;21;385com.umlet.element.base.Class1246371238182DisplayMenuItem -- string title; int length; char spacer; -- #DisplayMenuItem(Menu*, StringView *); #DisplayMenuItem(Menu*, StringView *, string, char, int); /+~DisplayMenuItem()/ /+doTrigger()/ /+checkTrigger(char)/ /+formatEntry(): const string/ /getDescription(): const string/ -- Responsibilities -- Display any kind of stringView within a Menu -- All trigger are ignoredcom.umlet.element.base.Class158940628784StringView -- -- #StringView() /+~StringView()/ /+toString(): const string/ -- Responsibilities -- Base class for anything that can be displayed as a Stringcom.umlet.element.base.Relation146342013934lt=<<<<- m1=1...N m2=121;21;126;21com.umlet.element.base.Relation882245447139lt=<<-21;21;21;105;434;105;434;126com.umlet.element.base.Class938385217154SeperatorItem -- spacer: char length: int -- #SeperatorItem(Menu*) #SeperatorItem(Menu*,char,int) /+virtual ~SeperatorItem()/ /+doTrigger()/ /+checkTrigger(char)/ /+getDescription(): const string/ /+formatEntry(): const string/ -- Responsibilities -- Display a seperating line of spacers com.umlet.element.base.Relation882245174153lt=<<-21;21;21;105;161;105;161;140com.umlet.element.base.Class51132225298<<composite>> SubMenuItem -- -- #SubMenuItem(char,const char*,Menu*,Menu*) /+~SubMenuItem()/ /+doTrigger()/ -- Responsibilities -- Produce a submenu when this item is triggeredcom.umlet.element.base.Relation39277132321lt=<<<<- m1=1 m2=1119;308;77;308;77;21;21;21com.umlet.element.base.Relation60924530790lt=<<-294;21;294;56;21;56;21;77com.umlet.element.base.Class532623154119<<Command>> Action -- -- #Action() /+~Action()/ /+call()/ /+undo()/ /+canUndo(): bool/ -- Responsibilities -- Perfom an Operation on callcom.umlet.element.base.Relation66563713934lt=<<<<- m1=0...N m2=1126;21;21;21com.umlet.element.base.Class658826238133<<Wrapper>> MethodAction -- executeMethod : boost::function<void()> -- #MethodAction(boost::function<void()>) /+~MethodAction()/ /+call()/ /+undo()/ /+canUndo(): bool/ -- Responsibilities -- Transform an ordinary method into an Actioncom.umlet.element.base.Relation581721202118lt=<<-21;21;21;70;189;70;189;105com.umlet.element.base.Class164523818256<<View>> View -- -- -- Responsibilities -- Anything that needs to be shown com.umlet.element.base.Relation171527334146lt=<<-21;21;21;133com.umlet.element.base.Class1428623287105<<Wrapper>> MethodStringView -- displayMethod: boost::function<string()> -- #MethodStringView(boost::function<string()>) /+~MethodStringView()/ /+toString(): const string/ -- Responsibilities -- Turn any method that returns a string into a StringViewcom.umlet.element.base.Class1771623329105<<Wrapper>> StreamStringView -- displayMethod: boost::function<void(ofstream *)> -- StreamStringView(boost::function<void(ofstream *)>) /+~StreamStringView()/ /+toString(): const string/ -- Responsibilities -- Turn any method that uses a stream for output into a StringViewcom.umlet.element.base.Relation1547469195167lt=<<-182;21;182;84;21;84;21;154com.umlet.element.base.Relation1708469244167lt=<<-21;21;21;84;231;84;231;154com.umlet.element.base.Class413826196119<<composite>> MakroAction -- -- #MakroAction(ActionSequence*) /+~MakroAction()/ /+call()/ /+undo()/ /+canUndo(): bool/ -- Responsibilities -- Group several small actions togethercom.umlet.element.base.Class140623231133ActionSequence -- -- #ActionSequence(); /+~ActionSequence();/ #addAction(Action*) #removeLastAction(): Action* #callAll() #undoAll() #canUndo(): bool -- Responsibilities -- Group several actions together for later usecom.umlet.element.base.Relation35066519534lt=<<<<- m1=0...N m2=1...N21;21;182;21com.umlet.element.base.Relation35069376202lt=<<<<- m1=1 m2=163;189;42;189;42;21;21;21com.umlet.element.base.Relation490721125118lt=<<-112;21;112;70;21;70;21;105