LADSPA_PATH env var processing
[goodguy/history.git] / cinelerra-5.0 / cinelerra / mwindow.h
index 7d7d2ce5ac1922cb01f01896e83a8a0375dd0512..006b68fb81f99adc1379ede32c7255a67d1e3be1 100644 (file)
@@ -188,6 +188,7 @@ public:
 // Find the plugin whose title matches title and return it
        static PluginServer* scan_plugindb(char *title,
                int data_type);
+       static int plugin_exists(const char *plugin_path, ArrayList<PluginServer*> &plugins);
        static int plugin_exists(char *plugin_path);
        void dump_plugindb(FILE *fp);
        void stop_playback(int wait=0);
@@ -413,6 +414,7 @@ public:
        void paste_audio_transition();
        void paste_video_transition();
        void shuffle_edits();
+       void reverse_edits();
        void align_edits();
        void set_edit_length(double length);
 // Set length of single transition
@@ -425,7 +427,10 @@ public:
 // Asset removal from caches
        void reset_caches();
        void remove_asset_from_caches(Asset *asset);
-       void remove_assets_from_project(int push_undo = 0);
+       void remove_assets_from_project(int push_undo /* = 0 */, 
+               int redraw /* 1 */,
+               ArrayList<Indexable*> *drag_assets /* mwindow->session->drag_assets */,
+               ArrayList<EDL*> *drag_clips /* mwindow->session->drag_clips */);
        void remove_assets_from_disk();
        void resize_track(Track *track, int w, int h);
        
@@ -471,8 +476,6 @@ public:
        static void trap_hook(FILE *fp, void *vp);
        
        void reset_android_remote();
-       
-       
 
 // Send new EDL to caches
        void age_caches();
@@ -600,12 +603,21 @@ public:
        void init_gwindow();
        void init_tipwindow();
 // Used by MWindow and RenderFarmClient
+       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 int check_plugin_index(ArrayList<PluginServer*> &plugins,
+               const char *plug_dir, const char *plug_path);
        static void init_plugin_index(MWindow *mwindow, Preferences *preferences,
-               FILE *fp, const char *plug_dir, const char *plug_path, int &dir_id);
+               FILE *fp, const char *plugin_dir);
+       static int init_ladspa_index(MWindow *mwindow, Preferences *preferences,
+               const char *index_path, const char *plugin_dir);
+       static void scan_plugin_index(MWindow *mwindow, Preferences *preferences,
+               FILE *fp, const char *plug_dir, const char *plug_path, int &idx);
        static void init_ffmpeg();
        static void init_ffmpeg_index(MWindow *mwindow, Preferences *preferences, FILE *fp);
-       static int load_plugin_index(MWindow *mwindow, char *path);
+       static int load_plugin_index(MWindow *mwindow, const char *index_path,
+               const char *plugin_dir);
        static PluginServer* new_ffmpeg_server(MWindow *mwindow, const char *name);
        void init_preferences();
        void init_signals();
@@ -621,7 +633,8 @@ public:
        void init_3d();
        void init_playbackcursor();
        void init_commercials();
-       void delete_plugins();
+       static void add_plugins(ArrayList<PluginServer*> &plugins);
+       static void delete_plugins();
 // 
        void clean_indexes();
 //     TimeBomb timebomb;