/***************************************************************************
 *   Copyright (C) 2021 by Santiago González                               *
 *                                                                         *
 ***( see copyright.txt file at root folder )*******************************/

#pragma once

#include "ui_colorval.h"
#include "propval.h"

class Component; 
class PropDialog; 

class ColorVal : public PropVal, private Ui::ColorVal
{
    Q_OBJECT
    
    public:
        ColorVal( PropDialog* parent, CompBase* comp, ComProperty* prop ); 
        ~ColorVal(); 

        virtual void setup( bool ) override; 
        virtual void updtValues() override; 

        bool eventFilter( QObject* object, QEvent* event) override; 

    //public slots:


    private:
        void changeColor(); 

        QColor m_color; 

        bool m_blocked; 
}; 
