Optimize automation-event process splitting
[ardour.git] / gtk2_ardour / session_archive_dialog.h
1 /*
2     Copyright (C) 2015 Paul Davis
3     Copyright (C) 2016 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
21 #ifndef _gtkardour_session_archive_dialog_h_
22 #define _gtkardour_session_archive_dialog_h_
23
24 #include <gtkmm/checkbutton.h>
25 #include <gtkmm/comboboxtext.h>
26 #include <gtkmm/entry.h>
27 #include <gtkmm/filechooserbutton.h>
28 #include <gtkmm/progressbar.h>
29
30 #include "pbd/file_archive.h"
31 #include "ardour/session.h"
32
33 #include "ardour_dialog.h"
34 #include "progress_reporter.h"
35
36 class SessionArchiveDialog : public ArdourDialog, public ProgressReporter
37 {
38 public:
39         SessionArchiveDialog ();
40
41         std::string target_folder () const;
42         std::string name () const;
43         ARDOUR::Session::ArchiveEncode encode_option () const;
44         PBD::FileArchive::CompressionLevel compression_level () const;
45         bool only_used_sources () const;
46
47         void set_name (const std::string&);
48         void set_target_folder (const std::string&);
49         void set_encode_option (ARDOUR::Session::ArchiveEncode);
50         void set_compression_level (PBD::FileArchive::CompressionLevel);
51         void set_only_used_sources (bool);
52
53         void on_response (int response_id) {
54                 Gtk::Dialog::on_response (response_id);
55         }
56
57 private:
58         Gtk::FileChooserButton target_folder_selector;
59         Gtk::Entry             name_entry;
60         Gtk::ComboBoxText      format_selector;
61         Gtk::ComboBoxText      encode_selector;
62         Gtk::ComboBoxText      compression_selector;
63         Gtk::CheckButton       only_used_checkbox;
64
65         Gtk::ProgressBar progress_bar;
66
67         void name_entry_changed ();
68         void update_progress_gui (float);
69 };
70
71 #endif /* __ardour_gtk_tempo_dialog_h__ */