// 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 "qg_dialogfactory.h"
#include "graphicview.h"
-#include "qg_layerwidget.h"
+#include "layerwidget.h"
#include "qg_mainwindowinterface.h"
#include "actiondimlinear.h"
#include "actioninterface.h"
#include "rs_blocklist.h"
#include "rs_document.h"
#include "rs_hatch.h"
+#include "rs_layerlist.h"
#include "rs_patternlist.h"
#include "settings.h"
#include "rs_system.h"
{
RS_DEBUG->print("QG_DialogFactory::requestEditLayerDialog");
RS_Layer * layer = NULL;
- /*
- if (layerList==NULL) {
- if (container!=NULL && container->rtti()==RS2::EntityGraphic) {
- layerList = (RS_LayerList*)container;
- } else {
- return NULL;
- }
- }
- */
- if (layerList == NULL)
+ if (!layerList)
{
RS_DEBUG->print(RS_Debug::D_WARNING, "QG_DialogFactory::requestEditLayerDialog(): "
"layerList is NULL");
}
// Layer for parameter livery
- if (layerList->getActive() != NULL)
+ if (layerList->getActive())
{
layer = new RS_Layer(*layerList->getActive());
*/
void QG_DialogFactory::requestToolBar(RS2::ToolBarId id)
{
- if (cadToolBar != NULL)
+ if (cadToolBar)
cadToolBar->showToolBar(id);
}