New translation: Italian. Minor Improvements in mmap Import
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::reposition()
88 if (parObj->getOrientation()==OrientLeftOfCenter)
89 move (parObj->x() - relPos.x() + parObj->width() - bbox.width(), parObj->y()+relPos.y());
91 move (parObj->x()+relPos.x(), parObj->y()+relPos.y());
94 move (parObj->x()+relPos.x(), parObj->y()+relPos.y());
98 QRect FloatObj::getTotalBBox()
103 QRect FloatObj::getBBoxSizeWithChilds()
108 void FloatObj::select()
110 LinkableMapObj::select();
111 setLinkColor(parObj->getLinkColor());
113 // Update FloatExport switch in context menu
115 actionEditToggleFloatExport->setEnabled (true);
117 actionEditToggleFloatExport->setEnabled (true);
122 void FloatObj::unselect()
124 LinkableMapObj::unselect();