Track ChangesDifferent development approaches to implement track changes for models.RE: Track Change with Comments v_2Mehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1661882014-08-29T12:55:01Z2014-08-29T12:24:46ZThe package below is the second ver sion of creating comments. This package contains a functionality that enables the user to switch to the 'Comment Mode' and back. In this 'Comment Mode' the user can create/delete comments. The created comments<ol style="list-style: decimal inside;"><li>give also information about the name of the current user and the creating time.</li><li>are fixed in the 'Comment Area'</li><li>are saved in the record table 'Comment Table'.</li></ol><span style="font-size: 16px">Download:</span><br /> Library:<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library_v0.2/BIN/Track%20Canges%20-%20CommentBox%20Library%20v2.0.abl">Track Canges - CommentBox Library v2.0.abl</a><br /> GraphReps:<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library_v0.2/DOC/ModelGraphRepTrackChange.leo">ModelGraphRepTrackChange.leo</a> <br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library_v0.2/DOC/TaskClassGraphRep.leo">TaskClassGraphRep.leo</a><br /> AdoScripts:<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library_v0.2/DOC/WriteComment.asc">WriteComment.asc</a><br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library_v0.2/DOC/ClearComment.asc">ClearComment.asc</a><br /><br /><span style="font-size: 16px">To build this functionality, please follow the steps below</span><ol style="list-style: decimal inside;"><li><span style="font-size: 16px"></span><span style="font-size: 16px">a) Create __ModelTypeMetaData__ with the following attributes:<br /></span> -- ModelGraphRepTrackChange (Longstring)<br /> -- CommentModeAttrRep (Longstring)<br /> -- Comment Mode (Enumeration) <br /> -- CommentAreaSize (Enumeration)<br /> -- ModelingAreaSize (Enumeration)<br /> -- TypeSize (Enumeration)<br /><span style="font-size: 16px">b) Define Modeltype with the corresponding 'AttrRep' and 'GraphRep'<br /><br /></span></li><li><span style="font-size: 16px">Create Task-class with the following attributes:</span><br />-- ClearComment (Programcall)<br />-- Comment (Longstring)<br />-- CommentAreaSizeExp (Expression)<br />-- CommentBox (Enumeration)<br />-- CommentInfo (String)<br />-- CommentMode (Expression)<br />-- CommentTable (Record)<br />-- WriteComment (Programcall)<br />-- ModelingAreaSizeExp (Expression)</li><li><span style="font-size: 16px">Create Start-class<br /></span></li><li><span style="font-size: 16px">Create End-class<br /></span></li><li><span style="font-size: 16px">Create the connector any2any<br /></span></li></ol><br /><br /><span style="font-size: 16px">The screenshots below should give you an overview of the functionalties.<br /></span><br /><span style="font-size: 16px"><span style="color: #ff0000">1. Switch to Comment mode</span><br /></span><br /><img src="http://www.adoxx.org/live/documents/10157/162590/CommentMode.png/6817599e-5ae3-4b2f-b92e-6b77af5b21f4?t=1409323761877" /><br /><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/CommentMode1.png/409ca0a0-b2df-49eb-a816-50dc172e549f?t=1409324024950" /><br /><br /><span style="color: #ff0000"><span style="font-size: 16px">2. Add Comment HOTSPOT</span></span><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/HOTSPOT.png/9ac97ed0-582e-4ca2-8c8d-5fd1c210acb4?t=1409320436963" /> <br /><br /><span style="color: #ff0000"><span style="font-size: 16px">3. Write your comment</span></span><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/EDITBOX.png/28d9c330-687a-4a9e-90ef-e7177c5e01b2?t=1409321788542" /><br /><br /><br /><span style="color: #ff0000"><span style="font-size: 16px">4. Display Comment + Info</span></span><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/CommentInput.png/8928f20a-1abf-4b53-8370-4673fa338a81?t=1409323385823" /><br /><br /><br /><span style="font-size: 16px"><span style="color: #ff0000">5. Clear Comment HOTSPOT</span></span><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/ClearComment.png/ce37a6a6-c4ab-44ac-beab-efb575dab937?t=1409321905517" /><br /><br /><br /><span style="color: #ff0000"><span style="font-size: 16px">6. Save comment in a record table</span></span><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/Table.png/c3739ccf-3d08-4924-95e2-3485768e30ad?t=1409322247910" /><br /><br /><br /><br /> Mehmet Albayrak2014-08-29T12:24:46ZRE: Track Change with CommentsMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1646282014-08-26T09:37:29Z2014-08-25T10:45:48ZThe following package provides a functionality for an object to create/delete comment boxes on the right handside as modeling nodes. For this purpose the "HOTSPOT" functionality of the GraphRep is combined with a "Pragramcall"-attribute to create/delete the comment box as you can see below. <br /><br /><strong><span style="font-size: 16px">Download:</span><br /></strong> Library<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library/BIN/Track%20Changes%20-%20Create_CommentBox_Library%20v1.0.abl">Track Changes - Create_CommentBox_Library v1.0.abl<br /></a> AdoScripts<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library/DOC/WriteComment.asc">WriteComment.asc</a> <br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/3_TrackChanges_CreateCommentBox_Library/DOC/ClearComment.asc">ClearComment.asc</a> <br /><br /><strong><span style="font-size: 16px">ADOxx Realisation Hands On:</span><br /><br />1) </strong><span style="font-size: 16px">MODELING LANGUAGE: <br /> Create the following four classes:</span><br /><ul style="list-style: disc inside;"><li><span style="font-size: 16px">Start-Class<br /><br /></span></li><li><span style="font-size: 16px"></span><span style="font-size: 16px">Task-Class;<br />including a hotspot on the right upper corner which triggers the Programcall: WriteComment.asc (see above). <br /><span style="font-size: 16px">Notice: This package provides only a simple positioning. </span><br /><br /></span><span style="font-size: 16px"></span><div class="code"><span class="code-lines"> 1</span>GRAPHREP<br /><span class="code-lines"> 2</span>PEN color:black<br /><span class="code-lines"> 3</span>FILL r:220 g:220 b:220 <br /><span class="code-lines"> 4</span>RECTANGLE x:-1.5cm y:0cm w:3cm h:1.5cm<br /><span class="code-lines"> 5</span><br /><span class="code-lines"> 6</span>FILL color:lemonchiffon<br /><span class="code-lines"> 7</span>RECTANGLE x:1.5cm y:-0.5cm w:0.7cm h:0.5cm<br /><span class="code-lines"> 8</span>SET coli:"darkslategray"<br /><span class="code-lines"> 9</span>STRETCH off SHADOW off<br /><span class="code-lines">10</span>AVAL ed:"WriteComment" <br /><span class="code-lines">11</span><br /><span class="code-lines">12</span><br /><span class="code-lines">13</span>FONT "Wingdings" h:16pt color: (coli) <br /><span class="code-lines">14</span>TEXT "!" x:1.6cm y:-0.55cm w:0.5cm h:.5cm <br /><span class="code-lines">15</span><br /><span class="code-lines">16</span>HOTSPOT "WriteComment" x:1.5cm y:-0.5cm w:0.7cm h:0.5cm text: "Write Comment"<br /></div></li></ul style="list-style: disc inside;"><span style="font-size: 16px"></span><br /><br /><ul style="list-style: disc inside;"><li><span style="font-size: 16px">Comment-Class;<br />including a hotspot which triggers the Programcall: ClearComment.asc (see above)<br /><br /></span><div class="code"><span class="code-lines"> 1</span>GRAPHREP layer:0 sizing:asymmetrical<br /><span class="code-lines"> 2</span>FONT h: (PT 8)<br /><span class="code-lines"> 3</span>PEN color:red outline<br /><span class="code-lines"> 4</span>FILL color:lemonchiffon<br /><span class="code-lines"> 5</span>RECTANGLE x:c y:c w:6cm h:1.5cm<br /><span class="code-lines"> 6</span>ATTR "Name" line-break:words x:.2cm y:.05cm <br /><span class="code-lines"> 7</span>ATTRBOX "Comment" x:0.2cm y: 0.45cm w:5.2 h:1.3cm<br /><span class="code-lines"> 8</span>ATTR "Comment" x:0.2cm y: 0.45cm w:5.2cm h:1.3cm line-break:words row:3<br /><span class="code-lines"> 9</span><br /><span class="code-lines">10</span>RECTANGLE x:6cm y:-0.5cm w:0.7cm h:.5cm<br /><span class="code-lines">11</span>PEN w:0.07cm color:red<br /><span class="code-lines">12</span>LINE x1:6.1cm y1:-0.1cm x2:6.6cm y2:-0.4cmLINE x1:6.6cm y1:-0.1cm x2:6.1cm y2:-0.4cm<br /><span class="code-lines">13</span><br /><span class="code-lines">14</span>HOTSPOT "Clear Comment" x:6cm y:-0.5cm w:0.7cm h:.5cm text: "Clear Comment"<br /></div></li></ul style="list-style: disc inside;"><span style="font-size: 16px"></span><br /><br /><ul style="list-style: disc inside;"><li><span style="font-size: 16px">E</span><span style="font-size: 16px">nd-Class</span><span style="font-size: 16px"><br /></span></li></ul style="list-style: disc inside;"><span style="font-size: 16px"></span><br />The above mentioned HOTSPOT for creating a comment box is placed on the right upper corner of the object and is marked with a pen in a rectangle. <br /> <br /> <img src="http://www.adoxx.org/live/documents/10157/162590/Comment.png/afc252cc-d584-48ec-a8e1-dd0ed5931f61?t=1408971037420" /><br /><br /><br /><br />You can find the HOTSPOT for deleting the comment box right upper corner of the comment box.<br /><br /> <img src="http://www.adoxx.org/live/documents/10157/162590/Comment_1.png/91516ac6-7a80-4ba2-8f72-730dd9ee2267?t=1408971825154" />Mehmet Albayrak2014-08-25T10:45:48ZRE: Track Change of Moved ObjectsMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1632462014-08-21T07:12:19Z2014-08-21T07:12:19ZThe following package provides a notification that the position of an object is changed by creating a red rectangle around the object. <br />For this purpose the event handler "SetAttributeValue" is used, which is triggered after the the position of an object is changed. <br /><br /><strong>Download:</strong><br /> Library:<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/2_TrackChanges_PostionChange_Library/BIN/Track%20Changes%20-%20PostionChangeLibrary%20v1.0.abl">Track Changes - PostionChangeLibrary v1.0.abl</a><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/PositionChange.png/ff792a67-5b03-41b0-98a5-78e5d677caa4?t=1408611109033" /><br /><br /><br /><br /><br /><br />If you accept the change in the notebook of the object the notification (red rectangle) disappears.<br /><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/AcceptPositionChange.png/2432bc60-096f-485f-af9f-edb35b8b5a4b?t=1408611137503" />Mehmet Albayrak2014-08-21T07:12:19ZRE: Track Changes of Changed NameMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1627072014-08-19T12:46:29Z2014-08-19T12:34:52ZThe following package provides a notification that the name of an object is changed by crossing out the old name and writing the new name below in red. <br />For this purpose the event handler "AfterEditAttributeValue" is used, which is triggered after the name of an object is changed. <br /><br /><strong>Download:<br /></strong> -Library:<br /> <a href="https://www.adoxx.org/svn/all-repo/6_TrackChanges_Libraries_ADOxx13UL1/1_TrackChanges_NameChange_Library/BIN/Track%20Changes%20-%20NameChangeLibrary%20v1.0.abl">Track Changes - NameChangeLibrary v1.0.abl</a><br /> <br /><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/Start.png/189e1c26-55e2-4b33-a3ae-54f8dd9e0334?t=1408456912277" /><br /><br /><br /><br /><br /><img src="http://www.adoxx.org/live/documents/10157/162590/NewName1.png/bc9bba2a-c257-4ae1-b8e3-966abb8759a6?t=1408458605930" />Mehmet Albayrak2014-08-19T12:34:52ZTrack Change with CommentsMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1624412014-08-19T08:13:51Z2014-08-19T08:13:51ZEnable to create comment boxes where the developer has the opportunity to notice his changes.Mehmet Albayrak2014-08-19T08:13:51ZTrack Changes of Changed NameMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1623942014-08-19T11:49:02Z2014-08-19T08:12:12ZIn case of changing name the developer should show that the name of the object is changed.Mehmet Albayrak2014-08-19T08:12:12ZTrack Change of Moved ObjectsMehmet Albayrakhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=1623842014-08-19T08:08:59Z2014-08-19T08:08:59ZIn case an object is moved the track change should provide an indication that an object is moved.Mehmet Albayrak2014-08-19T08:08:59Z