3#include <NDEVR/WidgetIterator.h>
4#include <NDEVR/TranslatedString.h>
5#include <NDEVR/BaseValues.h>
7#include <NDEVR/String.h>
8#include <NDEVR/JSONNode.h>
33 void addProjectUnits();
41 , m_description(description)
62 virtual UUID id()
const {
return UUID::CreateUUID(m_name.translationID()); }
68 bool m_default_enabled =
true;
77 QWidget* getReport(
uint04 report_index)
const override;
78 void setObjectsToReport(
const Buffer<UUID>& objects_to_report);
79 void updateAvailableReports();
81 void saveReportMetaData(
const File& file)
const;
97 static void RegisterReportHandler(
const ReportHandler* handler);
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
JavaScript Object Notation or JSON is an open - standard file format that uses human - readable text ...
Definition JSONParser.h:121
Definition QTModelManager.h:94
Definition ReportIterator.h:37
TranslatedString m_description
Definition ReportIterator.h:66
ReportHandler(const TranslatedString &name, const TranslatedString &description, const String &icon)
Definition ReportIterator.h:39
virtual QWidget * getReport(const UUID &, QTModelManager *, const QRect &) const
Definition ReportIterator.h:57
String m_icon
Definition ReportIterator.h:67
virtual ~ReportHandler()
Definition ReportIterator.h:44
const TranslatedString & description() const
Definition ReportIterator.h:46
virtual Buffer< UUID > defaultReportIDs(const Buffer< UUID > &, QTModelManager *) const
Definition ReportIterator.h:50
const String & icon() const
Definition ReportIterator.h:47
TranslatedString m_name
Definition ReportIterator.h:65
virtual void createReportJSON(const UUID &, JSONNode &, ReportJSONMaker &) const
Definition ReportIterator.h:60
virtual UUID id() const
Definition ReportIterator.h:62
virtual QMenu * popupOptions() const
Definition ReportIterator.h:52
virtual bool canHandle(UUID, QTModelManager *) const
Definition ReportIterator.h:54
virtual bool defaultEnabled() const
Definition ReportIterator.h:63
const TranslatedString & name() const
Definition ReportIterator.h:45
Definition ReportIterator.h:72
Buffer< UUID > m_objects_to_report
Definition ReportIterator.h:88
Buffer< std::pair< const ReportHandler *, UUID > > m_report_objects
Definition ReportIterator.h:89
Buffer< const ReportHandler * > m_report_handlers
Definition ReportIterator.h:91
QTModelManager * m_manager
Definition ReportIterator.h:90
const Buffer< const ReportHandler * > & reportHandlers()
Definition ReportIterator.h:84
Definition ReportIterator.h:95
static Buffer< const ReportHandler * > s_report_handlers
Definition ReportIterator.h:100
static const Buffer< const ReportHandler * > & ReportHandlers()
Definition ReportIterator.h:98
Definition TranslatedString.h:9
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition ReportIterator.h:28
JSONNode root
Definition ReportIterator.h:30
QTModelManager * manager
Definition ReportIterator.h:29
Definition ReportIterator.h:20
File file
Definition ReportIterator.h:23
String id
Definition ReportIterator.h:21
String base_64
Definition ReportIterator.h:22