#include <stdio.h>
#include "rs_actioninterface.h"
-#include "rs_application.h"
#include "rs_block.h"
+#include "rs_dialogfactory.h"
+#include "drawing.h"
#include "rs_eventhandler.h"
-#include "rs_graphic.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();
if (eventHandler != NULL)
{
- if (RS2::qtToRsButtonState(e->button()) != RS2::RightButton
- || eventHandler->hasAction())
+ if (e->button() != Qt::RightButton || eventHandler->hasAction())
{
eventHandler->mouseReleaseEvent(e);
//e->accept();
else
{
back();
-//#if QT_VERSION>=0x030000
e->accept();
-//#endif
-
}
}
{
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;