Example #1
0
void UmlClass::compute_dependencies(QList<CppRefType *> & dependencies,
                                    bool all_in_h)
{
    const WrapperStr dummy;

    compute_dependency(dependencies, dummy, all_in_h);
}
Example #2
0
File: link.c Project: UIKit0/dia
/* drawing here -- TBD inverse flow ??  */
static void
link_draw(Link *link, DiaRenderer *renderer)
{
  DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
  Point *endpoints, p1, p2, pa;
  Arrow arrow;
  gchar *annot;
  double w;
  BezPoint bpl[4];

  /* some asserts */
  assert(link != NULL);
  assert(renderer != NULL);

  /* some point computations */
  endpoints = &link->connection.endpoints[0];
  p1 = endpoints[0];     /* could reverse direction here */
  p2 = endpoints[1];
  pa = compute_annot(&p1,&p2,&link->pm,0.75,0.75);

  /** computing properties **/
  w=LINK_WIDTH;
  annot=NULL;
  arrow.type = ARROW_FILLED_TRIANGLE;
  arrow.length = LINK_ARROWLEN;
  arrow.width = LINK_ARROWWIDTH;

  switch (link->type) {
    case POS_CONTRIB:
      w=1.5*LINK_WIDTH;
      annot = g_strdup("+");
      break;
    case NEG_CONTRIB:
      w=1.5*LINK_WIDTH;
      annot = g_strdup("-");
      break;
    case DEPENDENCY:
      annot = g_strdup("");
      break;
    case DECOMPOSITION:
      arrow.type = ARROW_CROSS;
      annot = g_strdup("");
      break;
    case MEANS_ENDS:
      arrow.type = ARROW_LINES;
      annot = g_strdup("");
      break;
    case UNSPECIFIED: /* use above defaults */
      annot = g_strdup("");
      break;
  }

  /** drawing line **/
  renderer_ops->set_linecaps(renderer, LINECAPS_BUTT);
  renderer_ops->set_linestyle(renderer, LINESTYLE_SOLID);
  renderer_ops->set_linewidth(renderer, w);
  renderer_ops->draw_bezier_with_arrows(renderer, link->line, 3, w, &LINK_FG_COLOR, NULL, &arrow);

  /** drawing decoration **/
  renderer_ops->set_font(renderer, link_font, LINK_FONTHEIGHT);
  if ((annot!=NULL)&& strlen(annot) != 0)
    renderer_ops->draw_string(renderer, annot, &pa, ALIGN_CENTER, &color_black);
  if (annot!=NULL) g_free(annot);

  /** special stuff for dependency **/
  if (link->type==DEPENDENCY) {
    compute_dependency(link->line,bpl);
    renderer_ops->draw_bezier(renderer, bpl, 4, &LINK_FG_COLOR);
  }
}
Example #3
0
void UmlClass::compute_dependencies(Q3PtrList<CppRefType> & dependencies, 
				    bool all_in_h) {
  const Q3CString dummy;
  
  compute_dependency(dependencies, dummy, all_in_h);
}