* Default Constructor. You must call init manually if you choose
* to use this constructor.
*/
-QG_ColorBox::QG_ColorBox(QWidget * parent/*= 0*/, const char */*name = 0*/):
+ColorBox::ColorBox(QWidget * parent/*= 0*/, const char */*name = 0*/):
QComboBox(parent)
{
showByLayer = false;
*
* @param showByLayer true: Show attribute ByLayer, ByBlock.
*/
-QG_ColorBox::QG_ColorBox(bool showByLayer, bool showUnchanged, QWidget * parent/*= 0*/,
+ColorBox::ColorBox(bool showByLayer, bool showUnchanged, QWidget * parent/*= 0*/,
const char */*name = 0*/): QComboBox(parent)
{
unchanged = false;
/**
* Destructor
*/
-QG_ColorBox::~QG_ColorBox()
+ColorBox::~ColorBox()
{
}
-RS_Color QG_ColorBox::getColor()
+RS_Color ColorBox::getColor()
{
return currentColor;
}
*
* @param showByLayer true: Show attribute ByLayer, ByBlock.
*/
-void QG_ColorBox::init(bool showByLayer, bool showUnchanged)
+void ColorBox::init(bool showByLayer, bool showUnchanged)
{
this->showByLayer = showByLayer;
this->showUnchanged = showUnchanged;
slotColorChanged(currentIndex());
}
-bool QG_ColorBox::isUnchanged()
+bool ColorBox::isUnchanged()
{
return unchanged;
}
/**
* Sets the color shown in the combobox to the given color.
*/
-void QG_ColorBox::setColor(const RS_Color & color)
+void ColorBox::setColor(const RS_Color & color)
{
//#warning "!!! Color is being misreported here !!!"
/*
* Sets the color of the pixmap next to the "By Layer" item
* to the given color.
*/
-void QG_ColorBox::setLayerColor(const RS_Color & color)
+void ColorBox::setLayerColor(const RS_Color & color)
{
if (showByLayer)
{
* offers a dialog to the user that allows him/ her to
* choose an individual color.
*/
-void QG_ColorBox::slotColorChanged(int index)
+void ColorBox::slotColorChanged(int index)
{
currentColor.resetFlags();