summaryrefslogtreecommitdiff
path: root/gtk2_ardour/pt_import_selector.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2018-10-10 20:09:24 +1100
committerDamien Zammit <damien@zamaudio.com>2018-10-12 19:09:40 +1100
commita1de50f217d2a1873defdaff16fa615998f788fd (patch)
tree15f622b43f53650d7c484b0ea77fb4bb032bc149 /gtk2_ardour/pt_import_selector.h
parentca6c11dbcacfe4af8f528263739a17f764ea0126 (diff)
PT import: Add new PTImportSelector dialog
Diffstat (limited to 'gtk2_ardour/pt_import_selector.h')
-rw-r--r--gtk2_ardour/pt_import_selector.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/gtk2_ardour/pt_import_selector.h b/gtk2_ardour/pt_import_selector.h
new file mode 100644
index 0000000000..760acb3a55
--- /dev/null
+++ b/gtk2_ardour/pt_import_selector.h
@@ -0,0 +1,55 @@
+/*
+ Copyright (C) 2018 Paul Davis
+ Author: Damien Zammit
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+#ifndef __pt_import_selector_h__
+#define __pt_import_selector_h__
+
+#include <string>
+#include <stdio.h>
+#include <cstring>
+#include <string>
+#include <sstream>
+#include <vector>
+
+#include <ptfformat.h>
+
+#include "ardour_dialog.h"
+#include "ardour/session.h"
+#include <gtkmm/box.h>
+#include <gtkmm/button.h>
+#include <gtkmm/filechooserwidget.h>
+#include <gtkmm/textview.h>
+
+class PTImportSelector : public ArdourDialog
+{
+public:
+ PTImportSelector (PTFFormat& ptf);
+ void update_ptf ();
+ void set_session (ARDOUR::Session*);
+
+private:
+ PTFFormat* _ptf;
+ uint32_t _session_rate;
+ Gtk::FileChooserWidget ptimport_ptf_chooser;
+ Gtk::TextView ptimport_info_text;
+ Gtk::Button ptimport_import_button;
+ Gtk::Button ptimport_cancel_button;
+};
+
+#endif