- l = manage (new Label (_("Video Folder:")));
- l->set_alignment (0, 0.5);
- t->attach (*l, 1, 2, 3, 4, FILL);
- t->attach (_video_server_docroot_entry, 2, 4, 3, 4);
- Gtkmm2ext::UI::instance()->set_tip (_video_server_docroot_entry,
- _("Local path to the video-server document-root. Only files below this directory will be accessible by the video-server. If the server run on a remote host, it should point to a network mounted folder of the server's docroot or be left empty if it is unvailable. It is used for the local video-monitor and file-browsing when opening/adding a video file."));
-
- t->attach (_show_video_export_info_button, 1, 4, 4, 5);
- _show_video_export_info_button.signal_toggled().connect (sigc::mem_fun (*this, &VideoTimelineOptions::show_video_export_info_toggled));
- Gtkmm2ext::UI::instance()->set_tip (_show_video_export_info_button,
- _("<b>When enabled</b> an information window with details is displayed before the video-export dialog."));
-
- t->attach (_show_video_server_dialog_button, 1, 4, 5, 6);
- _show_video_server_dialog_button.signal_toggled().connect (sigc::mem_fun (*this, &VideoTimelineOptions::show_video_server_dialog_toggled));
- Gtkmm2ext::UI::instance()->set_tip (_show_video_server_dialog_button,
- _("<b>When enabled</b> the video server is never launched automatically without confirmation"));
-
- s.str (std::string ());
- s << "<b>" << _("Video Monitor") << "</b>";
- l = manage (new Label (s.str()));
- l->set_use_markup (true);
- l->set_alignment (0, 0.5);
- t->attach (*l, 0, 4, 6, 7, EXPAND | FILL, FILL | EXPAND, 0, 8);
-
- l = manage (new Label (string_compose (_("Custom Path to Video Monitor (%1) - leave empty for default:"),
+class VideoTimelineOptions : public OptionEditorPageBox, public OptionEditorPage
+{
+ public:
+ VideoTimelineOptions (RCConfiguration* c)
+ : _rc_config (c)
+ , _show_video_export_info_button (_("Show Video Export Info before export"))
+ , _show_video_server_dialog_button (_("Show Video Server Startup Dialog"))
+ , _video_advanced_setup_button (_("Advanced Setup (remote video server)"))
+ , _xjadeo_browse_button (_("Browse..."))
+ {
+ Table* t = &table;
+
+ Label* l = manage (new Label (string_compose ("<b>%1</b>", _("Video Server"))));
+ l->set_use_markup (true);
+ l->set_alignment (0, 0.5);
+ t->attach (*l, 0, 4, 0, 1, EXPAND | FILL, FILL | EXPAND, 0, 0);
+
+ t->attach (_show_video_export_info_button, 1, 4, 1, 2);
+ _show_video_export_info_button.signal_toggled().connect (sigc::mem_fun (*this, &VideoTimelineOptions::show_video_export_info_toggled));
+ Gtkmm2ext::UI::instance()->set_tip (_show_video_export_info_button,
+ _("<b>When enabled</b> an information window with details is displayed before the video-export dialog."));
+
+ t->attach (_show_video_server_dialog_button, 1, 4, 2, 3);
+ _show_video_server_dialog_button.signal_toggled().connect (sigc::mem_fun (*this, &VideoTimelineOptions::show_video_server_dialog_toggled));
+ Gtkmm2ext::UI::instance()->set_tip (_show_video_server_dialog_button,
+ _("<b>When enabled</b> the video server is never launched automatically without confirmation"));
+
+ t->attach (_video_advanced_setup_button, 1, 4, 3, 4, FILL);
+ _video_advanced_setup_button.signal_toggled().connect (sigc::mem_fun (*this, &VideoTimelineOptions::video_advanced_setup_toggled));
+ Gtkmm2ext::UI::instance()->set_tip (_video_advanced_setup_button,
+ _("<b>When enabled</b> you can speficify a custom video-server URL and docroot. - Do not enable this option unless you know what you are doing."));
+
+ l = manage (new Label (_("Video Server URL:")));
+ l->set_alignment (0, 0.5);
+ t->attach (*l, 1, 2, 4, 5, FILL);
+ t->attach (_video_server_url_entry, 2, 4, 4, 5, FILL);
+ Gtkmm2ext::UI::instance()->set_tip (_video_server_url_entry,
+ _("Base URL of the video-server including http prefix. This is usually 'http://hostname.example.org:1554/' and defaults to 'http://localhost:1554/' when the video-server is running locally"));
+
+ l = manage (new Label (_("Video Folder:")));
+ l->set_alignment (0, 0.5);
+ t->attach (*l, 1, 2, 5, 6, FILL);
+ t->attach (_video_server_docroot_entry, 2, 4, 5, 6);
+ Gtkmm2ext::UI::instance()->set_tip (_video_server_docroot_entry,
+ _("Local path to the video-server document-root. Only files below this directory will be accessible by the video-server. If the server run on a remote host, it should point to a network mounted folder of the server's docroot or be left empty if it is unvailable. It is used for the local video-monitor and file-browsing when opening/adding a video file."));
+
+ l = manage (new Label (""));
+ t->attach (*l, 0, 4, 6, 7, EXPAND | FILL);
+
+ l = manage (new Label (string_compose ("<b>%1</b>", _("Video Monitor"))));
+ l->set_use_markup (true);
+ l->set_alignment (0, 0.5);
+ t->attach (*l, 0, 4, 7, 8, EXPAND | FILL);
+
+ l = manage (new Label (string_compose (_("Custom Path to Video Monitor (%1) - leave empty for default:"),