API Documentation
Loading...
Searching...
No Matches
WidgetIterator.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/BaseValues.h>
4#include <NDEVR/Buffer.h>
5#include <QSize>
6class QWidget;
7namespace NDEVR
8{
9 class QTModelManager;
10 /**--------------------------------------------------------------------------------------------------
11 \brief Provides a way to iterate over a series of widgets, useful for printing dialogs or turning
12 Widgets into reports or PDF files.
13 **/
15 {
16 public:
18 WidgetIterator(const Buffer<QWidget*>& objects_to_report);
19 virtual ~WidgetIterator(){};
20 virtual QWidget* getReport(uint04 report_index) const;
21 virtual void setCustomReport(uint04 index, QWidget* widget);
23 QSize preferredSize() const;
24 protected:
27 };
28}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a way to iterate over a series of widgets, useful for printing dialogs or turning Widgets in...
Definition WidgetIterator.h:15
QSize m_prefered_size
Definition WidgetIterator.h:26
virtual QWidget * getReport(uint04 report_index) const
virtual ~WidgetIterator()
Definition WidgetIterator.h:19
WidgetIterator(const Buffer< QWidget * > &objects_to_report)
virtual void setCustomReport(uint04 index, QWidget *widget)
QSize preferredSize() const
Buffer< QWidget * > m_widgets
Definition WidgetIterator.h:25
uint04 reportCount() const
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96