34#include <NDEVR/Vector.h>
35#include <NDEVR/Buffer.h>
36#include <NDEVR/Pointer.h>
44class QPageSetupDialog;
45class QPrintPreviewWidget;
79 bool event(QEvent* event)
override;
102 void printWidget(QWidget* widget, QPainter& painter, QPoint offset);
118 Ui::PrintPreviewUI*
ui;
119 bool m_is_virtual_printer =
false;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
Definition MemoryManager.h:261
A dialog that shows a PrintPreview of a given widgets, reports, or images. User can modify print sett...
Definition PrintPreview.h:56
Button * m_page_settings_button
Definition PrintPreview.h:114
void printWidget(QWidget *widget, const Buffer< QWidget * > &custom_print_options=Buffer< QWidget * >())
Vector< 2, uint04 > pageResolution() const
QFont m_print_font
Definition PrintPreview.h:116
void setCustomPrintSettingsWidgets(const Buffer< QWidget * > &widgets)
static bool SystemHasPrinters()
bool isCustomPercent() const
void printWidget(QWidget *widget, QPainter &painter, QPoint offset)
Vector< 2, fltp08 > customPercent() const
static PrintPreview * PrintPreviewWidget()
bool event(QEvent *event) override
void printWidgets(const Buffer< QWidget * > &widgets, const Buffer< QWidget * > &custom_print_options=Buffer< QWidget * >())
void setPreferredSize(QSize prefered_size)
virtual QSize sizeHint() const override
QPrintDialog * m_print_setup_dialog
Definition PrintPreview.h:109
QPageSetupDialog * m_page_setup_dialog
Definition PrintPreview.h:111
QPrintDialog * printSetupDialog()
void setImages(const Buffer< QImage, uint04, ObjectAllocator< false > > &images, const Buffer< QWidget * > &custom_print_options=Buffer< QWidget * >())
void zoomModeChangedSignal()
void choosePrinterAccepted(QPrinter *printer)
bool m_is_setting_font
Definition PrintPreview.h:117
QPrinter * m_printer
Definition PrintPreview.h:108
void setToDefaultPrinter()
Button * m_print_settings_button
Definition PrintPreview.h:113
void printWidgets(const DynamicPointer< WidgetIterator > &reports, const Buffer< QWidget * > &custom_print_options=Buffer< QWidget * >())
void printImages(QPrinter *printer)
void printWidgets(QPrinter *printer)
Vector< 2, uint04 > m_last_resolution
Definition PrintPreview.h:104
void setImage(uint04 index, const QImage &image, const Buffer< QWidget * > &custom_print_options=Buffer< QWidget * >())
DynamicPointer< WidgetIterator > m_widgets
Definition PrintPreview.h:107
static PrintPreview * PrintPreviewWidget(const Buffer< QImage > &images)
Ui::PrintPreviewUI * ui
Definition PrintPreview.h:118
QPrintPreviewWidget * m_print_preview
Definition PrintPreview.h:110
void setPrintFont(const QFont &font)
Buffer< QImage, uint04, ObjectAllocator< false > > m_images
Definition PrintPreview.h:106
PrintPreview(QWidget *parent=nullptr)
Buffer< QWidget * > m_custom_print_settings_widgets
Definition PrintPreview.h:115
Vector< 2, uint04 > scaledPageResolution() const
Button * m_print_button
Definition PrintPreview.h:112
QPageSetupDialog * pageSetupDialog()
void pageResolutionChangedSignal(Vector< 2, uint04 > pixel_size)
void resetPreferredSize()
bool m_last_is_zoom
Definition PrintPreview.h:105
QPalette printPalette() const
void Print(QPrinter *printer)
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Definition FontEditor.h:6