NDEVR
API Documentation
WidgetIterator.h
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;
14 class NDEVR_WIDGETS_API WidgetIterator
15 {
16 public:
21 WidgetIterator(const Buffer<QWidget*>& objects_to_report);
22 virtual ~WidgetIterator(){};
26 virtual QWidget* getReport(uint04 report_index) const;
30 virtual void setCustomReport(uint04 index, QWidget* widget);
36 QSize preferredSize() const;
37 protected:
40 };
41}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
QSize m_preferred_size
The preferred size for report rendering.
Buffer< QWidget * > m_widgets
The collection of widgets to iterate over.
WidgetIterator()
Constructs an empty WidgetIterator.
WidgetIterator(const Buffer< QWidget * > &objects_to_report)
Constructs a WidgetIterator with a buffer of widgets.
uint04 reportCount() const
Returns the total number of report widgets.
virtual void setCustomReport(uint04 index, QWidget *widget)
Replaces the widget at the given index with a custom widget.
virtual QWidget * getReport(uint04 report_index) const
Returns the widget at the given report index.
QSize preferredSize() const
Returns the preferred size for rendering each report page.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...