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 "ardour_dialog.h"
31 #include "progress_reporter.h"
33 class SessionArchiveDialog : public ArdourDialog, public ProgressReporter
36 SessionArchiveDialog ();
38 std::string target_folder () const;
39 std::string name () const;
40 ARDOUR::Session::ArchiveEncode encode_option () const;
41 bool only_used_sources () const;
43 void set_name (const std::string&);
44 void set_target_folder (const std::string&);
45 void set_encode_option (ARDOUR::Session::ArchiveEncode);
46 void set_only_used_sources (bool);
49 Gtk::FileChooserButton target_folder_selector;
50 Gtk::Entry name_entry;
51 Gtk::ComboBoxText format_selector;
52 Gtk::ComboBoxText encode_selector;
53 Gtk::CheckButton only_used_checkbox;
55 Gtk::ProgressBar progress_bar;
57 void name_entry_changed ();
58 void update_progress_gui (float);
61 #endif /* __ardour_gtk_tempo_dialog_h__ */