Iterates through a series of reports for drawing, sending to a PDF or printing.
More...
|
|
void | sortIDs () |
| | Sorts the report object IDs for consistent ordering.
|
|
|
QTModelManager * | m_manager |
| | The model manager providing data.
|
|
Buffer< UUID > | m_objects_to_report |
| | UUIDs of objects to include in reports.
|
|
Buffer< const ReportHandler * > | m_report_handlers |
| | The report handlers used for generation.
|
|
Buffer< std::pair< const ReportHandler *, UUID > > | m_report_objects |
| | Paired handler-object entries for report generation.
|
|
QSize | m_preferred_size |
| | The preferred size for report rendering.
|
|
Buffer< QWidget * > | m_widgets |
| | The collection of widgets to iterate over.
|
Iterates through a series of reports for drawing, sending to a PDF or printing.
Definition at line 151 of file ReportIterator.h.
◆ ReportIterator() [1/3]
Constructs a report iterator using all registered report handlers.
- Parameters
-
| [in] | manager | The model manager providing data. |
◆ ReportIterator() [2/3]
Constructs a report iterator with specific report handlers.
- Parameters
-
| [in] | reports | The report handlers to use. |
| [in] | manager | The model manager providing data. |
◆ ReportIterator() [3/3]
Constructs a report iterator with specific handlers and objects.
- Parameters
-
| [in] | reports | The report handlers to use. |
| [in] | objects_to_report | The UUIDs of objects to include in the report. |
| [in] | manager | The model manager providing data. |
◆ canHandle()
Checks whether any handler can process a report for the given model.
- Parameters
-
| [in] | model_id | The UUID of the model to check. |
- Returns
- True if the report can be handled.
◆ createJSONNode()
| JSONNode ReportIterator::createJSONNode |
( |
| ) |
const |
Creates a JSON representation of the report data.
- Returns
- A JSONNode containing the report data.
◆ getReport()
| QWidget * ReportIterator::getReport |
( |
uint04 | report_index | ) |
const |
|
overridevirtual |
Generates a report widget for the given report index.
- Parameters
-
| [in] | report_index | The index of the report page to generate. |
- Returns
- A pointer to the generated report widget.
Reimplemented from WidgetIterator.
◆ reportHandlers()
◆ saveReportMetaData()
| void ReportIterator::saveReportMetaData |
( |
const File & | file | ) |
const |
Saves report metadata to a file.
- Parameters
-
| [in] | file | The file to save metadata to. |
◆ setObjectsToReport()
| void ReportIterator::setObjectsToReport |
( |
const Buffer< UUID > & | objects_to_report | ) |
|
Sets the objects to include in the report.
- Parameters
-
| [in] | objects_to_report | The UUIDs of objects to report on. |
◆ setReportHandlers()
Sets the report handlers used for generating reports.
- Parameters
-
| [in] | handlers | The report handlers to use. |
The documentation for this class was generated from the following file: