X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fwidgets%2Flayerbox.cpp;h=b6e865aac175620e900dd81ab66687f444be3604;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=d8a8797d35e74e6e07fa080d7204954c3b0eb4c1;hpb=e5a77a32dbe17d9534d3099f1fd3fdacba199516;p=architektonas diff --git a/src/widgets/layerbox.cpp b/src/widgets/layerbox.cpp index d8a8797..b6e865a 100644 --- a/src/widgets/layerbox.cpp +++ b/src/widgets/layerbox.cpp @@ -16,14 +16,14 @@ #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 * this class. */ -QG_LayerBox::QG_LayerBox(QWidget * parent, const char */*name*/): QComboBox(parent) +LayerBox::LayerBox(QWidget * parent, const char */*name*/): QComboBox(parent) { showByBlock = false; showUnchanged = false; @@ -35,11 +35,11 @@ QG_LayerBox::QG_LayerBox(QWidget * parent, const char */*name*/): QComboBox(pare /** * Destructor */ -QG_LayerBox::~QG_LayerBox() +LayerBox::~LayerBox() { } -RS_Layer * QG_LayerBox::getLayer() +Layer * LayerBox::getLayer() { return currentLayer; } @@ -51,7 +51,7 @@ RS_Layer * QG_LayerBox::getLayer() * available. * @param showByBlock true: Show attribute ByBlock. */ -void QG_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 QG_LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnch for(uint i=0; igetName() != "ByBlock" || showByBlock)) // insertItem(lay->getName()); @@ -78,7 +78,7 @@ void QG_LayerBox::init(RS_LayerList & layerList, bool showByBlock, bool showUnch /** * Sets the layer shown in the combobox to the given layer. */ -void QG_LayerBox::setLayer(RS_Layer & layer) +void LayerBox::setLayer(Layer & layer) { currentLayer = &layer; @@ -98,7 +98,7 @@ void QG_LayerBox::setLayer(RS_Layer & layer) /** * Sets the layer shown in the combobox to the given layer. */ -void QG_LayerBox::setLayer(QString & layer) +void LayerBox::setLayer(QString & layer) { //if (layer.getName()=="ByBlock" && showByBlock) { // setCurrentItem(0); @@ -112,18 +112,17 @@ void QG_LayerBox::setLayer(QString & layer) //} } -bool QG_LayerBox::isUnchanged() +bool LayerBox::isUnchanged() { return unchanged; } /** - * 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 QG_LayerBox::slotLayerChanged(int index) +void LayerBox::slotLayerChanged(int index) { //currentLayer.resetFlags();