3 extern QAction* actionEditToggleFloatExport;
5 /////////////////////////////////////////////////////////////////
7 /////////////////////////////////////////////////////////////////
9 FloatObj::FloatObj ():OrnamentedObj()
11 // cout << "Const FloatObj ()\n";
17 FloatObj::FloatObj (QCanvas* c):OrnamentedObj(c)
19 // cout << "Const FloatObj (c) called from MapCenterObj (c)\n";
25 FloatObj::FloatObj (QCanvas* c, LinkableMapObj* p):OrnamentedObj (c)
27 // cout << "Const FloatObj (c,p)\n";
29 depth=p->getDepth()+1;
33 FloatObj::~FloatObj ()
35 // cout << "Destr FloatObj\n";
38 void FloatObj::init ()
43 setLinkStyle (StyleParabel);
44 setHideLinkUnselected(true);
47 void FloatObj::copy (FloatObj* other)
49 LinkableMapObj::copy (other);
50 setVisibility (other->visible);
53 void FloatObj::setZ(const int &i)
63 void FloatObj::setFloatExport(const bool& b)
68 bool FloatObj::getFloatExport()
73 void FloatObj::move (double x, double y)
79 void FloatObj::move (QPoint p)
84 void FloatObj::setDockPos()
90 void FloatObj::reposition()
92 move (parObj->getChildPos().x()+relPos.x(), parObj->getChildPos().y()+relPos.y());
96 QRect FloatObj::getTotalBBox()
101 QRect FloatObj::getBBoxSizeWithChilds()
106 void FloatObj::select()
108 LinkableMapObj::select();
109 LinkableMapObj::setLinkColor(parObj->getLinkColor());
112 void FloatObj::unselect()
114 LinkableMapObj::unselect();