26 #include "../../../color.h" 
   27 #include "../../../se/Fill.h" 
   28 #include "../../../se/Utils.h" 
   29 #include "../propertybrowser/AbstractPropertyManager.h" 
   39   m_fill(new te::se::Fill)
 
   57   addProperty(basicFillProperty, tr(
"Basic Fill"), QColor(255, 255, 175));
 
   72   if(p == m_opacityProperty && m_update)
 
   75     double opacity = value / 100.0;
 
   77     m_color.setAlpha(opacity * 255);
 
   81     m_fill->setOpacity(QString::number(opacity, 
'g', 2).toStdString());
 
   92   if(p == m_colorProperty)
 
   96     m_color.setRgb(value.red(), value.green(), value.blue(), value.alpha());
 
   98     int opacity = (value.alpha() / 255.) * 100.;
 
  105     m_fill->setColor(m_color.name().toStdString());
 
  106     m_fill->setOpacity(QString::number(opacity, 
'g', 2).toStdString());
 
  123   m_fill = fill->
clone();
 
  132   return m_fill->
clone();
 
  140   m_color = QColor(rgba.
getRgba());
 
void getRgba(int *r, int *g, int *b, int *a=0) const 
It gets the color value. 
 
TESEEXPORT void GetColor(const te::se::Stroke *stroke, te::color::RGBAColor &color)
It gets the RGBA color from the Stroke element. 
 
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size. 
 
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance. 
 
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque. 
 
const Graphic * getGraphicFill() const 
Gets the GraphicFill element associate to this Fill. 
 
int getAlpha() const 
It returns the alpha component color value (a value from 0 to 255). 
 
A Fill specifies the pattern for filling an area geometry. 
 
Fill * clone() const 
It creates a new copy of this object. 
 
#define TE_SE_DEFAULT_FILL_BASIC_COLOR
It specifies the default color used by basic fill (solid colors). 
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
A widget used to define the basic fill se object.