mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Reworked some method names
This commit is contained in:
@@ -120,7 +120,7 @@ void IntelliPhotoGui::slotSetActiveAlpha(){
|
||||
255,0, 255, 1, &ok2);
|
||||
if (ok1&&ok2)
|
||||
{
|
||||
paintingArea->setAlphaOfLayer(layer,alpha);
|
||||
paintingArea->setLayerAlpha(layer,alpha);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ void IntelliPhotoGui::slotSetActiveLayer(){
|
||||
-1,0,255,1, &ok1);
|
||||
if (ok1)
|
||||
{
|
||||
paintingArea->setLayerToActive(layer);
|
||||
paintingArea->setLayerActive(layer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,13 +86,13 @@ void PaintingArea::slotDeleteActiveLayer(){
|
||||
}
|
||||
}
|
||||
|
||||
void PaintingArea::setLayerToActive(int index){
|
||||
void PaintingArea::setLayerActive(int index){
|
||||
if(index>=0&&index<static_cast<int>(layerBundle.size())) {
|
||||
this->activeLayer=index;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintingArea::setAlphaOfLayer(int index, int alpha){
|
||||
void PaintingArea::setLayerAlpha(int index, int alpha){
|
||||
if(index>=0&&index<static_cast<int>(layerBundle.size())) {
|
||||
layerBundle[static_cast<size_t>(index)].alpha=alpha;
|
||||
}
|
||||
@@ -159,7 +159,7 @@ void PaintingArea::moveActiveLayer(int idx){
|
||||
|
||||
void PaintingArea::slotActivateLayer(int a){
|
||||
if(a>=0 && a < static_cast<int>(layerBundle.size())) {
|
||||
this->setLayerToActive(a);
|
||||
this->setLayerActive(a);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -100,13 +100,13 @@ public:
|
||||
* \brief The setLayerToActive method marks a specific layer as active
|
||||
* \param index - Index of the layer to be active
|
||||
*/
|
||||
void setLayerToActive(int index);
|
||||
void setLayerActive(int index);
|
||||
/*!
|
||||
* \brief The setAlphaOfLayer method sets the alpha value of a specific layer
|
||||
* \param index - Index of the layer where the change should be applied
|
||||
* \param alpha - New alpha value of the layer
|
||||
*/
|
||||
void setAlphaOfLayer(int index, int alpha);
|
||||
void setLayerAlpha(int index, int alpha);
|
||||
/*!
|
||||
* \brief The floodFill method fills a the active layer with a given color
|
||||
* \param r - Red value of the color the layer should be filled with
|
||||
|
||||
Reference in New Issue
Block a user