dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[goodguy/history.git] / cinelerra-5.1 / plugins / titler / titlerwindow.h
index def051b8670215b54b0b5099db9ab914d3e43edf..99cd3e18588a780b4ea35b6b48294388655136e7 100644 (file)
@@ -29,6 +29,7 @@ class TitleWindow;
 class TitleInterlace;
 
 #include "colorpicker.h"
+#include "dragcheckbox.h"
 #include "filexml.h"
 #include "mutex.h"
 #include "titler.h"
@@ -54,7 +55,6 @@ class TitleFade;
 class TitleFont;
 class TitleText;
 class TitleTextChars;
-class TitleTextBfrSz;
 class TitleX;
 class TitleY;
 class TitleW;
@@ -89,7 +89,7 @@ public:
 
        void create_objects();
        int resize_event(int w, int h);
-       int grab_event(XEvent *event);
+       void update_drag();
        void update_color();
        void update_justification();
        void update_stats();
@@ -158,7 +158,6 @@ public:
        BC_Title *text_title;
        TitleText *text;
        TitleTextChars *text_chars;
-       TitleTextBfrSz *text_bfrsz;
        BC_Title *justify_title;
        TitleLeft *left;
        TitleCenter *center;
@@ -233,11 +232,15 @@ public:
        TitleMain *client;
        TitleWindow *window;
 };
-class TitleDrag : public BC_CheckBox
+class TitleDrag : public DragCheckBox
 {
 public:
        TitleDrag(TitleMain *client, TitleWindow *window, int x, int y);
        int handle_event();
+       void update_gui();
+       Track *get_drag_track();
+       int64_t get_drag_position();
+
        TitleMain *client;
        TitleWindow *window;
 };
@@ -376,13 +379,6 @@ public:
        TitleTextChars(int x, int y, int w);
        ~TitleTextChars();
 };
-class TitleTextBfrSz : public BC_Title
-{
-public:
-       int update(int n);
-       TitleTextBfrSz(int x, int y, int w);
-       ~TitleTextBfrSz();
-};
 
 class TitleX : public BC_TumbleTextBox
 {