anonymous contribution for much improved ChromakeyHSV plugin menu with boxes to set...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / batchrender.h
index 90e35855dd63332524e50f45ca128e20aa6d1025..fca24d224aef53b98b751473dd4c5cc9588ae94b 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2003-2016 Cinelerra CV contributors
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -81,11 +82,25 @@ public:
 };
 
 
+class BatchRenderWarnJob
+{
+public:
+       BatchRenderWarnJob() { no = 0; path = 0; }
+       ~BatchRenderWarnJob() { delete [] path; }
+       int no;
+       const char *path;
+};
 
-
-
-
-
+class BatchRenderWarnJobs : public ArrayList<BatchRenderWarnJob>
+{
+public:
+       BatchRenderWarnJobs() {}
+       ~BatchRenderWarnJobs() {}
+       void add(int no, const char *path) {
+               BatchRenderWarnJob &job = append();
+               job.no = no;  job.path = cstrdup(path);
+       }
+};
 
 class BatchRenderThread : public BC_DialogThread
 {
@@ -96,6 +111,7 @@ public:
        BC_Window* new_gui();
 
        int test_edl_files();
+       int test_errmsg(BatchRenderWarnJobs &err_jobs, const char *msg, int *warn);
        void calculate_dest_paths(ArrayList<char*> *paths,
                Preferences *preferences);
        void reset(const char *path=0);
@@ -299,6 +315,14 @@ public:
        int *output;
 };
 
+//new help button
+class BatchRenderHelp : public BC_GenericButton
+{
+public:
+       BatchRenderHelp(BatchRenderThread *thread, int x, int y);
+       int handle_event();
+       BatchRenderThread *thread;
+};
 
 class BatchRenderGUI : public BC_Window
 {
@@ -348,6 +372,7 @@ public:
        BatchRenderCurrentEDL *use_current_edl;
        BatchRenderUpdateEDL *update_selected_edl;
        BatchRenderUseFarm *use_renderfarm;
+       BatchRenderHelp *help_button;
 };