added modifier modes (color,link,copy). Not fully functional yet
5 /////////////////////////////////////////////////////////////////
7 /////////////////////////////////////////////////////////////////
8 FrameObj::FrameObj() : MapObj()
10 // cout << "Const FrameObj ()\n";
14 FrameObj::FrameObj(QCanvas* c) :MapObj(c)
16 // cout << "Const FrameObj\n";
31 void FrameObj::clear()
45 void FrameObj::move(double x, double y)
52 rectFrame->move (x,y);
57 void FrameObj::moveBy(double x, double y)
62 void FrameObj::positionBBox()
66 void FrameObj::calcBBoxSize()
70 void FrameObj::setRect(const QRect &r)
78 rectFrame->setX (bbox.x() );
79 rectFrame->setY (bbox.y() );
80 rectFrame->setSize (bbox.width(),bbox.height() );
85 int FrameObj::getBorder()
90 FrameType FrameObj::getFrameType()
95 QString FrameObj::getFrameTypeName()
107 void FrameObj::setFrameType(const FrameType &t)
120 rectFrame = new QCanvasRectangle (canvas);
121 rectFrame->setZ(Z_FRAME);
122 rectFrame->setBrush( QColor("white") );
123 rectFrame->setPen( QPen(QColor("black") ));
133 void FrameObj::setFrameType(const QString &t)
136 FrameObj::setFrameType (Rectangle);
138 FrameObj::setFrameType (NoFrame);
141 void FrameObj::setVisibility (bool v)
143 MapObj::setVisibility(v);
144 setFrameType (type); // changes on visibility depend on type...