-// qc_graphicview.cpp
-//
-// Part of the Architektonas Project
-// Originally part of QCad Community Edition by Andrew Mustun
-// Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
-//
-// JLH = James L. Hammons <jlhamm@acm.org>
-//
-// Who When What
-// --- ---------- -----------------------------------------------------------
-// JLH 05/17/2010 Added this text. :-)
-//
-
-#include "qc_graphicview.h"
-
-#include "rs_actiondefault.h"
-
-QC_GraphicView::QC_GraphicView(RS_Document * doc, QWidget * parent):
- QG_GraphicView(parent, "graphicview")
-{
- RS_DEBUG->print("QC_GraphicView::QC_GraphicView()...");
- //document = doc;
- RS_DEBUG->print(" Setting Container...");
-
- if (doc != NULL)
- setContainer(doc);
-
- RS_DEBUG->print(" container set.");
- setFactorX(4.0);
- setFactorY(4.0);
- setOffset(50, 50);
- setBorders(10, 10, 10, 10);
-
- if (doc != NULL)
- setDefaultAction(new RS_ActionDefault(*doc, *this));
-}
-
-QC_GraphicView::~QC_GraphicView()
-{
-}
-
-void QC_GraphicView::drawIt()
-{
- if (!isUpdateEnabled())
- return;
-
- GraphicView::drawIt();
-}