add proxy
[goodguy/history.git] / cinelerra-5.1 / cinelerra / mwindow.h
index 7628632ea92e409c6661bddf037a8bd3b386ecb2..22f43e54b74a2038784a086e8e3db3adb34ed6c6 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdint.h>
 
+#include "apatchgui.h"
 #include "arraylist.h"
 #include "asset.inc"
 #include "assets.inc"
@@ -92,6 +93,7 @@
 #include "transition.inc"
 #include "transportque.inc"
 #include "videowindow.inc"
+#include "vpatchgui.h"
 #include "vwindow.inc"
 #include "wwindow.inc"
 #include "wavecache.inc"
@@ -119,7 +121,7 @@ public:
        int run_script(FileXML *script);
        int new_project();
        int delete_project(int flash = 1);
-       void quit(int unlock);
+       void quit();
        int restart() { return restart_status; }
 
        int load_defaults();
@@ -135,6 +137,7 @@ public:
        void show_lwindow();
        void show_cwindow();
        void show_gwindow();
+       void hide_gwindow();
        int tile_windows(int window_config);
        char *get_cwindow_display();
 //     void set_titles(int value);
@@ -463,7 +466,8 @@ public:
 // Synchronize EDL settings with all playback engines depending on current
 // operation.  Doesn't redraw anything.
        void sync_parameters(int change_type = CHANGE_PARAMS);
-       void to_clip();
+       void save_clip(EDL *new_edl, const char *txt);
+       void to_clip(EDL *edl, const char *txt);
        int toggle_label(int is_mwindow);
        void undo_entry(BC_WindowBase *calling_window_gui);
        void redo_entry(BC_WindowBase *calling_window_gui);
@@ -481,9 +485,15 @@ public:
        int paste_default_keyframe();
        int clear_default_keyframe();
 
+       FloatAuto* get_float_auto(PatchGUI *patch,int idx);
+       IntAuto* get_int_auto(PatchGUI *patch,int idx);
+       PanAuto* get_pan_auto(PatchGUI *patch);
+
        int modify_edithandles();
        int modify_pluginhandles();
        void finish_modify_handles();
+        void set_proxy(int new_scale,
+                ArrayList<Indexable*> *orig_assets, ArrayList<Indexable*> *proxy_assets);
 
        void dump_plugins(FILE *fp=stdout);
        void dump_edl(FILE *fp=stdout);
@@ -521,6 +531,8 @@ public:
        MainIndexes *mainindexes;
        MainProgress *mainprogress;
        BRender *brender;
+       char cin_lang[4];
+       int brender_active;
        const char *default_standard;
        static Commercials *commercials;
        int commercial_active;
@@ -589,6 +601,7 @@ public:
        int wait_warning();
 // Levels
        LevelWindow *lwindow;
+       Mutex *run_lock;
 // Lock during creation and destruction of GUI
        Mutex *plugin_gui_lock;
        Mutex *dead_plugin_lock;
@@ -613,7 +626,7 @@ public:
 // This one happens asynchronously of the others.  Used by playback to
 // see what frame is background rendered.
        int brender_available(int position);
-       void set_brender_start();
+       void set_brender_active(int v, int update=1);
        int put_commercial();
        void activate_commercial() { commercial_active = 1; }
        void commit_commercial();
@@ -624,6 +637,7 @@ public:
        void init_error();
        void finit_error();
        static void init_defaults(BC_Hash* &defaults, char *config_path);
+       void check_language();
        const char *default_std();
        void fill_preset_defaults(const char *preset, EDLSession *session);
        const char *get_preset_name(int index);
@@ -635,6 +649,7 @@ public:
        static void get_plugin_path(char *path, const char *plug_dir, const char *fs_path);
        static int init_plugins(MWindow *mwindow, Preferences *preferences);
        static int init_ladspa_plugins(MWindow *mwindow, Preferences *preferences);
+       static void init_plugin_tips(ArrayList<PluginServer*> &plugins, const char *lang);
        static int check_plugin_index(ArrayList<PluginServer*> &plugins,
                const char *plug_dir, const char *plug_path);
        static void init_plugin_index(MWindow *mwindow, Preferences *preferences,
@@ -664,7 +679,7 @@ public:
        void init_commercials();
        static void add_plugins(ArrayList<PluginServer*> &plugins);
        static void delete_plugins();
-// 
+//
        void clean_indexes();
 //     TimeBomb timebomb;
        SigHandler *sighandler;