MyBooks
Classes | Namespaces | Macros
baseiteminterface.h File Reference
#include <QObject>
#include <QtCore>
#include <QGraphicsWidget>
#include <QPen>
#include <QWidget>
#include <QPolygonF>
#include <QIcon>
#include "reportplugininterface.h"
#include "cutereport_types.h"
#include "cutereport_functions.h"
#include "cutereport_globals.h"

Go to the source code of this file.

Classes

class  CuteReport::BaseItemInterface
 
class  CuteReport::BaseItemHelperInterface
 

Namespaces

 CuteReport
 

Macros

#define ITEMVIEWTYPE   QGraphicsItem::UserType + 101
 
#define SAVEIFCHANGED(OLD, NEW)
 
#define PROCESS_NEW_PROPERTY_VALUE(PropertyName, VALUE)
 
#define PROCESS_NEW_PROPERTY_VALUE_WITH_GUI_UPDATE(PropertyName, VALUE)
 
#define PROPERTY_CHANGE_SIGNALS(PropertyName)
 
#define NOTPROPERTY_CHANGE_SIGNALS(SIGNALNAME, VARIABLE)
 

Macro Definition Documentation

◆ ITEMVIEWTYPE

#define ITEMVIEWTYPE   QGraphicsItem::UserType + 101

◆ NOTPROPERTY_CHANGE_SIGNALS

#define NOTPROPERTY_CHANGE_SIGNALS (   SIGNALNAME,
  VARIABLE 
)
Value:
if (d->state == NormalState) { \
emit SIGNALNAME ( VARIABLE ); \
emit changed(); \
}
Definition: cutereport_types.h:271

◆ PROCESS_NEW_PROPERTY_VALUE

#define PROCESS_NEW_PROPERTY_VALUE (   PropertyName,
  VALUE 
)
Value:
if (d-> PropertyName == VALUE) \
return; \
d-> PropertyName = VALUE; \
if (d->state == CuteReport::NormalState) { \
emit PropertyName##Changed ( d-> PropertyName ); \
emit changed(); \
}
Definition: cutereport_types.h:271

◆ PROCESS_NEW_PROPERTY_VALUE_WITH_GUI_UPDATE

#define PROCESS_NEW_PROPERTY_VALUE_WITH_GUI_UPDATE (   PropertyName,
  VALUE 
)
Value:
if (d-> PropertyName == VALUE) \
return; \
d-> PropertyName = VALUE; \
update_gui(); \
if (d->state == CuteReport::NormalState) { \
emit PropertyName##Changed ( d-> PropertyName ); \
emit changed(); \
}
Definition: cutereport_types.h:271

◆ PROPERTY_CHANGE_SIGNALS

#define PROPERTY_CHANGE_SIGNALS (   PropertyName)
Value:
if (d->state == CuteReport::NormalState) { \
emit PropertyName##Changed ( d-> PropertyName ); \
emit changed(); \
}
Definition: cutereport_types.h:271

◆ SAVEIFCHANGED

#define SAVEIFCHANGED (   OLD,
  NEW 
)
Value:
if (d-> OLD == NEW) \
return; \
d-> OLD = NEW;