1 // rs_staticgraphicview.cpp
3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // (C) 2010 Underground Software
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- -----------------------------------------------------------
12 // JLH 06/02/2010 Added this text. :-)
13 // JLH 06/15/2010 Moved implementation (however trivial) from header to here.
17 To me, this is yet another useless class. It seems to me that this could be
18 easily replaced by putting a bitmap creation method in GraphicView. But that's
22 #include "rs_staticgraphicview.h"
30 RS_StaticGraphicView::RS_StaticGraphicView(int w, int h, PaintInterface * p): /*painter(p),*/ width(w), height(h)
32 setBackground(RS_Color(255, 255, 255));
34 setBorders(5, 5, 5, 5);
40 RS_StaticGraphicView::~RS_StaticGraphicView()
45 * @return width of widget.
47 int RS_StaticGraphicView::getWidth()
53 * @return height of widget.
55 int RS_StaticGraphicView::getHeight()
61 * Handles paint events by redrawing the graphic in this view.
63 void RS_StaticGraphicView::paint()
65 RS_DEBUG->print("RS_StaticGraphicView::paint begin");
67 RS_DEBUG->print("RS_StaticGraphicView::paint end");
70 /*virtual*/ void RS_StaticGraphicView::redraw()
74 /*virtual*/ void RS_StaticGraphicView::adjustOffsetControls()
78 /*virtual*/ void RS_StaticGraphicView::adjustZoomControls()
82 /*virtual*/ void RS_StaticGraphicView::setMouseCursor(RS2::CursorType)
86 /*virtual*/ void RS_StaticGraphicView::emulateMouseMoveEvent()
90 /*virtual*/ void RS_StaticGraphicView::updateGridStatusWidget(const QString &)