#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
{
}
-RS_Layer * LayerBox::getLayer()
+Layer * LayerBox::getLayer()
{
return currentLayer;
}
* 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;
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());
/**
* Sets the layer shown in the combobox to the given layer.
*/
-void LayerBox::setLayer(RS_Layer & layer)
+void LayerBox::setLayer(Layer & layer)
{
currentLayer = &layer;
}
/**
- * 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)