]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/layerbox.cpp
Fixed hatch dialog, added snap/preview to circle tools.
[architektonas] / src / widgets / layerbox.cpp
index f40cf92bc85490a10d7dc18a4ac7c267805e357d..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;
 
@@ -118,9 +118,8 @@ bool LayerBox::isUnchanged()
 }
 
 /**
- * Called when the color has changed. This method
- * sets the current color to the value chosen or even
- * offers a dialog to the user that allows him/ her to
+ * Called when the color has changed. This method sets the current color to
+ * the value chosen or even offers a dialog to the user that allows him/her to
  * choose an individual color.
  */
 void LayerBox::slotLayerChanged(int index)