 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
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;
ctkScreenshotDialog(QWidget *parent=0)
void setWidgetToGrab(QWidget *newWidgetToGrab)
virtual ~ctkScreenshotDialog()
void enforceResolution(QSize size=QSize(300, 300))
QSize widgetSize()
Get the original widget size.
void saveScreenshot()
Calls instantScreenshot() after a countdown of delay seconds.
void enableTransparency(bool enable=true)
Allow/Disallow transparency in the output screenshot.
QScopedPointer< ctkScreenshotDialogPrivate > d_ptr
void setDelay(int seconds)
void setBaseFileName(const QString &newImageName)
QWidget * widgetToGrab() const
void enforceResolution(int width=300, int height=300)
void setDirectory(const QString &path)
QString directory() const
QString baseFileName() const