X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fchromakey%2Fchromakey.h;h=f282554fec9df80c558dedaa5b29802ec0276a69;hb=9058f65f71aafbeab023657be0f6b84b629b70c4;hp=cefa8d9de6684a96fa989a008dc005db4ad96d95;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/chromakey/chromakey.h b/cinelerra-5.1/plugins/chromakey/chromakey.h index cefa8d9d..f282554f 100644 --- a/cinelerra-5.1/plugins/chromakey/chromakey.h +++ b/cinelerra-5.1/plugins/chromakey/chromakey.h @@ -39,7 +39,7 @@ class ChromaKeyConfig { public: ChromaKeyConfig(); - + void reset(); void copy_from(ChromaKeyConfig &src); int equivalent(ChromaKeyConfig &src); void interpolate(ChromaKeyConfig &prev, @@ -93,6 +93,15 @@ public: ChromaKey *plugin; }; +class ChromaKeyReset : public BC_GenericButton +{ +public: + ChromaKeyReset(ChromaKey *plugin, ChromaKeyWindow *gui, int x, int y); + int handle_event(); + ChromaKey *plugin; + ChromaKeyWindow *gui; +}; + class ChromaKeyUseColorPicker : public BC_GenericButton { public: @@ -103,7 +112,7 @@ public: }; -class ChromaKeyColorThread : public ColorThread +class ChromaKeyColorThread : public ColorPicker { public: ChromaKeyColorThread(ChromaKey *plugin, ChromaKeyWindow *gui); @@ -120,13 +129,16 @@ public: ~ChromaKeyWindow(); void create_objects(); + void update_gui(); void update_sample(); + void done_event(int result); ChromaKeyColor *color; ChromaKeyThreshold *threshold; ChromaKeyUseValue *use_value; ChromaKeyUseColorPicker *use_colorpicker; ChromaKeySlope *slope; + ChromaKeyReset *reset; BC_SubWindow *sample; ChromaKey *plugin; ChromaKeyColorThread *color_thread;