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 // Portions copyright (C) 2001-2003 RibbonSoft
7 // Copyright (C) 2010 Underground Software
8 // See the README and GPLv2 files for licensing and warranty information
10 // JLH = James L. Hammons <jlhamm@acm.org>
13 // --- ---------- -----------------------------------------------------------
14 // JLH 06/02/2010 Added this text. :-)
15 // JLH 06/15/2010 Moved implementation (however trivial) from header to here.
19 To me, this is yet another useless class. It seems to me that this could be
20 easily replaced by putting a bitmap creation method in GraphicView. But that's
24 #include "rs_staticgraphicview.h"
34 RS_StaticGraphicView::RS_StaticGraphicView(int w, int h, PaintInterface * p): /*painter(p),*/ width(w), height(h)
36 setBackground(RS_Color(255, 255, 255));
38 setBorders(5, 5, 5, 5);
44 RS_StaticGraphicView::~RS_StaticGraphicView()
49 * @return width of widget.
51 int RS_StaticGraphicView::getWidth()
57 * @return height of widget.
59 int RS_StaticGraphicView::getHeight()
65 * Handles paint events by redrawing the graphic in this view.
67 void RS_StaticGraphicView::paint()
69 RS_DEBUG->print("RS_StaticGraphicView::paint begin");
71 RS_DEBUG->print("RS_StaticGraphicView::paint end");
74 /*virtual*/ void RS_StaticGraphicView::redraw()
78 /*virtual*/ void RS_StaticGraphicView::adjustOffsetControls()
82 /*virtual*/ void RS_StaticGraphicView::adjustZoomControls()
86 /*virtual*/ void RS_StaticGraphicView::setMouseCursor(RS2::CursorType)
90 /*virtual*/ void RS_StaticGraphicView::emulateMouseMoveEvent()
94 /*virtual*/ void RS_StaticGraphicView::updateGridStatusWidget(const QString &)