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.
16 #include "rs_staticgraphicview.h"
24 RS_StaticGraphicView::RS_StaticGraphicView(int w, int h, PaintInterface * p): /*painter(p),*/ width(w), height(h)
26 setBackground(RS_Color(255, 255, 255));
28 setBorders(5, 5, 5, 5);
34 RS_StaticGraphicView::~RS_StaticGraphicView()
39 * @return width of widget.
41 int RS_StaticGraphicView::getWidth()
47 * @return height of widget.
49 int RS_StaticGraphicView::getHeight()
55 * Handles paint events by redrawing the graphic in this view.
57 void RS_StaticGraphicView::paint()
59 RS_DEBUG->print("RS_StaticGraphicView::paint begin");
61 RS_DEBUG->print("RS_StaticGraphicView::paint end");
64 /*virtual*/ void RS_StaticGraphicView::redraw()
68 /*virtual*/ void RS_StaticGraphicView::adjustOffsetControls()
72 /*virtual*/ void RS_StaticGraphicView::adjustZoomControls()
76 /*virtual*/ void RS_StaticGraphicView::setMouseCursor(RS2::CursorType)
80 /*virtual*/ void RS_StaticGraphicView::emulateMouseMoveEvent()
84 /*virtual*/ void RS_StaticGraphicView::updateGridStatusWidget(const QString &)