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

Handles creating a report page from some given data. A report page is a QWidget object that is formatted for printing to a printer or PDF page. More...

#include <ReportIterator.h>

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

Public Member Functions

virtual bool canHandle (UUID, QTModelManager *) const
 
virtual void createReportJSON (const UUID &, JSONNode &, ReportJSONMaker &) const
 
virtual bool defaultEnabled () const
 
virtual Buffer< UUIDdefaultReportIDs (const Buffer< UUID > &, QTModelManager *) const
 
const TranslatedStringdescription () const
 
virtual QWidget * getReport (const UUID &, QTModelManager *, const QRect &) const
 
const Stringicon () const
 
virtual UUID id () const
 
const TranslatedStringname () const
 
virtual QMenu * popupOptions () const
 
 ReportHandler (const TranslatedString &name, const TranslatedString &description, const String &icon)
 
virtual ~ReportHandler ()
 

Protected Attributes

bool m_default_enabled = true
 
TranslatedString m_description
 
String m_icon
 
TranslatedString m_name
 

Detailed Description

Handles creating a report page from some given data. A report page is a QWidget object that is formatted for printing to a printer or PDF page.


Constructor & Destructor Documentation

◆ ReportHandler()

ReportHandler ( const TranslatedString & name,
const TranslatedString & description,
const String & icon )
inline

◆ ~ReportHandler()

virtual ~ReportHandler ( )
inlinevirtual

Member Function Documentation

◆ canHandle()

virtual bool canHandle ( UUID ,
QTModelManager *  ) const
inlinevirtual

◆ createReportJSON()

virtual void createReportJSON ( const UUID & ,
JSONNode & ,
ReportJSONMaker &  ) const
inlinevirtual

◆ defaultEnabled()

virtual bool defaultEnabled ( ) const
inlinevirtual

◆ defaultReportIDs()

virtual Buffer< UUID > defaultReportIDs ( const Buffer< UUID > & ,
QTModelManager *  ) const
inlinevirtual

◆ description()

const TranslatedString & description ( ) const
inline

◆ getReport()

virtual QWidget * getReport ( const UUID & ,
QTModelManager * ,
const QRect &  ) const
inlinevirtual

◆ icon()

const String & icon ( ) const
inline

◆ id()

virtual UUID id ( ) const
inlinevirtual

◆ name()

const TranslatedString & name ( ) const
inline

◆ popupOptions()

virtual QMenu * popupOptions ( ) const
inlinevirtual

Member Data Documentation

◆ m_default_enabled

bool m_default_enabled = true
protected

◆ m_description

TranslatedString m_description
protected

◆ m_icon

String m_icon
protected

◆ m_name

TranslatedString m_name
protected

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