X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fapatchgui.h;h=5b8411a43762677fc4da49c2f5ec1120a31ba552;hp=c8342057b0ad4f318372d79891bbca2dac11688d;hb=702161ddaf384a773831f1643fca0a54133625b2;hpb=0f8dc862440439b96c65bed178f2457f6f1cc079 diff --git a/cinelerra-5.1/cinelerra/apatchgui.h b/cinelerra-5.1/cinelerra/apatchgui.h index c8342057..5b8411a4 100644 --- a/cinelerra-5.1/cinelerra/apatchgui.h +++ b/cinelerra-5.1/cinelerra/apatchgui.h @@ -39,7 +39,7 @@ public: void create_objects(); int reposition(int x, int y); int update(int x, int y); - void synchronize_fade(float value_change); + void update_faders(float v); ATrack *atrack; AFadePatch *fade; @@ -50,11 +50,9 @@ public: class AFadePatch : public BC_FSlider { public: - AFadePatch(MWindow *mwindow, APatchGUI *patch, int x, int y, int w); + AFadePatch(APatchGUI *patch, int x, int y, int w, float v); static FloatAuto* get_keyframe(MWindow *mwindow, APatchGUI *patch); virtual int handle_event(); - float update_edl(); - MWindow *mwindow; APatchGUI *patch; }; @@ -63,17 +61,37 @@ class AKeyFadePatch : public BC_SubWindow public: AKeyFadePatch(MWindow *mwindow, APatchGUI *patch, int x, int y); void create_objects(); + void update(float v); MWindow *mwindow; APatchGUI *patch; - AKeyFadeValue *akey_fade_value; + AKeyFadeOK *akey_fade_ok; + AKeyFadeText *akey_fade_text; + AKeyFadeSlider *akey_fade_slider; +}; + +class AKeyFadeOK : public BC_Button +{ +public: + AKeyFadeOK(AKeyFadePatch *akey_fade_patch, int x, int y, VFrame **images); + int handle_event(); + + AKeyFadePatch *akey_fade_patch; +}; + +class AKeyFadeText : public BC_TextBox +{ +public: + AKeyFadeText(AKeyFadePatch *akey_fade_patch, int x, int y, int w, float v); + int handle_event(); + + AKeyFadePatch *akey_fade_patch; }; -class AKeyFadeValue : public AFadePatch +class AKeyFadeSlider : public AFadePatch { public: - AKeyFadeValue(AKeyFadePatch *akey_fade_patch); - int button_release_event(); + AKeyFadeSlider(AKeyFadePatch *akey_fade_patch, int x, int y, int w, float v); int handle_event(); AKeyFadePatch *akey_fade_patch; @@ -94,7 +112,6 @@ class AKeyPanPatch : public APanPatch { public: AKeyPanPatch(MWindow *mwindow, APatchGUI *patch); - int button_release_event(); int handle_event(); };