]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/layerbox.cpp
Fixed hatch dialog, added snap/preview to circle tools.
[architektonas] / src / widgets / layerbox.cpp
index 360d30ce70598a517cfc4be9a0297ca73922b48e..b6e865aac175620e900dd81ab66687f444be3604 100644 (file)
@@ -16,8 +16,8 @@
 
 #include "layerbox.h"
 
-#include "rs_layer.h"
-#include "rs_layerlist.h"
+#include "layer.h"
+#include "layerlist.h"
 
 /**
  * Default Constructor. You must call init manually before using
@@ -39,7 +39,7 @@ LayerBox::~LayerBox()
 {
 }
 
-RS_Layer * LayerBox::getLayer()
+Layer * LayerBox::getLayer()
 {
        return currentLayer;
 }
@@ -51,7 +51,7 @@ RS_Layer * LayerBox::getLayer()
  *                  available.
  * @param showByBlock true: Show attribute ByBlock.
  */
-void LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnchanged)
+void LayerBox::init(LayerList & layerList, bool showByBlock, bool showUnchanged)
 {
        this->showByBlock = showByBlock;
        this->showUnchanged = showUnchanged;
@@ -63,7 +63,7 @@ void LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnchang
 
        for(uint i=0; i<layerList.count(); ++i)
        {
-               RS_Layer * lay = layerList.at(i);
+               Layer * lay = layerList.at(i);
 
                if (lay != NULL && (lay->getName() != "ByBlock" || showByBlock))
 //                     insertItem(lay->getName());
@@ -78,7 +78,7 @@ void LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnchang
 /**
  * Sets the layer shown in the combobox to the given layer.
  */
-void LayerBox::setLayer(RS_Layer & layer)
+void LayerBox::setLayer(Layer & layer)
 {
        currentLayer = &layer;