Batch Render menu help key using xdg-open + 8 more translations by RafaMar
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / batchrender.h
index 90e35855dd63332524e50f45ca128e20aa6d1025..2646b577c48855b3b83e595ea1a4afbdf148eb10 100644 (file)
@@ -81,11 +81,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 +110,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 +314,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 +371,7 @@ public:
        BatchRenderCurrentEDL *use_current_edl;
        BatchRenderUpdateEDL *update_selected_edl;
        BatchRenderUseFarm *use_renderfarm;
+       BatchRenderHelp *help_button;
 };