21 #ifndef __qMRMLScreenShotDialog_h 22 #define __qMRMLScreenShotDialog_h 30 #include "qMRMLWidgetsExport.h" 35 class qMRMLScreenShotDialogPrivate;
41 Q_PROPERTY(
WidgetType widgetType READ widgetType WRITE setWidgetType)
42 Q_PROPERTY(QString nameEdit READ nameEdit WRITE setNameEdit)
43 Q_PROPERTY(
double scaleFactor READ scaleFactor WRITE setScaleFactor)
44 Q_PROPERTY(
bool showScaleFactorSpinBox READ showScaleFactorSpinBox WRITE setShowScaleFactorSpinBox)
63 void setNameEdit(
const QString& newName);
64 QString nameEdit()
const;
66 void setDescription(
const QString& description);
67 QString description()
const;
71 void setData(
const QVariant& newData);
74 void setWidgetType(WidgetType newType);
75 WidgetType widgetType()
const;
77 void setScaleFactor(
const double& newScaleFactor);
78 double scaleFactor()
const;
80 void setShowScaleFactorSpinBox(
const bool& state);
81 bool showScaleFactorSpinBox()
const;
84 void setImageData(vtkImageData* screenshot);
85 vtkImageData* imageData()
const;
92 void grabScreenShot(
int screenshotWindow);
93 void grabScreenShot();
94 void setLastWidgetType(
int id);
103 QString enumToString(
int type);
106 QScopedPointer<qMRMLScreenShotDialogPrivate>
d_ptr;
Q_DECLARE_METATYPE(qSlicerExtensionsManagerModel::ServerAPI)
QScopedPointer< qMRMLScreenShotDialogPrivate > d_ptr