2 Copyright (C) 2015 Paul Davis
3 Copyright (C) 2016 Robin Gareus <robin@gareus.org>
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.
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.
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.
21 #ifndef _gtkardour_session_archive_dialog_h_
22 #define _gtkardour_session_archive_dialog_h_
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>
30 #include "pbd/file_archive.h"
31 #include "ardour/session.h"
33 #include "ardour_dialog.h"
34 #include "progress_reporter.h"
36 class SessionArchiveDialog : public ArdourDialog, public ProgressReporter
39 SessionArchiveDialog ();
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;
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);
53 void on_response (int response_id) {
54 Gtk::Dialog::on_response (response_id);
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;
65 Gtk::ProgressBar progress_bar;
67 void name_entry_changed ();
68 void update_progress_gui (float);
71 #endif /* __ardour_gtk_tempo_dialog_h__ */