// 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
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
//
// JLH = James L. Hammons <jlhamm@acm.org>
//
#include "actioneditundo.h"
#include "rs_commandevent.h"
#include "commands.h"
+#include "rs_debug.h"
#include "rs_dialogfactory.h"
#include "graphicview.h"
#include "rs_preview.h"
RS_DEBUG->print("ActionDrawLine::ActionDrawLine");
reset();
//hm.
- graphicView.snapper.SetContainer(&container);
- graphicView.snapper.SetGraphicView(&graphicView);
- graphicView.snapper.SetVisible();
- graphicView.preview.SetVisible();
+// graphicView.snapper.SetContainer(&container);
+// graphicView.snapper.SetGraphicView(&graphicView);
+// graphicView.snapper.SetVisible();
+// graphicView.preview.SetVisible();
RS_DEBUG->print("ActionDrawLine::ActionDrawLine: OK");
}
void ActionDrawLine::init(int status)
{
RS_DEBUG->print("ActionDrawLine::init");
-// ActionInterface::init(status);
ActionInterface::init(status);
reset();
RS_DEBUG->print("ActionDrawLine::init: OK");
}
else if (e->button() == Qt::RightButton)
{
- if (getStatus() == 0)
- {
- graphicView->snapper.SetVisible(false);
- graphicView->preview.SetVisible(false);
- }
+// if (getStatus() == 0)
+// {
+// graphicView->snapper.SetVisible(false);
+// graphicView->preview.SetVisible(false);
+// }
init(getStatus() - 1);
}
void ActionDrawLine::showOptions()
{
RS_DEBUG->print("ActionDrawLine::showOptions");
-// ActionInterface::showOptions();
ActionInterface::showOptions();
RS_DIALOGFACTORY->requestOptions(this, true);
RS_DEBUG->print("ActionDrawLine::showOptions: OK");
void ActionDrawLine::hideOptions()
{
-// ActionInterface::hideOptions();
ActionInterface::hideOptions();
RS_DIALOGFACTORY->requestOptions(this, false);
}