bool ConvertBoolFloat::load(KSimData & file, bool copyLoad)
{
	setTrueValue(file.readDoubleNumEntry("True Value", DEFAULT_TRUE_VALUE));
	setFalseValue(file.readDoubleNumEntry("False Value", DEFAULT_FALSE_VALUE));
	
	return Component::load(file, copyLoad);
}
caLed::caLed(QWidget *parent) : ELed(parent)
{
    thisBitNr = 0;
    thisFalseColor = Qt::gray;
    thisTrueColor = Qt::red;
    thisUndefinedColor = Qt::black;
    thisColorMode = Static;
    setTrueValue("1");
    setFalseValue("0");
    return;
}
caToggleButton::caToggleButton(QWidget *parent) : QCheckBox(parent), FontScalingWidget(this)
{
    setCheckable(true);
    setTristate(true);
    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    thisPalette = palette();
    thisBackColor = defaultBackColor = QColor(200,200,200,0);
    thisForeColor = defaultForeColor = Qt::black;
    thisColorMode=Static;
    setBackground(defaultBackColor);
    setForeground(defaultForeColor);

    installEventFilter(this);
    connect(this, SIGNAL(clicked()), this, SLOT(buttonToggled()) );

    setTrueValue("1");
    setFalseValue("0");

    setAccessW(true);

    setFontScaleMode(WidthAndHeight);
}