[Clam-devel] Copy & Paste processings on canvas patch
David García Garzón
dgarcia at iua.upf.edu
Wed Jun 11 04:16:58 PDT 2008
On Dimecres 11 Juny 2008, Natanael Olaiz wrote:
> El 06/10/2008 05:15 AM, David García Garzón escribió:
> > On Dimarts 10 Juny 2008, Natanael Olaiz wrote:
> >> El 06/09/2008 10:31 PM, David García Garzón escribió:
> >>> [...]
> >>>
> >>> I also guess that the procAttribMap to store such attributes is a too
> >>> generic tool that can become subject of abuse if it is in the api. We
> >>> are expected to have some kind of network configuration/attributes and
> >>> i don't know if this is missleading when we actually want pos and size.
> >>> Just a feeling not a conviction. In this part we are more in Pau's
> >>> zone.
> >>
> >> About this point I'll wait for Pau reply, but I want to make a comment:
> >> I can pass specific types (i.e. QPoint, QSize) to the network and
> >> adapters.. but I'll need to include specific Qt graphic-related headers
> >> on that files. Is that OK? I though no, and that was the reason because
> >> I made the conversion on NetworkCanvas...
> >>
> >>> [...]
> >
> > You are right, there cannot be Qt types in the network, but i should have
> > tried a different C++ native type such several floats/integers in a
> > setGeometry(x,y,w,h). But i don't dissmiss your option. Just waiting to
> > Pau opinion on how to store them
>
> What about using CLAM::Point types? (I found it yesterday :-))
> Just asking. If not, directly integers...
They could be used, but, for our case, I dont like their xml output "{3,2}"
they provide. More over if we are to provide such a type on the GetGeometries
we'll have the problem of a CLAM dependency on the canvas. It's better to
provide C++ standard structures. struct Geometry { float x,y,w,h;}; or even
struct Geometry { std::string position, size; }; The adapter will do the
mapping.
David.
--
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080611/9e264803/attachment-0001.sig>
More information about the clam-devel
mailing list