#include "rs_actionblocksfreezeall.h"
-#include "rs_graphic.h"
+#include "drawing.h"
+#include "graphicview.h"
-RS_ActionBlocksFreezeAll::RS_ActionBlocksFreezeAll(bool freeze, RS_EntityContainer & container,
- RS_GraphicView& graphicView): RS_ActionInterface("Freeze all Blocks",
- container, graphicView)
+RS_ActionBlocksFreezeAll::RS_ActionBlocksFreezeAll(bool freeze, RS_EntityContainer & container, GraphicView & graphicView): RS_ActionInterface("Freeze all Blocks",
+ container, graphicView)
{
this->freeze = freeze;
}
-QAction * RS_ActionBlocksFreezeAll::createGUIAction(RS2::ActionType type, QObject* /*parent*/)
+RS_ActionBlocksFreezeAll::~RS_ActionBlocksFreezeAll()
{
- QAction * action = NULL;
-
- if (type == RS2::ActionBlocksFreezeAll)
- {
- action = new QAction(tr("&Freeze all"), 0);
-// action= new QAction(tr("Freeze all"), tr("&Freeze all"),
-// QKeySequence(), NULL);
- action->setStatusTip(tr("Freeze all blocks"));
- }
- else if (type == RS2::ActionBlocksDefreezeAll)
- {
- action = new QAction(tr("&Defreeze all"), 0);
-// action = new QAction(tr("Defreeze all"), tr("&Defreeze all"),
-// QKeySequence(), NULL);
- action->setStatusTip(tr("Defreeze all blocks"));
- }
-
- return action;
}
void RS_ActionBlocksFreezeAll::trigger()
{
RS_DEBUG->print("RS_ActionBlocksFreezeAll::trigger");
- if (graphic!=NULL)
+ if (graphic != NULL)
graphic->freezeAllBlocks(freeze);
graphicView->redraw();
RS_ActionInterface::init(status);
trigger();
}
+