|
| BpsReport (const BpsReportElement &aReportElement, QObject *aParent=nullptr) |
| Constructor using the properties of an existing report element. More...
|
|
| BpsReport (QObject *aParent=nullptr) |
| Default constructor. More...
|
|
BpsScriptEngine * | engine () |
| Get the engine used to process the report script. More...
|
|
void | execute () |
| Execute the report script. More...
|
|
void | load (BpsDatastore *aDatastore, const QString &aPath) |
| Loads a report from database when the path name is known. More...
|
|
void | load (BpsDatastore *aDatastore, const QVariant &aKey) |
| Loads a report from database when the key t_reports.c_key is known This method is used with objects created with the default constructor. More...
|
|
void | load (const QString &aPath) |
| Loads a report from file. More...
|
|
| BpsReportElement (const BpsReportElement &aElement, QObject *aParent=nullptr, bool aCopyChilds=true) |
| Copy-constructor for BpsReportElement. More...
|
|
| BpsReportElement (Type aType, QObject *aParent=nullptr) |
| Constructor for BpsReportElement. More...
|
|
BpsReportElement * | childElement (const QString &aName) const |
| Get the named child element. More...
|
|
QGraphicsItem * | createGraphicsItem (int aResolution, const QPointF &aOffset) const |
| Creates a graphics item for external use. More...
|
|
BpsReportElement * | firstChild () const |
| Get first child element. More...
|
|
QGraphicsItem * | graphicsItem () const |
| Get a pointer to the internal graphics item. More...
|
|
QLineF | handleLine () const |
| Get the line where the handles should be placed on for single selection. More...
|
|
QRectF | handleRect () const |
| Get the rectangle where the sizing handles should be placed on. More...
|
|
void | insertChild (int aIndex, BpsReportElement *aChild) |
| Insert a child at the specified position in the list. More...
|
|
BpsReportElement * | lastChild () const |
| Get last child element. More...
|
|
QPointF | offset () const |
| Get the current drawing offset. More...
|
|
BpsReportElement * | parentElement () const |
| Get the parent element. More...
|
|
int | resolution () const |
| Get current drawing resolution. More...
|
|
void | setOffset (const QPointF &aOffset) |
| Set the drawing offset in millimeters. More...
|
|
void | setResolution (int aResolution) |
| Sets the resolution as number of points per inch. More...
|
|
Type | type () const |
|
Type | typeByName (const QString &aTypeName) const |
|
QString | typeName () const |
|
void | addAttribute (const char *aProperty, const char *aAttribute, const QVariant &aValue=true) |
| Adds or remove an attribute to/from an existing property. More...
|
|
void | addProperty (const char *aName, const QVariant &aValue) |
| Add or remove a property. More...
|
|
void | appendChild (BpsPropertyObject *aChild) |
| Appends a child to the end of the children list. More...
|
|
QVariant | attribute (const char *aProperty, const char *aAttribute) const |
| Get the attributes value. More...
|
|
QList< QByteArray > | attributeNames (const char *aProperty) const |
| Get a list of all attributes defined for a certain property. More...
|
|
| BpsPropertyObject (const BpsPropertyObject &aOther) |
| Copy-constructor for BpsPropertyObject. More...
|
|
| BpsPropertyObject (const QString &aName, QObject *aParent=nullptr) |
| Constructor for BpsPropertyObject. More...
|
|
| BpsPropertyObject (QObject *aParent=nullptr) |
| Constructor for BpsPropertyObject. More...
|
|
BpsPropertyObject * | childAt (int aIndex) const |
| Get pointer to indexed child element. More...
|
|
int | childCount () const |
|
int | childIndex (BpsPropertyObject *aChild) const |
| Get index of a child. More...
|
|
QList< BpsPropertyObject * > | children () const |
|
void | clear () |
| Removes all dynamic properties and deletes all children. More...
|
|
void | emitValues () |
| Emits valueChanged() for all properties.
|
|
bool | hasProperty (const char *aName) const |
| Check if a property with given name has been added by BpsPropertyObject::addProperty(). More...
|
|
void | insertChild (int aIndex, BpsPropertyObject *aChild) |
| Insert a child at the specified position in the children list. More...
|
|
bool | isModified () const |
|
bool | isValid (BpsPropertyObject *aObject) const |
|
void | loadXml (const QString &aDocType, const QString &aXml) |
| Load the object from XML. More...
|
|
QString | makeXml (const QString &aDocType, bool aFormat=false) const |
| Creates XML to save the object and its children. More...
|
|
void | moveChild (int aOldIndex, int aNewIndex) |
| Move a child in the list. More...
|
|
BpsPropertyObject & | operator= (const BpsPropertyObject &aOther) |
| Assignment operator. More...
|
|
BpsPropertyObject * | parent () const |
| Get the parent of this object. More...
|
|
QString | propertyAsString (const char *aName) const |
| Gets a string representation of the value. More...
|
|
BpsPropertyObject * | removeChild (BpsPropertyObject *aChild) |
| Remove a child. More...
|
|
BpsPropertyObject * | removeChild (int aIndex) |
| Remove a child. More...
|
|
bool | blockSignals (bool block) |
|
const QObjectList & | children () const const |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectInfo () |
|
void | dumpObjectInfo () const const |
|
void | dumpObjectTree () |
|
void | dumpObjectTree () const const |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
bool | inherits (const char *className) const const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const const |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
QVariant | property (const char *name) const const |
|
| Q_CLASSINFO (Name, Value) |
|
| Q_DISABLE_COPY (Class) |
|
| Q_DISABLE_COPY_MOVE (Class) |
|
| Q_DISABLE_MOVE (Class) |
|
| Q_EMIT Q_EMIT |
|
| Q_ENUM (...) |
|
| Q_ENUM_NS (...) |
|
| Q_ENUMS (...) |
|
| Q_FLAG (...) |
|
| Q_FLAG_NS (...) |
|
| Q_FLAGS (...) |
|
| Q_GADGET Q_GADGET |
|
| Q_INTERFACES (...) |
|
| Q_INVOKABLE Q_INVOKABLE |
|
| Q_NAMESPACE Q_NAMESPACE |
|
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) |
|
| Q_OBJECT Q_OBJECT |
|
| Q_PROPERTY (...) |
|
| Q_REVISION Q_REVISION |
|
| Q_SET_OBJECT_NAME (Object) |
|
| Q_SIGNAL Q_SIGNAL |
|
| Q_SIGNALS Q_SIGNALS |
|
| Q_SLOT Q_SLOT |
|
| Q_SLOTS Q_SLOTS |
|
T | qFindChild (const QObject *obj, const QString &name) |
|
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
|
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
|
| QObject (QObject *parent) |
|
T | qobject_cast (const QObject *object) |
|
T | qobject_cast (QObject *object) |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | signalsBlocked () const const |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
|
QThread * | thread () const const |
|
|
enum | Type { TypeUnknown
, TypeReport
, TypeSection
, TypeSimpletext
, TypeRichtext
, TypeLine
, TypeRectangle
, TypeEllipse
, TypeBarcode
, TypePixmap
} |
| Element type enumeration. More...
|
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
typedef | QObjectList |
|
| objectName |
|
BPS Report Object.
When loading a report, the script can provide additional progress information by first calling setItemsCount(int) to announce the number of items that need to be processed, and then calling setLoadedItems(int) to actually signal the progress.
If setItemsCount(int) is not called before the first page is added, the signal setItemsCount(100) will automatically get called, and itemsLoaded(int) will be emitted after every page add like pagesAdded(int). Should the page count exceed itemsCount() during the load process, setItemsCount(itemsCount()*2) will be executed. This automatism allows to still signal progress when the script does not provide such information, although not that exact.