Hello everybody! ... and thanks David for your recommendations! <br><br> I attached a patch with the modifications necessary to add Description
to networks. This version has corrected the details recommended by
David. <br><br> Details arranged:<br>
<br>
- when the ui file has no real modification, is better not to include it in<br>
the patch. designer often just rewrites the formating from one version to<br>
another. <span style="color: rgb(51, 51, 255);">[solved]</span><br><br><div style="margin-left: 40px;"><div style="text-align: left;" id="result_box" dir="ltr">> I deleted the file and download it again</div></div><br>
- do not include in the patch the networks with dummy descriptions, copy the<br>
networks and work with the copies or just edit the patch to delete them. <span style="color: rgb(51, 51, 255);">[solved]</span><br><br><span style="color: rgb(51, 51, 255);"></span>
- DescriptionDefinitionAdapter class is not needed at all, Text is already a<br>
component, so remove the man in the middle and use the XMLComponentAdapter<br>
with the Text. <span style="color: rgb(51, 51, 255);">[solved]<br><br></span><div style="text-align: left; margin-left: 40px;" id="result_box" dir="ltr">> I deleted all traces of DescriptionDefinitionAdapter :o)</div>
<br><span style="color: rgb(51, 51, 255);"></span>
- do not trigger an error if the description is not present, just take it as<br>
empty. <span style="color: rgb(51, 51, 255);">[solved]<br><br></span>
- and, when storing it, if it is empty, do write it (you are currently<br>
skiping) <span style="color: rgb(51, 51, 255);">[solved]</span><br><br>
- allow us to migrate silently old networks <span style="color: rgb(51, 51, 255);">[solved] </span><br><br><div style="margin-left: 40px;">> Every time you open a network and no description is added, it adds the label <description/><br>
</div>
<br>
<b>Modified classes</b>:<br><br>BaseNetwork.hxx: added virtual method 'get' and 'set' for description.<br>FlattenedNetwork.cxx: reimplementation of StoreOn and LoadFrom (methods)... this was necessary to support reading and writing <br>
descriptionsFlattenedNetwork.hxx: added method 'get' and 'set' for description ant attribute '_description'<br>MainWindows.hxx: added a _descriptionPanel and _textDescriptionEdit... this was necessary to show the description<br>
<br><div style="text-align: left;" id="result_box" dir="ltr"><font class="contenido"><b>See you</b></font>!! :o)</div><br>~ Angelo Scorza ~<br>"El que no posee el don de maravillarse ni de entusiasmarse más le valdría estar muerto, porque sus ojos están cerrados." A. Einstein.<br>