void FragmentCanvas::save(QTextStream & st, bool ref, QString & warning) const { if (ref) { st << "fragment_ref " << get_ident(); } else { nl_indent(st); st << "fragment " << get_ident() << ' '; save_string(name, st); indent(+1); nl_indent(st); if (itscolor != UmlDefaultColor) st << "color " << stringify(itscolor) << ' '; if (refer != 0) { st << "refer "; refer->save(st, TRUE, warning); nl_indent(st); } if (! form.isEmpty()) { st << "form "; save_string(form, st); st << ' '; } save_xyzwh(st, this, "xyzwh"); Q3PtrListIterator<FragmentSeparatorCanvas> it(separators); for (; it.current(); ++it) it.current()->save(st, FALSE, warning); indent(-1); nl_indent(st); st << "end"; } }
void ActivityPartitionCanvas::save(QTextStream & st, bool ref, QString & warning) const { if (ref) { st << "activitypartitioncanvas_ref " << get_ident() << " // " << browser_node->full_name(); } else { nl_indent(st); st << "activitypartitioncanvas " << get_ident() << ' '; browser_node->save(st, TRUE, warning); indent(+1); if (itscolor != UmlDefaultColor) { nl_indent(st); st << "color " << stringify(itscolor); if (horiz) st << " horiz "; } else if (horiz) { nl_indent(st); st << "horiz "; } save_stereotype_property(st, warning); nl_indent(st); save_xyzwh(st, this, "xyzwh"); indent(-1); nl_indent(st); st << "end"; } }
void DeploymentNodeCanvas::save(Q3TextStream & st, bool ref, QString & warning) const { if (ref) st << "deploymentnodecanvas_ref " << get_ident() << " // " << browser_node->get_name(); else { nl_indent(st); st << "deploymentnodecanvas " << get_ident() << ' '; indent(+1); browser_node->save(st, TRUE, warning); if (!iname.isEmpty()) { nl_indent(st); st << "name "; save_string(iname, st); } nl_indent(st); if (write_horizontally != UmlDefaultState) st << "write_horizontally " << stringify(write_horizontally) << ' '; if (show_stereotype_properties != UmlDefaultState) st << "show_stereotype_properties " << stringify(show_stereotype_properties) << ' '; if (itscolor != UmlDefaultColor) st << "color " << stringify(itscolor) << ' '; save_xyzwh(st, this, "xyzwh"); save_stereotype_property(st, warning); indent(-1); nl_indent(st); st << "end"; } }
void PseudoStateCanvas::save(QTextStream & st, bool ref, QString & warning) const { if (ref) { st << "pseudostatecanvas_ref " << get_ident() << " // " << browser_node->full_name(); } else { nl_indent(st); st << "pseudostatecanvas " << get_ident() << ' '; browser_node->save(st, TRUE, warning); indent(+1); nl_indent(st); if (horiz) st << "horizontal "; if (manual_size) save_xyzwh(st, this, " xyzwh"); else save_xyz(st, this, " xyz"); if (label != 0) save_xy(st, label, " label_xy"); save_stereotype_property(st, warning); indent(-1); nl_indent(st); st << "end"; } }
void NoteCanvas::save_internal(Q3TextStream & st) const { save_string(fromUnicode(note), st); nl_indent(st); if (itscolor != UmlDefaultColor) st << " color " << stringify(itscolor); if (itsfont != UmlNormalFont) st << " font " << stringify(itsfont); if (fg_c != UmlBlack) st << " fg " << stringify(fg_c); save_xyzwh(st, this, " xyzwh"); }
void SubjectCanvas::save(Q3TextStream & st, bool ref, QString &) const { if (ref) { st << "subject_ref " << get_ident(); } else { nl_indent(st); st << "subject " << get_ident() << ' '; save_string(fromUnicode(name), st); nl_indent(st); if (itscolor != UmlDefaultColor) st << " color " << stringify(itscolor); save_xyzwh(st, this, " xyzwh"); } }
void TextCanvas::save(QTextStream & st, bool ref, QString &) const { if (ref) st << "textcanvas_ref " << get_ident(); else { nl_indent(st); st << "textcanvas " << get_ident() << ' '; save_string(fromUnicode(text), st); nl_indent(st); if (itsfont != UmlNormalFont) st << " font " << stringify(itsfont); if (fg_c != UmlBlack) st << " fg " << stringify(fg_c); if (bg_c != UmlTransparent) st << " bg " << stringify(bg_c); save_xyzwh(st, this, " xyzwh"); } }
void NoteCanvas::save_internal(QTextStream & st) const { QTextCodec* codec = QTextCodec::codecForLocale(); QByteArray toWrite = codec->fromUnicode(note); save_string(toWrite, st); //save_string(temp1, st); nl_indent(st); if (itscolor != UmlDefaultColor) st << " color " << stringify(itscolor); if (itsfont != UmlNormalFont) st << " font " << stringify(itsfont); if (fg_c != UmlBlack) st << " fg " << stringify(fg_c); save_xyzwh(st, this, " xyzwh"); }
void UcUseCaseCanvas::save(QTextStream & st, bool ref, QString & warning) const { if (ref) st << "usecasecanvas_ref " << get_ident() << " // " << browser_node->get_name(); else { nl_indent(st); st << "usecasecanvas " << get_ident() << ' '; browser_node->save(st, TRUE, warning); if (itscolor != UmlDefaultColor) { nl_indent(st); st << " color " << stringify(itscolor); } indent(+1); nl_indent(st); save_xyzwh(st, this, "xyzwh"); save_xy(st, label, " label_xy"); save_stereotype_property(st, warning); indent(-1); nl_indent(st); st << "end"; } }
void StateActionCanvas::save(QTextStream & st, bool ref, QString & warning) const { if (ref) { st << "stateactioncanvas_ref " << get_ident(); } else { nl_indent(st); st << "stateactioncanvas " << get_ident() << ' '; browser_node->save(st, TRUE, warning); indent(+1); nl_indent(st); if (language != DefaultDrawingLanguage) st << "language " << stringify(language) << ' '; if (show_stereotype_properties != UmlDefaultState) st << "show_stereotype_properties " << stringify(show_stereotype_properties) << ' '; if (itscolor != UmlDefaultColor) st << "color " << stringify(itscolor) << ' '; save_xyzwh(st, this, "xyzwh"); save_stereotype_property(st, warning); indent(-1); nl_indent(st); st << "end"; } }
void SdDurationCanvas::save_internal(Q3TextStream & st) const { indent(+1); if (coregion) { nl_indent(st); st << "coregion"; } if (itscolor != UmlDefaultColor) { nl_indent(st); st << "color " << stringify(itscolor); } nl_indent(st); save_xyzwh(st, this, "xyzwh"); Q3PtrListIterator<SdDurationCanvas> itd(durations); for (; itd.current(); ++itd) itd.current()->save_sub(st); indent(-1); nl_indent(st); st << "end"; }
void PackageCanvas::save(Q3TextStream & st, bool ref, QString & warning) const { if (ref) st << "packagecanvas_ref " << get_ident() << " // " << browser_node->get_name(); else { nl_indent(st); st << "packagecanvas " << get_ident() << ' '; indent(+1); browser_node->save(st, TRUE, warning); nl_indent(st); if (name_in_tab != UmlDefaultState) st << "name_in_tab " << stringify(name_in_tab); if (show_context_mode != DefaultShowContextMode) st << " show_context_mode " << stringify(show_context_mode); if (show_stereotype_properties != UmlDefaultState) st << " show_stereotype_properties " << stringify(show_stereotype_properties); if (itscolor != UmlDefaultColor) st << " color " << stringify(itscolor); save_xyzwh(st, this, " xyzwh"); save_stereotype_property(st, warning); indent(-1); nl_indent(st); st << "end"; } }
void ActivityActionCanvas::save(QTextStream & st, bool ref, QString & warning) const { if (ref) { st << "activityactioncanvas_ref " << get_ident() << " // " << browser_node->full_name(); } else { nl_indent(st); st << "activityactioncanvas " << get_ident() << ' '; browser_node->save(st, TRUE, warning); indent(+1); settings.save(st); nl_indent(st); st << "show_opaque_action_definition " << stringify(show_opaque_action_definition); if (itscolor != UmlDefaultColor) { nl_indent(st); st << "color " << stringify(itscolor); } nl_indent(st); save_xyzwh(st, this, "xyzwh"); if (! pins.isEmpty()) { nl_indent(st); st << "pins"; indent(+1); QValueList<PinCanvas *>::ConstIterator iter; for (iter = pins.begin(); iter != pins.end(); ++iter) (*iter)->save(st, FALSE, warning); indent(-1); nl_indent(st); st << "end"; } if (! paramsets.isEmpty()) { nl_indent(st); st << "parameter_sets"; indent(+1); QValueList<ParameterSetCanvas *>::ConstIterator iterps; for (iterps = paramsets.begin(); iterps != paramsets.end(); ++iterps) (*iterps)->save(st, FALSE, warning); indent(-1); nl_indent(st); st << "end"; } if (pre != 0) { nl_indent(st); st << "pre "; pre->save(st, FALSE, warning); } if (post != 0) { nl_indent(st); st << "post "; post->save(st, FALSE, warning); } if (constraint != 0) { nl_indent(st); st << "constraint "; constraint->save(st, FALSE, warning); } save_stereotype_property(st, warning); indent(-1); nl_indent(st); st << "end"; } }