#include "rs_application.h"
#include "rs_block.h"
#include "rs_eventhandler.h"
-#include "rs_graphic.h"
+#include "drawing.h"
#include "rs_grid.h"
#include "rs_insert.h"
#include "rs_layer.h"
* connected to this view is a graphic and valid.
* NULL otherwise.
*/
-RS_Graphic * RS_GraphicView::getGraphic()
+Drawing * RS_GraphicView::getGraphic()
{
if (container != NULL && container->rtti() == RS2::EntityGraphic)
- return (RS_Graphic*)container;
+ return (Drawing*)container;
else
return NULL;
}
{
if (container != NULL)
{
- RS_Graphic * g = container->getGraphic();
+ Drawing * g = container->getGraphic();
if (g != NULL)
return g->isGridOn();
{
RS_DEBUG->print("RS_GraphicView::mouseMoveEvent begin");
- RS_Graphic * graphic = NULL;
+ Drawing * graphic = NULL;
if (container->rtti() == RS2::EntityGraphic)
- graphic = (RS_Graphic *)container;
+ graphic = (Drawing *)container;
RS_DEBUG->print("RS_GraphicView::mouseMoveEvent 001");
if (simulationRunning)
return;
- RS_Graphic * graphic = container->getGraphic();
+ Drawing * graphic = container->getGraphic();
if (graphic == NULL)
return;
{
double uf = 1.0; // unit factor
double wf = 1.0; // width factor
- RS_Graphic * graphic = container->getGraphic();
+ Drawing * graphic = container->getGraphic();
if (graphic != NULL)
{
if (container == NULL)
return;
- RS_Graphic * graphic = container->getGraphic();
+ Drawing * graphic = container->getGraphic();
if (graphic == NULL)
return;