yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #04217
Re: QT gui tree serialization archive
-
To:
"Robert Ramey" <ramey@xxxxxxxx>, yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <cosurgi@xxxxxxxxx>
-
Date:
Sun, 2 May 2010 12:59:24 +0200
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<20100502125532.37aa7dd1@atak.bl.pg.gda.pl>
sorry, I forgot to mention that I'm using boost 1.42 right now.
Janek Kozicki said: (by the date of Sun, 2 May 2010 12:55:32 +0200)
> Hi Robert,
>
> Several years ago we were talking about a GUI for serialization. A QT
> based one. Long time passed, and I was going to use it in my project,
> but it is not compiling anymore ;) 4 years is a lot, something has
> changed obviously. Maybe you could help me in getting it back into
> usable state?
>
> I am attaching the last version.
>
> First problem happens with is_abstract. I already replaced:
>
> #include <boost/serialization/is_abstract.hpp>
>
> with
>
> #include <boost/type_traits/is_abstract.hpp>
>
> But I'm still getting the error
>
> demo_gps.hpp:94: error: expected unqualified-id before ‘__is_abstract’
>
> So I comment out this line 94 in demo_gps.hpp
>
>
>
> And then I'm getting errors in
>
> qt_tree.hpp: In member function ‘QVariant qt_tree_node<Elem>::data(int) const’:
> qt_tree.hpp:58: error: ‘m_version’ was not declared in this scope
> qt_tree.hpp:59: error: ‘m_tracking’ was not declared in this scope
> qt_tree.hpp:60: error: ‘m_class_id’ was not declared in this scope
> qt_tree.hpp:61: error: ‘m_object_id’ was not declared in this scope
>
> Which seems to be compiler specific, and I'm able to fix it, by
> changing the helper #define M in qt_tree.hpp
>
>
>
> But then I have another error, which I cannot solve:
>
> In file included from ./boost/archive/tree_iarchive.hpp:24,
> from mainwindow.cpp:12:
> ./boost/archive/basic_tree_iarchive.hpp:29:26: error: boost/pfto.hpp: No such file or directory
> In file included from ./boost/archive/tree_oarchive.hpp:32,
> from mainwindow.cpp:13:
> ./boost/archive/basic_tree_oarchive.hpp:21:33: error: boost/state_saver.hpp: No such file or directory
> In file included from mainwindow.hpp:4,
> from mainwindow.cpp:6:
> qt_tree.hpp: In member function ‘QVariant qt_tree_node<Elem>::data(int) const [with Elem = char]’:
> qt_tree.hpp:208: instantiated from ‘QVariant qt_tree<Elem>::data(const QModelIndex&, int) const [with Elem = char]’
> mainwindow.cpp:137: instantiated from here
> qt_tree.hpp:58: warning: comparison is always false due to limited
> range of data type
>
>
> So at this stage I need some help about, how to fix correctly the
> is_abstract error, and that pfto/state_saver error above.
>
> best regards
> --
> # Janek Kozicki http://janek.kozicki.pl/
--
# Janek Kozicki http://janek.kozicki.pl/
References