1 /*
2  * Copyright (C) 2018-2019 Damien Zammit <damien@zamaudio.com>
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 #ifndef __pt_import_selector_h__
19 #define __pt_import_selector_h__
20 
21 #include <string>
22 #include <stdio.h>
23 #include <cstring>
24 #include <string>
25 #include <sstream>
26 #include <vector>
27 
28 #include "ptformat/ptformat.h"
29 
30 #include "ardour_dialog.h"
31 #include "ardour/session.h"
32 #include <gtkmm/box.h>
33 #include <gtkmm/button.h>
34 #include <gtkmm/filechooserwidget.h>
35 #include <gtkmm/textview.h>
36 
37 class PTImportSelector : public ArdourDialog
38 {
39 public:
40 	PTImportSelector (PTFFormat& ptf);
41 	void update_ptf ();
42 	void set_session (ARDOUR::Session*);
43 
44 private:
45 	PTFFormat* _ptf;
46 	uint32_t _session_rate;
47 	Gtk::FileChooserWidget ptimport_ptf_chooser;
48 	Gtk::TextView ptimport_info_text;
49 	Gtk::Button ptimport_import_button;
50 	Gtk::Button ptimport_cancel_button;
51 };
52 
53 #endif
54