auto bump fixes, undo tweaks, add drag_speed_highlight, ffmpeg filter setup fixes...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / mwindow.h
index c94a7bd52dc77d08f7746fea59808ecf8d972989..954d245a7e9889575c51ab84de13a6bb4d50a034 100644 (file)
@@ -112,8 +112,10 @@ class StackItem
 public:
        EDL *edl, *new_edl;
        Indexable *idxbl;
+       Edit *edit;
        MainUndo *undo;
        int64_t mtime;
+       double duration;
 };
 
 class Stack : public ArrayList<StackItem>
@@ -144,6 +146,29 @@ public:
 };
 
 
+class DrawTrackMovement : public Thread
+{
+public:
+       DrawTrackMovement(MWindow *mwindow);
+       ~DrawTrackMovement();
+       void run();
+
+       MWindow *mwindow;
+};
+
+class ConfirmRefWindow : public BC_Window
+{
+public:
+       ConfirmRefWindow(MWindow *mwindow, char *path,
+                       int px, int py, int cw, int ch);
+       ~ConfirmRefWindow();
+       void create_objects();
+
+       MWindow *mwindow;
+       const char *path;
+};
+
+
 class MWindow : public Thread
 {
 public:
@@ -272,12 +297,16 @@ public:
        void close_mixers(int result=1);
        void open_mixers();
        ZWindow *get_mixer(Mixer *&mixer);
-       void del_mixer(ZWindow *zwindow);
+       ZWindow *get_mixer(int idx);
+       void close_mixer(ZWindow *zwindow);
        int mixer_track_active(Track *track);
        void update_mixer_tracks();
        void start_mixer();
        int select_zwindow(ZWindow *zwindow);
        void tile_mixers();
+       int masters_to_mixers();
+       void mix_masters();
+       void set_gang_tracks(int v);
        int load_filenames(ArrayList<char*> *filenames,
                int load_mode = LOADMODE_REPLACE,
                int edl_mode = LOADMODE_EDL_CLIP,
@@ -291,6 +320,8 @@ public:
        int interrupt_indexes();  // Stop index building
 
        int redraw_time_dependancies();     // after reconfiguring the time format, sample rate, frame rate
+       void draw_trackmovement();          // after reconfiguring tracks/patchbay guis
+       DrawTrackMovement *redraw_tracks;
 
 // =========================================== movement
 
@@ -315,6 +346,9 @@ public:
        void toggle_projector_xyz();
        double get_position();
        void set_position(double position);
+       double get_timecode_offset();
+       void set_timecode_offset(double offset);
+       void align_timecodes();
 
 // seek to labels
 // shift_down must be passed by the caller because different windows call
@@ -391,13 +425,13 @@ public:
                AUDIO_5_1_TO_2,
                AUDIO_1_TO_1
        };
-       void add_audio_track_entry(int above, Track *dst);
-       int add_audio_track(int above, Track *dst);
        void add_clip_to_edl(EDL *edl);
-       void add_video_track_entry(Track *dst = 0);
-       int add_video_track(int above, Track *dst);
-       void add_subttl_track_entry(Track *dst = 0);
-       int add_subttl_track(int above, Track *dst);
+       void add_audio_track_entry(int above, Track *dst);
+       Track *add_audio_track(int above, Track *dst);
+       void add_video_track_entry(int above, Track *dst);
+       Track *add_video_track(int above, Track *dst);
+       void add_subttl_track_entry(int above, Track *dst);
+       Track *add_subttl_track(int above, Track *dst);
 
        void asset_to_all();
        void asset_to_size();
@@ -442,7 +476,7 @@ public:
 
 // TrackCanvas calls this to insert multiple effects from the drag_pluginservers
 // into pluginset_highlighted.
-       void insert_effects_canvas(double start, double length);
+       void insert_effects_canvas(Track *dest_track, double start, double length);
 
 // CWindow calls this to insert multiple effects from
 // the drag_pluginservers array.
@@ -483,6 +517,10 @@ public:
        void move_tracks_down();
        void move_track_up(Track *track);
        void move_tracks_up();
+       void swap_track_down(Track *track);
+       void swap_tracks_down();
+       void swap_track_up(Track *track);
+       void swap_tracks_up();
        void mute_selection();
        void new_folder(const char *new_folder, int is_clips);
        void delete_folder(char *folder);
@@ -575,6 +613,7 @@ public:
 // in the clipboard.
        int paste_default_keyframe();
        int clear_default_keyframe();
+       void create_keyframes(int mask, int mode);
 
        FloatAuto* get_float_auto(PatchGUI *patch,int idx);
        IntAuto* get_int_auto(PatchGUI *patch,int idx);
@@ -800,8 +839,8 @@ public:
        static void add_plugins(ArrayList<PluginServer*> &plugins);
        static void delete_plugins();
        void speed_before();
-       int speed_after(int done);
-       int normalize_speed(EDL *old_edl, EDL *new_edl);
+       int speed_after(int done, int edit_speed);
+       int normalize_speed(EDL *old_edl, EDL *new_edl, int edit_speed);
        int get_cpus(int out_w, int out_h);
        int get_cpus();
 //