X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_staticgraphicview.cpp;h=59b8b4c9d74f09a7ebe47534d96710bc16bfb941;hb=3b479913b79032e514ce8c74ba915c6c91ab0f15;hp=19727044d58c166ce6ffbfb498a10e1361570afa;hpb=89e127aa3dbd74d3158e6dbe0ca1703420c04395;p=architektonas diff --git a/src/base/rs_staticgraphicview.cpp b/src/base/rs_staticgraphicview.cpp index 1972704..59b8b4c 100644 --- a/src/base/rs_staticgraphicview.cpp +++ b/src/base/rs_staticgraphicview.cpp @@ -10,19 +10,17 @@ // Who When What // --- ---------- ----------------------------------------------------------- // JLH 06/02/2010 Added this text. :-) +// JLH 06/15/2010 Moved implementation (however trivial) from header to here. // #include "rs_staticgraphicview.h" -#include "drawing.h" - /** * Constructor. * * @param w Width * @param h Height */ -//RS_StaticGraphicView::RS_StaticGraphicView(int w, int h, RS_Painter * p): /*painter(p),*/ width(w), RS_StaticGraphicView::RS_StaticGraphicView(int w, int h, PaintInterface * p): /*painter(p),*/ width(w), height(h) { setBackground(RS_Color(255, 255, 255)); @@ -54,40 +52,35 @@ int RS_StaticGraphicView::getHeight() } /** - * Creates a new painter for the buffer of this widget and returns a - * pointer to it. The class variable 'painter' also - * points to that object. + * Handles paint events by redrawing the graphic in this view. */ -//RS_Painter * RS_StaticGraphicView::createPainter() -PaintInterface * RS_StaticGraphicView::createPainter() +void RS_StaticGraphicView::paint() { - return painter; + RS_DEBUG->print("RS_StaticGraphicView::paint begin"); + drawIt(); + RS_DEBUG->print("RS_StaticGraphicView::paint end"); } -/** - * Creates a new painter for this widget and returns a - * pointer to it. The class variable 'painter' also - * points to that object. - */ -//RS_Painter * RS_StaticGraphicView::createDirectPainter() -PaintInterface * RS_StaticGraphicView::createDirectPainter() +/*virtual*/ void RS_StaticGraphicView::redraw() { - return createPainter(); } -/** - * Deletes the painter. - */ -void RS_StaticGraphicView::destroyPainter() +/*virtual*/ void RS_StaticGraphicView::adjustOffsetControls() { } -/** - * Handles paint events by redrawing the graphic in this view. - */ -void RS_StaticGraphicView::paint() +/*virtual*/ void RS_StaticGraphicView::adjustZoomControls() +{ +} + +/*virtual*/ void RS_StaticGraphicView::setMouseCursor(RS2::CursorType) +{ +} + +/*virtual*/ void RS_StaticGraphicView::emulateMouseMoveEvent() +{ +} + +/*virtual*/ void RS_StaticGraphicView::updateGridStatusWidget(const QString &) { - RS_DEBUG->print("RS_StaticGraphicView::paint begin"); - drawIt(); - RS_DEBUG->print("RS_StaticGraphicView::paint end"); }