Commit c8d70792 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added Viewerproperty for snapshot

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8d449bdc
......@@ -120,9 +120,6 @@ namespace Viewer {
public slots:
/** Set the base file name and reset the counter for snapshots.
The image file format is determined from the file name extension,
the \a QImageIO formats are supported (e.g. ".ppm" [raw], ".png").
The current snapshot counter will be added in front of the last "."
in the filename.
......@@ -130,6 +127,11 @@ namespace Viewer {
counter to 0.
void snapshotBaseFileName(const QString& _fname);
/** Set the file type for snapshots. defaults to png"
void snapshotFileType(const QString& _type);
/** Get the name for the current snapshot */
QString snapshotName() { return snapshotName_; };
......@@ -139,6 +141,7 @@ namespace Viewer {
QString snapshotName_;
QString snapshotFileType_;
int snapshotCounter_;
/** @} */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment