2 * Copyright (C) 2016-2017 Robin Gareus <robin@gareus.org>
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.
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.
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.
19 #ifndef _gtkardour_session_archive_dialog_h_
20 #define _gtkardour_session_archive_dialog_h_
22 #include <gtkmm/checkbutton.h>
23 #include <gtkmm/comboboxtext.h>
24 #include <gtkmm/entry.h>
25 #include <gtkmm/filechooserbutton.h>
26 #include <gtkmm/progressbar.h>
28 #include "pbd/file_archive.h"
29 #include "ardour/session.h"
31 #include "ardour_dialog.h"
32 #include "progress_reporter.h"
34 class SessionArchiveDialog : public ArdourDialog, public ProgressReporter
37 SessionArchiveDialog ();
39 std::string target_folder () const;
40 std::string name () const;
41 ARDOUR::Session::ArchiveEncode encode_option () const;
42 PBD::FileArchive::CompressionLevel compression_level () const;
43 bool only_used_sources () const;
45 void set_name (const std::string&);
46 void set_target_folder (const std::string&);
47 void set_encode_option (ARDOUR::Session::ArchiveEncode);
48 void set_compression_level (PBD::FileArchive::CompressionLevel);
49 void set_only_used_sources (bool);
51 void on_response (int response_id) {
52 Gtk::Dialog::on_response (response_id);
56 Gtk::FileChooserButton target_folder_selector;
57 Gtk::Entry name_entry;
58 Gtk::ComboBoxText format_selector;
59 Gtk::ComboBoxText encode_selector;
60 Gtk::ComboBoxText compression_selector;
61 Gtk::CheckButton only_used_checkbox;
63 Gtk::ProgressBar progress_bar;
65 void name_entry_changed ();
66 void update_progress_gui (float);
69 #endif /* __ardour_gtk_tempo_dialog_h__ */