a reverb is a reverb is a reverb
[ardour.git] / gtk2_ardour / video_server_dialog.h
1 /*
2     Copyright (C) 2010 Paul Davis
3     Author: Robin Gareus <robin@gareus.org>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 */
20 #ifndef __gtk_ardour_video_server_dialog_h__
21 #define __gtk_ardour_video_server_dialog_h__
22
23 #include <string>
24
25 #include <gtkmm.h>
26
27 #include "ardour/types.h"
28 #include "ardour/template_utils.h"
29 #include "ardour_dialog.h"
30
31 /** @class VideoServerDialog
32  *  @brief dialog box to collect video-server settings
33  */
34 class VideoServerDialog : public ArdourDialog
35 {
36   public:
37         VideoServerDialog (ARDOUR::Session*);
38         ~VideoServerDialog ();
39
40         std::string get_exec_path () { return path_entry.get_text(); }
41         std::string get_docroot ();
42         std::string get_listenaddr () { return listenaddr_combo.get_active_text();}
43         int get_listenport () { return listenport_spinner.get_value_as_int();}
44         int get_cachesize () { return cachesize_spinner.get_value_as_int();}
45         bool show_again () { return showagain_checkbox.get_active();}
46
47   private:
48         void on_show ();
49         void open_path_dialog ();
50         void open_docroot_dialog ();
51
52         Gtk::Label        path_label;
53         Gtk::Entry        path_entry;
54         Gtk::Button       path_browse_button;
55
56         Gtk::Label        docroot_label;
57         Gtk::Entry        docroot_entry;
58         Gtk::Button       docroot_browse_button;
59
60         Gtk::ComboBoxText listenaddr_combo;
61         Gtk::Adjustment   listenport_adjustment;
62         Gtk::SpinButton   listenport_spinner;
63         Gtk::Adjustment   cachesize_adjustment;
64         Gtk::SpinButton   cachesize_spinner;
65         Gtk::CheckButton  showagain_checkbox;
66 };
67
68 #endif /* __gtk_ardour_video_server_dialog_h__ */