#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 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; \
}
1.5.2