// 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 "cadtoolbarselect.h"
#include "cadtoolbarsnap.h"
#include "cadtoolbarsplines.h"
-#include "rs.h"
+#include "enums.h"
CadToolBar::CadToolBar(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
QWidget(parent, flags), actionHandler(NULL), currentTb(NULL), tbSplines(NULL),
/**
* @return Pointer to action handler or NULL.
*/
-QG_ActionHandler * CadToolBar::getActionHandler()
+ActionHandler * CadToolBar::getActionHandler()
{
return actionHandler;
}
*
* @param ah Pointer to action handler which will deal with the actions in this tool bar.
*/
-void CadToolBar::createSubToolBars(QG_ActionHandler * ah)
+void CadToolBar::createSubToolBars(ActionHandler * ah)
{
actionHandler = ah;
tbMain = new CadToolBarMain(this);
showToolBarSelect(NULL, -1);
}
-void CadToolBar::showToolBarSelect(RS_ActionInterface * selectAction, int nextAction)
+void CadToolBar::showToolBarSelect(ActionInterface * selectAction, int nextAction)
{
tbSelect->setNextAction(nextAction);
tbSelect->setSelectAction(selectAction);