add ffmpeg vaapi hw encode, colorpicker fix alpha, titler layout timecode, booby...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / titler / titlerwindow.h
index 99cd3e18588a780b4ea35b6b48294388655136e7..43145ebf21078652ee3cfd1b416d7c8e6ee50c01 100644 (file)
@@ -24,9 +24,7 @@
 
 #include "guicast.h"
 
-class TitleThread;
 class TitleWindow;
-class TitleInterlace;
 
 #include "colorpicker.h"
 #include "dragcheckbox.h"
@@ -64,7 +62,6 @@ class TitleCenter;
 class TitleRight;class TitleTop;
 class TitleMid;
 class TitleBottom;
-class TitleColorThread;
 class TitleSpeed;
 class TitleTimecode;
 class TitleTimecodeFormat;
@@ -143,10 +140,10 @@ public:
        TitlePitch *pitch;
        BC_Title *encoding_title;
        TitleEncoding *encoding;
+       BC_Title *color_button_title;
        TitleColorButton *color_button;
-       TitleColorThread *color_thread;
-       TitleOutlineColorButton *outline_color_button;
-       TitleColorThread *outline_color_thread;
+       BC_Title *outline_button_title;
+       TitleOutlineColorButton *outline_button;
        BC_Title *motion_title;
        TitleMotion *motion;
        TitleLinePitch *line_pitch;
@@ -279,19 +276,21 @@ public:
        TitleWindow *window;
 };
 
-class TitleColorButton : public BC_GenericButton
+class TitleColorButton : public ColorCircleButton
 {
 public:
        TitleColorButton(TitleMain *client, TitleWindow *window, int x, int y);
-       int handle_event();
+       int handle_new_color(int output, int alpha);
+       void handle_done_event(int result);
        TitleMain *client;
        TitleWindow *window;
 };
-class TitleOutlineColorButton : public BC_GenericButton
+class TitleOutlineColorButton : public ColorCircleButton
 {
 public:
        TitleOutlineColorButton(TitleMain *client, TitleWindow *window, int x, int y);
-       int handle_event();
+       int handle_new_color(int output, int alpha);
+       void handle_done_event(int result);
        TitleMain *client;
        TitleWindow *window;
 };
@@ -333,7 +332,8 @@ public:
 class TitleTimecodeFormat : public BC_PopupMenu
 {
 public:
-       TitleTimecodeFormat(TitleMain *client, TitleWindow *window, int x, int y, const char *text);
+       TitleTimecodeFormat(TitleMain *client, TitleWindow *window,
+               int x, int y, int tw, const char *text);
        void create_objects();
        int update(int timecode_format);
        int handle_event();
@@ -498,15 +498,6 @@ public:
        TitleMain *client;
        TitleWindow *window;
 };
-class TitleColorThread : public ColorPicker
-{
-public:
-       TitleColorThread(TitleMain *client, TitleWindow *window, int is_outline);
-       virtual int handle_new_color(int output, int alpha);
-       TitleMain *client;
-       TitleWindow *window;
-       int is_outline;
-};
 class TitleBackground : public BC_CheckBox
 {
 public: