Ardour  9.0-pre0-822-g12e3bc5c20
video_server_dialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 #pragma once
19 
20 #include <string>
21 
22 #include <ytkmm/adjustment.h>
23 #include <ytkmm/button.h>
24 #include <ytkmm/checkbutton.h>
25 #include <ytkmm/comboboxtext.h>
26 #include <ytkmm/entry.h>
27 #include <ytkmm/label.h>
28 #include <ytkmm/spinbutton.h>
29 
30 #include "ardour/types.h"
31 #include "ardour/template_utils.h"
32 #include "ardour_dialog.h"
33 
38 {
39 public:
42 
43  std::string get_exec_path () { return path_entry.get_text(); }
44  std::string get_docroot ();
45  std::string get_listenaddr () { return listenaddr_combo.get_active_text();}
46  int get_listenport () { return listenport_spinner.get_value_as_int();}
47  int get_cachesize () { return cachesize_spinner.get_value_as_int();}
48  bool show_again () { return showagain_checkbox.get_active();}
49 
50 private:
51  void on_show ();
54 
55  Gtk::Label path_label;
56  Gtk::Entry path_entry;
57  Gtk::Button path_browse_button;
58 
59  Gtk::Label docroot_label;
60  Gtk::Entry docroot_entry;
61  Gtk::Button docroot_browse_button;
62 
63  Gtk::ComboBoxText listenaddr_combo;
64  Gtk::Adjustment listenport_adjustment;
65  Gtk::SpinButton listenport_spinner;
66  Gtk::Adjustment cachesize_adjustment;
67  Gtk::SpinButton cachesize_spinner;
68  Gtk::CheckButton showagain_checkbox;
69 };
70 
dialog box to collect video-server settings
Gtk::Adjustment listenport_adjustment
Gtk::CheckButton showagain_checkbox
Gtk::SpinButton cachesize_spinner
Gtk::SpinButton listenport_spinner
void open_docroot_dialog()
VideoServerDialog(ARDOUR::Session *)
Gtk::Button docroot_browse_button
std::string get_listenaddr()
Gtk::Adjustment cachesize_adjustment
Gtk::ComboBoxText listenaddr_combo
std::string get_exec_path()
std::string get_docroot()
Gtk::Button path_browse_button