From: Good Guy Date: Wed, 3 Feb 2021 00:07:50 +0000 (-0700) Subject: Batch Render menu help key using xdg-open + 8 more translations by RafaMar X-Git-Tag: 2021-03~9 X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=81fc9cd689dd964a4736fa1f8986a64db6b4a937;p=goodguy%2Fcinelerra.git Batch Render menu help key using xdg-open + 8 more translations by RafaMar --- diff --git a/cinelerra-5.1/cinelerra/batchrender.C b/cinelerra-5.1/cinelerra/batchrender.C index b83f2d63..9e4dbc3c 100644 --- a/cinelerra-5.1/cinelerra/batchrender.C +++ b/cinelerra-5.1/cinelerra/batchrender.C @@ -60,6 +60,8 @@ #include "dvdcreate.h" #include "bdcreate.h" +#include + int BatchRenderThread::column_widths[] = { 42, 42, 42, 222, 222, 150 }; const char *BatchRenderThread::column_titles[] = { N_("Enabled"), N_("Labeled"), N_("Farmed"), N_("Output"), N_("EDL"), N_("Elapsed") @@ -833,8 +835,10 @@ void BatchRenderGUI::create_objects() y += batch_list->get_h() + mwindow->theme->widget_border; add_subwindow(start_button = new BatchRenderStart(thread, x, y)); - x = get_w() / 2 - BC_GenericButton::calculate_w(this, _("Stop")) / 2; + x = get_w() / 3 - BC_GenericButton::calculate_w(this, _("Stop")) / 3; add_subwindow(stop_button = new BatchRenderStop(thread, x, y)); + x = get_w() / 1.5 - BC_GenericButton::calculate_w(this, _("?")) / 1.5; + add_subwindow(help_button = new BatchRenderHelp(thread, x, y)); x = get_w() - BC_GenericButton::calculate_w(this, _("Close")) - xs10; add_subwindow(cancel_button = new BatchRenderCancel(thread, x, y)); @@ -919,10 +923,12 @@ int BatchRenderGUI::resize_event(int w, int h) y += batch_list->get_h() + mwindow->theme->widget_border; start_button->reposition_window(x, y); - x = w / 2 - stop_button->get_w() / 2; + x = w / 3 - stop_button->get_w() / 3; stop_button->reposition_window(x, y); x = w - cancel_button->get_w() - xs10; cancel_button->reposition_window(x, y); + x = w / 1.5 - help_button->get_w() / 1.5; + help_button->reposition_window(x, y); return 1; } @@ -1430,6 +1436,20 @@ int BatchRenderCancel::keypress_event() return 0; } +//new help button +BatchRenderHelp::BatchRenderHelp(BatchRenderThread *thread, int x, int y) + : BC_GenericButton(x, y, _("?")) +{ + this->thread = thread; + set_tooltip(_("Open quick start guide in default browser")); +} + +int BatchRenderHelp::handle_event() +{ + system("xdg-open file://$CIN_DAT/doc/help_br_index.html"); + return 0; +} + BatchRenderUseFarm::BatchRenderUseFarm(BatchRenderThread *thread, int x, int y, int *output) : BC_CheckBox(x, y, *output, _("Use render farm")) { diff --git a/cinelerra-5.1/cinelerra/batchrender.h b/cinelerra-5.1/cinelerra/batchrender.h index f84c15f0..2646b577 100644 --- a/cinelerra-5.1/cinelerra/batchrender.h +++ b/cinelerra-5.1/cinelerra/batchrender.h @@ -314,6 +314,15 @@ 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 { public: @@ -362,6 +371,7 @@ public: BatchRenderCurrentEDL *use_current_edl; BatchRenderUpdateEDL *update_selected_edl; BatchRenderUseFarm *use_renderfarm; + BatchRenderHelp *help_button; }; diff --git a/cinelerra-5.1/doc/help_br_de.pdf b/cinelerra-5.1/doc/help_br_de.pdf new file mode 100644 index 00000000..949b46c2 Binary files /dev/null and b/cinelerra-5.1/doc/help_br_de.pdf differ diff --git a/cinelerra-5.1/doc/help_br_fr.pdf b/cinelerra-5.1/doc/help_br_fr.pdf new file mode 100644 index 00000000..53416482 Binary files /dev/null and b/cinelerra-5.1/doc/help_br_fr.pdf differ diff --git a/cinelerra-5.1/doc/help_br_it.pdf b/cinelerra-5.1/doc/help_br_it.pdf new file mode 100644 index 00000000..4dd7bd64 Binary files /dev/null and b/cinelerra-5.1/doc/help_br_it.pdf differ diff --git a/cinelerra-5.1/doc/help_br_nb.pdf b/cinelerra-5.1/doc/help_br_nb.pdf new file mode 100644 index 00000000..d784102e Binary files /dev/null and b/cinelerra-5.1/doc/help_br_nb.pdf differ diff --git a/cinelerra-5.1/doc/help_br_nl.pdf b/cinelerra-5.1/doc/help_br_nl.pdf new file mode 100644 index 00000000..a2797aeb Binary files /dev/null and b/cinelerra-5.1/doc/help_br_nl.pdf differ diff --git a/cinelerra-5.1/doc/help_br_no.pdf b/cinelerra-5.1/doc/help_br_no.pdf new file mode 100644 index 00000000..23b66850 Binary files /dev/null and b/cinelerra-5.1/doc/help_br_no.pdf differ diff --git a/cinelerra-5.1/doc/help_br_pt.pdf b/cinelerra-5.1/doc/help_br_pt.pdf new file mode 100644 index 00000000..74cf27f2 Binary files /dev/null and b/cinelerra-5.1/doc/help_br_pt.pdf differ diff --git a/cinelerra-5.1/doc/help_br_ru.pdf b/cinelerra-5.1/doc/help_br_ru.pdf new file mode 100644 index 00000000..ba347cef Binary files /dev/null and b/cinelerra-5.1/doc/help_br_ru.pdf differ