Fix formatting samplecnt_t (aka int64_t aka long long int)
[ardour.git] / gtk2_ardour / session_archive_dialog.h
1 /*
2  * Copyright (C) 2016-2017 Robin Gareus <robin@gareus.org>
3  *
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.
8  *
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.
13  *
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.
17  */
18
19 #ifndef _gtkardour_session_archive_dialog_h_
20 #define _gtkardour_session_archive_dialog_h_
21
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>
27
28 #include "pbd/file_archive.h"
29 #include "ardour/session.h"
30
31 #include "ardour_dialog.h"
32 #include "progress_reporter.h"
33
34 class SessionArchiveDialog : public ArdourDialog, public ProgressReporter
35 {
36 public:
37         SessionArchiveDialog ();
38
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;
44
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);
50
51         void on_response (int response_id) {
52                 Gtk::Dialog::on_response (response_id);
53         }
54
55 private:
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;
62
63         Gtk::ProgressBar progress_bar;
64
65         void name_entry_changed ();
66         void update_progress_gui (float);
67 };
68
69 #endif /* __ardour_gtk_tempo_dialog_h__ */