diagramelementfactory.cpp File Reference

#include "diagramelementfactory.h"
#include <QByteArray>
#include "MvcCore/elementdoc.h"
#include "diagramgesture.h"
#include "diagrampolygon.h"
#include "diagrampolyline.h"
#include "diagramshape.h"
#include "diagramtext.h"

Defines

#define RETURN_VALUE(VALUE, METHOD, PRE, POST, DEFAULT)

Define Documentation

#define RETURN_VALUE ( VALUE,
METHOD,
PRE,
POST,
DEFAULT   ) 

Value:

{       \
    if ( VALUE == DiagramGesture::METHOD )                      \
      return PRE DiagramGesture POST;                           \
    else if ( VALUE == DiagramPolygon::METHOD )                 \
      return PRE DiagramPolygon POST;                           \
    else if ( VALUE == DiagramPolyline::METHOD )                \
      return PRE DiagramPolyline POST;                          \
    else if ( VALUE == DiagramShape::METHOD )                   \
      return PRE DiagramShape POST;                             \
    else if ( VALUE == DiagramText::METHOD )                    \
      return PRE DiagramText POST;                              \
    return DEFAULT;                                             \
  }


Generated on Mon Jul 30 09:46:50 2007 for Digest by  doxygen 1.5.2