21 #ifndef __ctkScreenshotDialog_h
22 #define __ctkScreenshotDialog_h
28 #include "ctkWidgetsExport.h"
30 class ctkScreenshotDialogPrivate;
49 Q_PROPERTY(QString baseFileName READ baseFileName WRITE setBaseFileName)
50 Q_PROPERTY(QString directory READ directory WRITE setDirectory)
51 Q_PROPERTY(
int delay READ delay WRITE setDelay)
104 QScopedPointer<ctkScreenshotDialogPrivate>
d_ptr;
QScopedPointer< ctkScreenshotDialogPrivate > d_ptr
void setWidgetToGrab(QWidget *newWidgetToGrab)
QSize widgetSize()
Get the original widget size.
void enforceResolution(QSize size=QSize(300, 300))
virtual ~ctkScreenshotDialog()
QString baseFileName() const
void setDelay(int seconds)
void setDirectory(const QString &path)
ctkScreenshotDialog(QWidget *parent=0)
QString directory() const
void enableTransparency(bool enable=true)
Allow/Disallow transparency in the output screenshot.
QWidget * widgetToGrab() const
void saveScreenshot()
Calls instantScreenshot() after a countdown of delay seconds.
void setBaseFileName(const QString &newImageName)
void enforceResolution(int width=300, int height=300)