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);
25 QSize preferredSize() const;
26 void showEvent(QShowEvent* event) override;
28 virtual void enablePrint(bool enable_print);
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:41
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A core widget that allows the user to click one of many button types.
Definition Button.h:66
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
Definition ModelSelectionTree.h:48
Displays the progress, either horizontally as a bar or as a roand spin dial. Contains various options...
Definition ProgressWidget.h:47
The main class for a layout where all widgets occupy the same same and only one widget is shown at a ...
Definition QCustomStackedWidget.h:149
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
Definition ReportGeneratorDialog.h:20
void generatePDFs(bool send_data)
DynamicPointer< ReportIterator > reports()
QSize m_prefered_size
Definition ReportGeneratorDialog.h:54
void showEvent(QShowEvent *event) override
void setHasObjectsToReport(bool has_objects_to_report)
void setAvailableReportHandlers(const Buffer< const ReportHandler * > &handlers)
Buffer< bool > m_active_report_handlers
Definition ReportGeneratorDialog.h:42
bool event(QEvent *event) override
ReportGeneratorDialog(QTModelManager *manager, QWidget *parent=nullptr)
Buffer< const ReportHandler * > m_available_report_handlers
Definition ReportGeneratorDialog.h:41
virtual void enablePrint(bool enable_print)
DynamicPointer< ReportIterator > m_report_iterator
Definition ReportGeneratorDialog.h:40
Definition ACIColor.h:37