Ejemplo n.º 1
0
void FVAnimation::setupAttributes( )
{
    Attr * a;
    a = am->addAttr( tr("Type"), tr("Animation"), QString("text") );
    a->setEditable(false);
    a = am->addAttr( tr("Name"), tr("Unknown"), QString("text") );
    a->setEditable(false);

    a = am->addAttr( tr("Start Time:"), QString("%1").arg( 0 ) , QString("text") );
    a->setEditable(false);
    a = am->addAttr( tr("End Time:"), QString("%1").arg( 0 ), QString("text") );
    a->setEditable(false);
    a = am->addAttr( tr("Time Step:"), QString("%1").arg( 0 ), QString("text") );
    a->setEditable(false);

    a = am->addAttr( tr("Current Time:"), QString("%1").arg( 0 ), QString("textlist") );

    a = am->addAttr( tr("Play Speed:"), tr("Stop"), QString("textlist") );
    a->addListItem( tr("Stop") );
    a->addListItem( tr("Turtle") );
    a->addListItem( tr("Slow") );
    a->addListItem( tr("Normal") );
    a->addListItem( tr("Fast") );
    a->addListItem( tr("Cheetah") );
}
Ejemplo n.º 2
0
void FVBoxField::setupAttributesMinMax( )
{
        Attr * a;

        a = am->updateAttr( tr("Values No."), QString("%1").arg( field->size() ) , QString("text") );
        a->setEditable(false);
        a = am->updateAttr( tr("Min. Value"), QString("%1").arg( field->min() ), QString("text") );
        a->setEditable(false);
        a = am->updateAttr( tr("Max. Value"), QString("%1").arg( field->max() ), QString("text") );
        a->setEditable(false);
}
Ejemplo n.º 3
0
void FVBoxField::setupAttributes( )
{
	am->clear();
	
	Attr * a;
	a = am->addAttr( tr("Type"), tr("Field"), QString("text") );
	a->setEditable(false);
	a = am->addAttr( tr("Name"), tr(""), QString("text") );
	a->setEditable(false);
	
        setupAttributesMinMax();
}