API Documentation
Loading...
Searching...
No Matches
ReportGeneratorDialog.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Buffer.h>
4#include <NDEVR/Pointer.h>
5#include <QWidget>
6#include <QLabel>
7class QGridLayout;
8class QHBoxLayout;
9namespace NDEVR
10{
11 class QTModelManager;
12 class ModelSelectionTree;
13 class ProgressWidget;
14 class ReportIterator;
15 class QCustomStackedWidget;
16 class Button;
17 class RibbonSubGroup;
18 class ReportHandler;
20 {
21 Q_OBJECT
22 public:
23 ReportGeneratorDialog(QTModelManager* manager, QWidget* parent = nullptr);
24 virtual ~ReportGeneratorDialog();
25 QSize preferredSize() const;
26 void showEvent(QShowEvent* event) override;
28 virtual void enablePrint(bool enable_print);
29 void setAvailableReportHandlers(const Buffer<const ReportHandler*>& handlers);
30 void updateActiveReportHandlers();
31 bool event(QEvent* event) override;
32 protected:
33 void generatePDFs(bool send_data);
34 void setHasObjectsToReport(bool has_objects_to_report);
35 signals:
39 protected:
43 QTModelManager* m_manager = nullptr;
44 QCustomStackedWidget* m_stacked_widget = nullptr;
45 ModelSelectionTree* m_selection_tree = nullptr;
46 ProgressWidget* m_progress = nullptr;
47 QLabel* m_nothing_to_report_widget = nullptr;
48 QHBoxLayout* m_button_layout = nullptr;
49 QWidget* m_report_selection = nullptr;
50 Button* m_print_button = nullptr;
51 Button* m_show_button = nullptr;
52 Button* m_share_button = nullptr;
53 QGridLayout* m_report_grid = nullptr;
55 };
56}
#define REPORT_GENERATOR_API
Definition DLLInfo.h:74
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Button.h:60
Definition Pointer.hpp:303
Definition ModelSelectionTree.h:48
Definition ProgressWidget.h:43
Definition QCustomStackedWidget.h:142
Definition QTModelManager.h:94
Definition ReportGeneratorDialog.h:20
QSize m_prefered_size
Definition ReportGeneratorDialog.h:54
Buffer< bool > m_active_report_handlers
Definition ReportGeneratorDialog.h:42
Buffer< const ReportHandler * > m_available_report_handlers
Definition ReportGeneratorDialog.h:41
DynamicPointer< ReportIterator > m_report_iterator
Definition ReportGeneratorDialog.h:40
Definition ACIColor.h:37