Ejemplo n.º 1
0
ActivityActionCanvas::ActivityActionCanvas(BrowserNode * bn, UmlCanvas * canvas,
					   int x, int y)
    : DiagramCanvas(0, canvas, x, y, ACTIVITYACTION_MIN_SIZE*5/2,
		    ACTIVITYACTION_MIN_SIZE*3/2, 0) {
  browser_node = bn;
  pre = 0;
  post = 0;
  constraint = 0;
  show_opaque_action_definition = UmlDefaultState;
  itscolor = UmlDefaultColor;

  update();
  
  check_pins();
  check_parametersets();
  check_conditions_constraint();
  check_stereotypeproperties();

  connect(bn->get_data(), SIGNAL(changed()), this, SLOT(modified()));
  connect(bn->get_data(), SIGNAL(deleted()), this, SLOT(deleted()));
  connect(DrawingSettings::instance(), SIGNAL(changed()), this, SLOT(modified()));

  if (canvas->must_draw_all_relations()) {
    draw_all_flows();
    draw_all_simple_relations();
  }
}
Ejemplo n.º 2
0
void ActivityActionCanvas::modified() {
  hide();
  hide_lines();
  update();
  show();
  update_show_lines();
  force_pins_arround();
  check_pins();
  check_parametersets();
  if (the_canvas()->must_draw_all_relations()) {
    draw_all_flows();
    draw_all_simple_relations();
  }
  check_conditions_constraint();
  check_stereotypeproperties();
  canvas()->update();
  package_modified();
}
Ejemplo n.º 3
0
ISR(TIMER2_OVF_vect, ISR_BLOCK) {
	TCNT2 = 0x06; //reload counter value
	timer2_counter++;
	check_pins();
}
Ejemplo n.º 4
0
//----------------------------------------------------------------------------------------------
void Timer0_user_int(void)
{
check_pins();
}