Add strip GUI first try for foldback bus
[ardour.git] / gtk2_ardour / startup.h
1 /*
2  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
4  * Copyright (C) 2009-2016 Paul Davis <paul@linuxaudiosystems.com>
5  * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef __gtk2_ardour_startup_h__
23 #define __gtk2_ardour_startup_h__
24
25 #include <string>
26
27 #include <gdkmm/pixbuf.h>
28 #include <gtkmm/assistant.h>
29 #include <gtkmm/label.h>
30 #include <gtkmm/drawingarea.h>
31 #include <gtkmm/expander.h>
32 #include <gtkmm/box.h>
33 #include <gtkmm/radiobutton.h>
34 #include <gtkmm/filechooserbutton.h>
35 #include <gtkmm/scrolledwindow.h>
36 #include <gtkmm/treeview.h>
37 #include <gtkmm/treestore.h>
38 #include <gtkmm/checkbutton.h>
39 #include <gtkmm/table.h>
40 #include <gtkmm/frame.h>
41 #include <gtkmm/spinbutton.h>
42 #include <gtkmm/liststore.h>
43 #include <gtkmm/combobox.h>
44
45 #include "ardour/utils.h"
46
47 class EngineControl;
48
49 class ArdourStartup : public Gtk::Assistant
50 {
51 public:
52         ArdourStartup ();
53         ~ArdourStartup ();
54
55         static bool required ();
56
57         gint response () const {
58                 return  _response;
59         }
60
61 private:
62         gint _response;
63         bool config_modified;
64         bool new_user;
65
66         void on_apply ();
67         void on_cancel ();
68         bool on_delete_event (GdkEventAny*);
69         void discover_plugins ();
70
71         static ArdourStartup *the_startup;
72
73         Glib::RefPtr<Gdk::Pixbuf> icon_pixbuf;
74
75         void setup_prerelease_page ();
76         void setup_new_user_page ();
77         Glib::RefPtr<Gdk::Pixbuf> splash_pixbuf;
78         Gtk::DrawingArea splash_area;
79         bool splash_expose (GdkEventExpose* ev);
80
81         void setup_first_time_config_page ();
82         void config_changed ();
83
84         /* first page */
85         Gtk::FileChooserButton* default_dir_chooser;
86         void default_dir_changed();
87         void setup_first_page ();
88         Gtk::FileChooserButton new_folder_chooser;
89
90         /* monitoring choices */
91
92         Gtk::VBox mon_vbox;
93         Gtk::Label monitor_label;
94         Gtk::RadioButton monitor_via_hardware_button;
95         Gtk::RadioButton monitor_via_ardour_button;
96         void setup_monitoring_choice_page ();
97
98         /* monitor section choices */
99
100         Gtk::VBox mon_sec_vbox;
101         Gtk::Label monitor_section_label;
102         Gtk::RadioButton use_monitor_section_button;
103         Gtk::RadioButton no_monitor_section_button;
104         void setup_monitor_section_choice_page ();
105
106         /* final page */
107
108         void setup_final_page ();
109         Gtk::Button plugin_disco_button;
110
111         /* always there */
112
113         Glib::RefPtr<Pango::Layout> layout;
114
115         /* page indices */
116
117         gint audio_page_index;
118         gint new_user_page_index;
119         gint default_folder_page_index;
120         gint monitoring_page_index;
121         gint monitor_section_page_index;
122         gint final_page_index;
123
124         void move_along_now ();
125 };
126
127 #endif /* __gtk2_ardour_startup_h__ */