IntelliToolsettings.cpp
Go to the documentation of this file.
#include "IntelliToolsettings.h"
#include <QInputDialog>
IntelliToolsettings::IntelliToolsettings()
{
lineWidth = 1;
innerAlpha = 255;
}
IntelliToolsettings::~IntelliToolsettings(){
}
int IntelliToolsettings::getLineWidth() const {
return lineWidth;
}
void IntelliToolsettings::setLineWidth(int LineWidth){
if(LineWidth < 1) {
LineWidth = 1;
}
else if(LineWidth > 50) {
LineWidth = 50;
}
lineWidth = LineWidth;
}
int IntelliToolsettings::getInnerAlpha() const {
return this->innerAlpha;
}
void IntelliToolsettings::setInnerAlpha(int innerAlpha){
if(innerAlpha < 0) {
innerAlpha = 0;
}
else if(innerAlpha > 255) {
innerAlpha = 255;
}
this->innerAlpha = innerAlpha;
}
IntelliToolsettings::getLineWidth
int getLineWidth() const
getLineWidth returns the width attribute of the line.
Definition: IntelliToolsettings.cpp:14
IntelliToolsettings.h
IntelliToolsettings::getInnerAlpha
int getInnerAlpha() const
getInnerAlpha returns the inner alpha value.
Definition: IntelliToolsettings.cpp:28
IntelliToolsettings::~IntelliToolsettings
virtual ~IntelliToolsettings()
~IntelliToolsettings - basic destructor.
Definition: IntelliToolsettings.cpp:10
IntelliToolsettings::setInnerAlpha
void setInnerAlpha(int innerAlpha)
setInnerAlpha sets the inner alpha attribute of the Tool.
Definition: IntelliToolsettings.cpp:32
IntelliToolsettings::setLineWidth
void setLineWidth(int LineWidth)
setLineWidth sets the width attribute of the line.
Definition: IntelliToolsettings.cpp:18
IntelliToolsettings::IntelliToolsettings
IntelliToolsettings()
IntelliToolsettings - basic constructor of the IntelliToolsettings, initializing the basics.
Definition: IntelliToolsettings.cpp:4