vtl: debug xjadeo communication
[ardour.git] / gtk2_ardour / open_video_monitor_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 #ifdef WITH_VIDEOTIMELINE
21
22 #ifndef __gtk_ardour_open_video_monitor_dialog_h__
23 #define __gtk_ardour_open_video_monitor_dialog_h__
24
25 #include <string>
26
27 #include <gtkmm.h>
28
29 #include "ardour/types.h"
30 #include "ardour/template_utils.h"
31 #include "ardour_dialog.h"
32
33 /** @class OpenVideoMonitorDialog
34  *  @brief video-monitor start-option dialog
35  *
36  * This dialog allows to override xjadeo startup-options
37  * eg. restore previous size&position, offset or letterbox
38  * settings.
39  *
40  * This dialog is optional and can be en/disabled in the
41  * Preferences.
42  */
43 class OpenVideoMonitorDialog : public ArdourDialog
44 {
45   public:
46         OpenVideoMonitorDialog (ARDOUR::Session*);
47         ~OpenVideoMonitorDialog ();
48
49         bool show_again () { return showagain_checkbox.get_active(); }
50         int xj_settings_mask ();
51         void setup_settings_mask (const int);
52         void set_filename (const std::string);
53 #if 1
54         bool enable_debug () { return debug_checkbox.get_active(); }
55 #endif
56
57   private:
58         void on_show ();
59         Gtk::Label filename_label;
60         Gtk::CheckButton showagain_checkbox;
61         Gtk::CheckButton win_checkbox;
62         Gtk::CheckButton att_checkbox;
63         Gtk::CheckButton osd_checkbox;
64         Gtk::CheckButton off_checkbox;
65
66         Gtk::Label label_winsize;
67         Gtk::Label label_winpos;
68         Gtk::Label label_letterbox;
69         Gtk::Label label_ontop;
70         Gtk::Label label_fullscreen;
71         Gtk::Label label_osd;
72         Gtk::Label label_offset;
73 #if 1
74         Gtk::CheckButton debug_checkbox;
75 #endif
76 };
77
78 #endif /* __gtk_ardour_open_video_monitor_dialog_h__ */
79
80 #endif /* WITH_VIDEOTIMELINE */