Commit 831875cf authored by Ellen Dekkers's avatar Ellen Dekkers

Function snapshotCounterStart added: initialize the number where the snapshot...

Function snapshotCounterStart added: initialize the number where the snapshot counter starts counting

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10448 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ea71a4d4
......@@ -1227,6 +1227,20 @@ void Core::snapshotFileType(const QString& _type, unsigned int _viewerId ){
}
void Core::snapshotCounterStart(const int _counter, unsigned int _viewerId ){
if ( OpenFlipper::Options::gui() ) {
if ( _viewerId >= OpenFlipper::Options::examinerWidgets() ) {
emit log(LOGERR,tr("Unable to snapshotFileType for viewer ") + QString::number(_viewerId) );
return;
}
PluginFunctions::viewerProperties(_viewerId).snapshotCounter( _counter );
}
}
void Core::snapshot( unsigned int _viewerId, int _width, int _height, bool _alpha ){
......
......@@ -494,6 +494,9 @@ public slots:
/// Set the file type for snapshots.
void snapshotFileType(const QString& _type, unsigned int _viewerId = 0);
/// Set the start index for the snapshot counter
void snapshotCounterStart(const int _counter, unsigned int _viewerId = 0);
/** Trigger a snapshot and increase the snapshot counter.
Save snapshot to file determined by snapshotBaseFileName() and
......
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