diff --git a/src/playback_thread.cpp b/src/playback_thread.cpp index b830421..ba8075e 100644 --- a/src/playback_thread.cpp +++ b/src/playback_thread.cpp @@ -13,6 +13,7 @@ Playback::Playback(QObject *parent) : QThread(parent) { isPaused = false; bright_ = gamma_ = saturation_ = 0; single_mode = true; + current_filter = 0; } void Playback::Play() { @@ -111,7 +112,11 @@ void Playback::setColorOptions(int b, int g, int s) { } void Playback::setIndexChanged(int pos) { - + current_filter = pos; +} + +void Playback::setSingleMode(bool val) { + single_mode = val; } void Playback::setRGB(int r, int g, int b) { diff --git a/src/playback_thread.h b/src/playback_thread.h index 72d0d10..9c761f5 100644 --- a/src/playback_thread.h +++ b/src/playback_thread.h @@ -34,6 +34,7 @@ private: unsigned int red, green, blue; unsigned int bright_, gamma_, saturation_; bool single_mode; + int current_filter; public: Playback(QObject *parent = 0); ~Playback(); @@ -54,6 +55,7 @@ public: void setStep(); void setDisplayed(bool shown); void setIndexChanged(int pos); + void setSingleMode(bool val); signals: void procImage(const QImage image); void stopRecording();