// 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 "arcoptions.h"
-#include "rs_actiondrawarc.h"
-#include "rs_actioninterface.h"
+#include "actiondrawarc.h"
+#include "actioninterface.h"
#include "settings.h"
ArcOptions::ArcOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
- QWidget(parent, flags)
+ QWidget(parent, flags),
+ rbPos(new QRadioButton(this)),
+ rbNeg(new QRadioButton(this))
{
QHBoxLayout * layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
- rbPos = new QRadioButton(this);
- rbNeg = new QRadioButton(this);
-
- rbPos->setIcon(QIcon(":/res/qg_dirpos.xpm"));
- rbNeg->setIcon(QIcon(":/res/qg_dirneg.xpm"));
+ rbPos->setIcon(QIcon(":/res/qg_dirpos"));
+ rbNeg->setIcon(QIcon(":/res/qg_dirneg"));
layout->addWidget(rbPos);
layout->addWidget(rbNeg);
settings.endGroup();
}
-void ArcOptions::setAction(RS_ActionInterface * a, bool update)
+void ArcOptions::setAction(ActionInterface * a, bool update)
{
if (a != NULL && a->rtti() == RS2::ActionDrawArc)
{
- action = (RS_ActionDrawArc *)a;
+ action = (ActionDrawArc *)a;
bool reversed;