diff -r 59614eaf5fbb -r ffb95cd03156 mapitem.h --- a/mapitem.h Wed Apr 29 18:46:31 2009 +0000 +++ b/mapitem.h Thu Apr 30 11:52:49 2009 +0000 @@ -3,16 +3,19 @@ #include +#include "xmlobj.h" + class LinkableMapObj; /*! /brief MapItem is used to store information of MapObj and inherited classes. - This is done even while no QGraphicsView is availabe, e.g. on a - mobile device. + This is done even while no QGraphicsView is availabe. This is useful + if e.g. on a small device like a cellphone te full map is not used, + but just a treeview instead. */ -class MapItem +class MapItem: public XMLObj { protected: enum PositionMode {Unused,Absolute,Relative}; @@ -39,6 +42,9 @@ /*! Initialize LinkableMapObj with data in MapItem */ virtual void initLMO(); + + /*! Return data as attributes for saving in XML */ + virtual QString getAttr(); };