Skip to content
Snippets Groups Projects
Commit 831875cf authored by Ellen Dekkers's avatar Ellen Dekkers
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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 ){
......
......@@ -495,6 +495,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
the current snapshot counter. The \a back buffer will be saved.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment