[Clam-devel] Adding descriptions to networks

Angelo A.S. alfscorza at gmail.com
Fri Jun 5 07:07:58 PDT 2009


Hello everybody! ... and thanks David for your re-recommendations!

1. When loading the description, I put your proposal. However, when the Load
function can not find the 'description' not delimited with \0, simply do not
modify. So what if it fails I put it all empty ( "" )

2. I replace the line for:
_textDescriptionEdit->setText(_network.GetDescription().c_str());

3. I replace the line for:
QtGui/QTextEdit

*Modified classes*:

BaseNetwork.hxx: added virtual method 'get' and 'set' for description.
FlattenedNetwork.cxx: reimplementation of StoreOn and LoadFrom (methods)...
this was necessary to support reading and writing
descriptionsFlattenedNetwork.hxx: added method 'get' and 'set' for
description ant attribute 'Text _description'
MainWindows.hxx: added a _descriptionPanel and _textDescriptionEdit... this
was necessary to show the description

*See you*!! :o)

~ Angelo Scorza ~
"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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20090605/ce932580/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addingDescription.patch
Type: text/x-patch
Size: 5619 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20090605/ce932580/attachment-0005.bin>


More information about the clam-devel mailing list