3 extern QAction* actionEditToggleFloatExport;
5 /////////////////////////////////////////////////////////////////
7 /////////////////////////////////////////////////////////////////
9 FloatObj::FloatObj ():LinkableMapObj()
11 // cout << "Const FloatObj ()\n";
17 FloatObj::FloatObj (QCanvas* c):LinkableMapObj(c)
19 // cout << "Const FloatObj (c) called from MapCenterObj (c)\n";
25 FloatObj::FloatObj (QCanvas* c, LinkableMapObj* p):LinkableMapObj (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()
95 if (parObj->getOrientation()==OrientLeftOfCenter)
96 move (parObj->getChildPos().x() - relPos.x() + parObj->width() - bbox.width(), parObj->y()+relPos.y());
98 move (parObj->x()+relPos.x(), parObj->getChildPos().y()+relPos.y());
102 move (parObj->getChildPos().x()+relPos.x(), parObj->getChildPos().y()+relPos.y());
106 QRect FloatObj::getTotalBBox()
111 QRect FloatObj::getBBoxSizeWithChilds()
116 void FloatObj::select()
118 LinkableMapObj::select();
119 setLinkColor(parObj->getLinkColor());
121 // Update FloatExport switch in context menu
123 actionEditToggleFloatExport->setEnabled (true);
125 actionEditToggleFloatExport->setEnabled (true);
130 void FloatObj::unselect()
132 LinkableMapObj::unselect();