API Documentation
Loading...
Searching...
No Matches
ReportIterator Class Reference

Iterates through a series of reports for drawing, sending to a PDF or printing. More...

#include <ReportIterator.h>

Inheritance diagram for ReportIterator:
[legend]
Collaboration diagram for ReportIterator:
[legend]

Public Member Functions

virtual bool canHandle (UUID model_id, QTModelManager *)
 
JSONNode createJSONNode () const
 
QWidget * getReport (uint04 report_index) const override
 
const Buffer< const ReportHandler * > & reportHandlers ()
 
 ReportIterator (const Buffer< const ReportHandler * > &reports, const Buffer< UUID > &objects_to_report, QTModelManager *manager)
 
 ReportIterator (const Buffer< const ReportHandler * > &reports, QTModelManager *manager)
 
 ReportIterator (QTModelManager *manager)
 
void saveReportMetaData (const File &file) const
 
void setObjectsToReport (const Buffer< UUID > &objects_to_report)
 
void setReportHandlers (const Buffer< const ReportHandler * > &handlers)
 
void updateAvailableReports ()
 
- Public Member Functions inherited from WidgetIterator
QSize preferredSize () const
 
uint04 reportCount () const
 
virtual void setCustomReport (uint04 index, QWidget *widget)
 
 WidgetIterator ()
 
 WidgetIterator (const Buffer< QWidget * > &objects_to_report)
 
virtual ~WidgetIterator ()
 

Protected Member Functions

void sortIDs ()
 

Protected Attributes

QTModelManagerm_manager
 
Buffer< UUIDm_objects_to_report
 
Buffer< const ReportHandler * > m_report_handlers
 
Buffer< std::pair< const ReportHandler *, UUID > > m_report_objects
 
- Protected Attributes inherited from WidgetIterator
QSize m_prefered_size
 
Buffer< QWidget * > m_widgets
 

Detailed Description

Iterates through a series of reports for drawing, sending to a PDF or printing.


Constructor & Destructor Documentation

◆ ReportIterator() [1/3]

◆ ReportIterator() [2/3]

ReportIterator ( const Buffer< const ReportHandler * > & reports,
QTModelManager * manager )

◆ ReportIterator() [3/3]

ReportIterator ( const Buffer< const ReportHandler * > & reports,
const Buffer< UUID > & objects_to_report,
QTModelManager * manager )

Member Function Documentation

◆ canHandle()

virtual bool canHandle ( UUID model_id,
QTModelManager *  )
virtual

◆ createJSONNode()

JSONNode createJSONNode ( ) const

◆ getReport()

QWidget * getReport ( uint04 report_index) const
overridevirtual

Reimplemented from WidgetIterator.

◆ reportHandlers()

const Buffer< const ReportHandler * > & reportHandlers ( )
inline

◆ saveReportMetaData()

void saveReportMetaData ( const File & file) const

◆ setObjectsToReport()

void setObjectsToReport ( const Buffer< UUID > & objects_to_report)

◆ setReportHandlers()

void setReportHandlers ( const Buffer< const ReportHandler * > & handlers)

◆ sortIDs()

void sortIDs ( )
protected

◆ updateAvailableReports()

void updateAvailableReports ( )

Member Data Documentation

◆ m_manager

QTModelManager* m_manager
protected

◆ m_objects_to_report

Buffer<UUID> m_objects_to_report
protected

◆ m_report_handlers

Buffer<const ReportHandler*> m_report_handlers
protected

◆ m_report_objects

Buffer<std::pair<const ReportHandler*, UUID> > m_report_objects
protected

The documentation for this class was generated from the following file: