Beispiel #1
0
};

static PropDescription *
chronoref_describe_props(Chronoref *chronoref) 
{
  if (chronoref_props[0].quark == 0) {
    prop_desc_list_calculate_quarks(chronoref_props);
  }
  return chronoref_props;
}    

static PropOffset chronoref_offsets[] = {
  ELEMENT_COMMON_PROPERTIES_OFFSETS,
  PROP_OFFSET_MULTICOL_BEGIN("chronref"),

  PROP_OFFSET_MULTICOL_COLUMN("time"),
  PROP_OFFSET_FRAME_BEGIN("time"),
  { "start_time",PROP_TYPE_REAL, offsetof(Chronoref,start_time)},
  { "end_time",PROP_TYPE_REAL, offsetof(Chronoref,end_time)},
  { "time_step",PROP_TYPE_REAL, offsetof(Chronoref,time_step)},
  { "time_lstep",PROP_TYPE_REAL, offsetof(Chronoref,time_lstep)},
  PROP_OFFSET_FRAME_END("time"),

  PROP_OFFSET_MULTICOL_COLUMN("aspect"),
  PROP_OFFSET_FRAME_BEGIN("aspect"),
  { "color", PROP_TYPE_COLOUR, offsetof(Chronoref,color)},
  { "main_lwidth", PROP_TYPE_LENGTH, offsetof(Chronoref,main_lwidth)},
  { "light_lwidth", PROP_TYPE_LENGTH, offsetof(Chronoref,light_lwidth)},
  { "font", PROP_TYPE_FONT, offsetof(Chronoref,font)},
  { "font_size", PROP_TYPE_FONTSIZE, offsetof(Chronoref,font_size)},
  { "font_color", PROP_TYPE_COLOUR, offsetof(Chronoref,font_color)},
Beispiel #2
0
  ORTHCONN_COMMON_PROPERTIES,
  /* can't use PROP_STD_TEXT_COLOUR_OPTIONAL cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the Text object - not some subset */
  PROP_STD_TEXT_COLOUR_OPTIONS(PROP_FLAG_VISIBLE|PROP_FLAG_STANDARD|PROP_FLAG_OPTIONAL),
  PROP_STD_LINE_COLOUR_OPTIONAL, 
  
  PROP_DESC_END
};

static PropOffset association_offsets[] = {
  { "name", PROP_TYPE_STRING, offsetof(Association, name) },
  { "direction", PROP_TYPE_ENUM, offsetof(Association, direction) },
  { "assoc_type", PROP_TYPE_ENUM, offsetof(Association, assoc_type) },
  { "show_direction", PROP_TYPE_BOOL, offsetof(Association, show_direction) },

  PROP_OFFSET_MULTICOL_BEGIN("sides"),
  PROP_OFFSET_MULTICOL_COLUMN("side_a"),
  { "role_a", PROP_TYPE_STRING, offsetof(Association, end[0].role) },
  { "multipicity_a", PROP_TYPE_STRING, offsetof(Association, end[0].multiplicity) }, 
  { "visibility_a", PROP_TYPE_ENUM, offsetof(Association, end[0].visibility) },
  { "show_arrow_a", PROP_TYPE_BOOL, offsetof(Association, end[0].arrow) },

  PROP_OFFSET_MULTICOL_COLUMN("side_a"),
  { "role_b", PROP_TYPE_STRING, offsetof(Association, end[1].role) },
  { "multipicity_b", PROP_TYPE_STRING, offsetof(Association, end[1].multiplicity) }, 
  { "visibility_b", PROP_TYPE_ENUM, offsetof(Association, end[1].visibility) },
  { "show_arrow_b", PROP_TYPE_BOOL, offsetof(Association, end[1].arrow) },
  PROP_OFFSET_MULTICOL_END("sides"),

  ORTHCONN_COMMON_PROPERTIES_OFFSETS,
  { "line_colour",PROP_TYPE_COLOUR,offsetof(Association, line_color) },
  { "text_colour", PROP_TYPE_COLOUR, offsetof(Association, text_color) },