void StateActionCanvas::post_loaded() { force_self_rel_visible(); if (the_canvas()->must_draw_all_relations()) { //draw_all_simple_relations(); draw_all_transitions(); } }
PseudoStateCanvas::PseudoStateCanvas(BrowserNode * bn, UmlCanvas * canvas, int x, int y) : DiagramCanvas(0, canvas, x, y, 16, 16, 0), horiz(FALSE), manual_size(FALSE) { browser_node = bn; set_xpm(); 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_simple_relations(); draw_all_transitions(); } if (!bn->allow_empty()) { double zoom = canvas->zoom(); QFontMetrics fm(canvas->get_font(UmlNormalFont)); label = new LabelCanvas(bn->get_name(), canvas, x + (((int) (width() * zoom)) - fm.width(bn->get_name()))/2, y + ((int) (height() * zoom))); } }
void StateActionCanvas::modified() { hide(); hide_lines(); compute_size(); show(); update_show_lines(); force_self_rel_visible(); if (the_canvas()->must_draw_all_relations()) { //draw_all_simple_relations(); draw_all_transitions(); } check_stereotypeproperties(); canvas()->update(); package_modified(); }
void PseudoStateCanvas::modified() { hide(); hide_lines(); if (browser_node->get_type() == ChoicePS) set_xpm(); show(); update_show_lines(); force_self_rel_visible(); if (the_canvas()->must_draw_all_relations()) { //draw_all_simple_relations(); draw_all_transitions(); } check_stereotypeproperties(); canvas()->update(); if (label != 0) label->set_name(browser_node->get_name()); package_modified(); }
StateActionCanvas::StateActionCanvas(BrowserNode * bn, UmlCanvas * canvas, int x, int y) : DiagramCanvas(0, canvas, x, y, STATE_ACTION_CANVAS_MIN_SIZE, 1, 0) { browser_node = bn; itscolor = UmlDefaultColor; language = DefaultDrawingLanguage; show_stereotype_properties = UmlDefaultState; compute_size(); 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_simple_relations(); draw_all_transitions(); } }