예제 #1
0
파일: zigzagline.c 프로젝트: brunetton/dia
static ObjectChange*
zigzagline_move(Zigzagline *zigzagline, Point *to)
{
  orthconn_move(&zigzagline->orth, to);
  zigzagline_update_data(zigzagline);

  return NULL;
}
예제 #2
0
파일: realizes.c 프로젝트: krattai/monoflow
static ObjectChange*
realizes_move(Realizes *realize, Point *to)
{
  orthconn_move(&realize->orth, to);
  realizes_update_data(realize);

  return NULL;
}
예제 #3
0
static ObjectChange*
dependency_move(Dependency *dep, Point *to)
{
  ObjectChange *change;

  change = orthconn_move(&dep->orth, to);
  dependency_update_data(dep);

  return change;
}
예제 #4
0
파일: participation.c 프로젝트: UIKit0/dia
static ObjectChange*
participation_move(Participation *participation, Point *to)
{
  ObjectChange *change;

  change = orthconn_move(&participation->orth, to);
  participation_update_data(participation);

  return change;
}
예제 #5
0
static ObjectChange*
association_move(Association *assoc, Point *to)
{
  ObjectChange *change;

  change = orthconn_move(&assoc->orth, to);
  association_update_data(assoc);

  return change;
}
예제 #6
0
파일: vector.c 프로젝트: krattai/monoflow
static ObjectChange*
arc_move(Arc *arc, Point *to)
{
  ObjectChange *change;

  change = orthconn_move(&arc->orth, to);
  arc_update_data(arc);

  return change;
}
예제 #7
0
static ObjectChange *
compfeat_move(Compfeat *compfeat, Point *to)
{
  ObjectChange *change;
  Point delta = *to;

  delta = *to;
  point_sub(&delta, &compfeat->orth.points[0]);

  /* I don't understand this, but the text position is wrong directly
     after compfeat_create()! */
  point_add(&delta, &compfeat->text->position);
  text_set_position(compfeat->text, &delta);
  change = orthconn_move(&compfeat->orth, to);
  compfeat_update_data(compfeat);

  return change;
}
예제 #8
0
파일: transition.c 프로젝트: brunetton/dia
static ObjectChange*
transition_move(Transition* transition, Point* newpos)
{
  Point delta;
  ObjectChange *change;

  
  /* Find a delta in order to move the text handles along with the transition */
  delta = *newpos;
  point_sub(&delta, &transition->orth.points[0]);
  
  change = orthconn_move(&transition->orth, newpos);

  /* Move the text handles */ 
  point_add(&transition->trigger_text_pos, &delta);
  point_add(&transition->guard_text_pos, &delta);
  
  uml_transition_update_data(transition);

  return change;
}
예제 #9
0
static void
generalization_move(Generalization *genlz, Point *to)
{
  orthconn_move(&genlz->orth, to);
  generalization_update_data(genlz);
}
예제 #10
0
static void
participation_move(Participation *participation, Point *to)
{
  orthconn_move(&participation->orth, to);
  participation_update_data(participation);
}