"#C86464", "#64C864", "#6464C8", "#C8C864", "#C864C8"
};
QColor KLPieceInfo::defaultColor(uint i) const
{
if ( i>=nbColors() ) return QColor();
return QColor(DEFAULT_COLORS[i]);
}
QString KLPieceInfo::colorLabel(uint i) const
return i18n("Color #%1:").arg(i+1);
virtual uint nbColors() const { return NB_BLOCK_TYPES; }
virtual QString colorLabel(uint i) const;
virtual QColor defaultColor(uint i) const
virtual QColor defaultColor(uint i) const;
{ return QColor(DEFAULT_COLORS[i]); }
protected:
void draw(QPixmap *, uint blockType, uint blockMode,
"#C8C8C8"
QColor KSPieceInfo::defaultColor(uint i) const
void KSPieceInfo::draw(QPixmap *pixmap, uint blockType, uint,
bool lighted) const
virtual uint nbColors() const { return NB_FORMS + 1; }
virtual QString colorLabel(uint i) const { return i18n(COLOR_LABELS[i]); }
private:
virtual void draw(QPixmap *, uint blockType, uint blockMode,
"#64C864", "#64C8C8", "#C86464", "#C864C8", "#C8C8C8"
QColor FEPieceInfo::defaultColor(uint i) const
QString FEPieceInfo::colorLabel(uint i) const
return (i==NB_NORM_BLOCK_TYPES ? i18n("Garbage color:")
virtual uint nbColors() const { return NB_NORM_BLOCK_TYPES + 1; }
void draw(QPixmap *, uint blockType, uint blockMode, bool lighted) const;