Ejemplo n.º 1
0
static void
state_set_props(State *state, GPtrArray *props)
{
  object_set_props_from_offsets(&state->element.object,
                                state_offsets,props);
  apply_textattr_properties(props,state->text,"text",&state->attrs);
  state_update_data(state);
}
Ejemplo n.º 2
0
static void
objet_set_props(Objet *objet, GPtrArray *props)
{
  object_set_props_from_offsets(&objet->element.object,
                                objet_offsets,props);
  apply_textstr_properties(props,objet->attributes,"attrib",objet->attrib);
  /* also update our text object with the new color (font + height) */
  /* the aligement is _not_ part of the deal */
  objet->text_attrs.alignment = ALIGN_CENTER;
  apply_textattr_properties(props,objet->text,"text",&objet->text_attrs);
  objet->text_attrs.alignment = ALIGN_LEFT;
  apply_textattr_properties(props,objet->attributes,"attrib",&objet->text_attrs);
  objet->text_attrs.alignment = ALIGN_CENTER;
  g_free(objet->st_stereotype);
  objet->st_stereotype = NULL;
  objet_update_data(objet);
}
Ejemplo n.º 3
0
static void
annotation_set_props(Annotation *annotation, GPtrArray *props)
{
  object_set_props_from_offsets(&annotation->connection.object,
                                annotation_offsets,props);
  apply_textattr_properties(props,annotation->text,"text",&annotation->attrs);
  annotation_update_data(annotation);
}
Ejemplo n.º 4
0
void
aadlbox_set_props(Aadlbox *aadlbox, GPtrArray *props)
{
  object_set_props_from_offsets(&aadlbox->element.object,
                                aadlbox_offsets,props);
  apply_textattr_properties(props,aadlbox->name,"name",&aadlbox->attrs);
  aadlbox_update_data(aadlbox);
}
Ejemplo n.º 5
0
static void
function_set_props(Function *function, GPtrArray *props)
{
  object_set_props_from_offsets(&function->element.object, 
                                function_offsets, props);
  apply_textattr_properties (props, function->text, "text", &function->attrs);
  function_update_data(function);
}
Ejemplo n.º 6
0
static void
component_set_props(Component *component, GPtrArray *props)
{
  object_set_props_from_offsets(&component->element.object, 
                                component_offsets, props);
  apply_textattr_properties(props,component->text,"text",&component->attrs);
  g_free(component->st_stereotype);
  component->st_stereotype = NULL;
  component_update_data(component);
}
Ejemplo n.º 7
0
static void
other_set_props(Other *other, GPtrArray *props)
{
  if (other->init==-1) { other->init++; return; }    /* workaround init bug */

  object_set_props_from_offsets(&other->element.object,
                                other_offsets,props);
  apply_textattr_properties(props,other->text,"text",&other->attrs);
  other_update_data(other, ANCHOR_MIDDLE, ANCHOR_MIDDLE);
}