X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fgwindowgui.h;h=6490c851c4ff3f2f713a017ff6ed00453134fb63;hb=166867a58d74619aa11aeb562a994cc364d62231;hp=f243a22879672f4e0dc867bc4f008aa52b1c600f;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/gwindowgui.h b/cinelerra-5.1/cinelerra/gwindowgui.h index f243a228..6490c851 100644 --- a/cinelerra-5.1/cinelerra/gwindowgui.h +++ b/cinelerra-5.1/cinelerra/gwindowgui.h @@ -34,6 +34,7 @@ enum { NONAUTOTOGGLES_TITLES, NONAUTOTOGGLES_TRANSITIONS, NONAUTOTOGGLES_PLUGIN_AUTOS, + NONAUTOTOGGLES_HARD_EDGES, NONAUTOTOGGLES_CAMERA_XYZ, NONAUTOTOGGLES_PROJECTOR_XYZ, NONAUTOTOGGLES_BAR1, @@ -56,7 +57,6 @@ public: int translation_event(); int close_event(); int keypress_event(); - void start_color_thread(GWindowColorButton *color_button); void update_toggles(int use_lock); void toggle_camera_xyz(); void toggle_projector_xyz(); @@ -78,8 +78,7 @@ public: MWindow *mwindow; GWindowToggle *toggles[NONAUTOTOGGLES_COUNT + AUTOMATION_TOTAL]; - GWindowColorThread *color_thread; - GWindowToggle *camera_xyz, *projector_xyz; + GWindowToggle *camera_xyz, *projector_xyz, *hard_edges; }; class GWindowToggle : public BC_CheckBox @@ -101,50 +100,16 @@ public: GWindowColorButton *color_button; }; -class GWindowColorButton : public BC_Button +class GWindowColorButton : public ColorCircleButton { public: - GWindowColorButton(GWindowToggle *auto_toggle, int x, int y, int w); + GWindowColorButton(GWindowToggle *auto_toggle, + int x, int y, int w, int color); ~GWindowColorButton(); - - void set_color(int color); - void update_gui(int color); - int handle_event(); - - int color; - VFrame *vframes[3]; - GWindowToggle *auto_toggle; -}; - -class GWindowColorThread : public ColorPicker -{ -public: - GWindowColorThread(GWindowGUI *gui, GWindowColorButton *color_button); - ~GWindowColorThread(); - void start(int color); int handle_new_color(int color, int alpha); - void update_gui(); void handle_done_event(int result); - GWindowGUI *gui; - int color; - GWindowColorButton *color_button; - GWindowColorUpdate *color_update; -}; - -class GWindowColorUpdate : public Thread -{ -public: - GWindowColorUpdate(GWindowColorThread *color_thread); - ~GWindowColorUpdate(); - - void start(); - void stop(); - void run(); - - int done; - Condition *update_lock; - GWindowColorThread *color_thread; + GWindowToggle *auto_toggle; }; #endif