diff --git a/Core/Core.cc b/Core/Core.cc index 469fcb58290f7c0374fa50a40b658e6df251a93c..a5c04605fa7fd86d253ff89f75bb3675d254b3a6 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -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 ){ diff --git a/Core/Core.hh b/Core/Core.hh index ab757f3a1d6171cba40fc6e55cb6262ef5133205..8f099253b45ae4b0124482f2ac44fbf32a62a8a4 100644 --- a/Core/Core.hh +++ b/Core/Core.hh @@ -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