#include "librarywidget.h"
-#include "rs_graphic.h"
+#include "drawing.h"
#include "rs_staticgraphicview.h"
#include "rs_system.h"
-#include "paintintf.h"
+#include "paintinterface.h"
LibraryWidget::LibraryWidget(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QWidget(parent, flags), actionHandler(NULL)
{
if (actionHandler != NULL)
{
- RS_ActionInterface * a = actionHandler->setCurrentAction(RS2::ActionLibraryInsert);
+ ActionInterface * a = actionHandler->setCurrentAction(RS2::ActionLibraryInsert);
if (a != NULL)
{
- RS_ActionLibraryInsert * action = (RS_ActionLibraryInsert *)a;
+ ActionLibraryInsert * action = (ActionLibraryInsert *)a;
action->setFile(dxfPath);
}
else
{
RS_DEBUG->print(RS_Debug::D_ERROR, "LibraryWidget::insert:"
- "Cannot create action RS_ActionLibraryInsert");
+ "Cannot create action ActionLibraryInsert");
}
}
}
qpntr.eraseRect(0, 0, 128, 128);
RS_StaticGraphicView gv(128, 128, painter);
- RS_Graphic graphic;
+ Drawing graphic;
if (graphic.open(dxfPath, RS2::FormatUnknown))
{