34#include <NDEVR/Editor.h>
71 void writeImage(std::function<
void(
const QImage& image)> callback);
83 Ui::PaperEditorUI* ui =
nullptr;
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
void writePDF()
Exports the paper layout as a vector PDF file.
PaperEditor(QWidget *parent=nullptr)
Constructs a paper editor without a target object.
void updateSizeSlot()
Slot called when the paper size is changed by the user.
void writeImage(std::function< void(const QImage &image)> callback)
Renders the paper layout to an image and passes it to the callback.
virtual EditorShowMode showMode() const
Returns the preferred display mode for this editor.
PaperEditor(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs a paper editor for the given design object.
void updateDPISlot()
Slot called when the DPI value is changed by the user.
void writeImagePDF()
Exports the paper layout as a rasterized image embedded in a PDF file.
virtual void updateValues()
Updates the UI values from the current design object state.
void updateMarginSlot()
Slot called when the margin values are changed by the user.
The primary namespace for the NDEVR SDK.
EditorShowMode
Describes how an Editor should be displayed within the application UI.