insufficient attempt to drop references to a shadow MIDI port
[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 "ardour_dialog.h"
31 #include "progress_reporter.h"
32
33 class SessionArchiveDialog : public ArdourDialog, public ProgressReporter
34 {
35 public:
36         SessionArchiveDialog ();
37
38         std::string target_folder () const;
39         std::string name () const;
40         ARDOUR::Session::ArchiveEncode encode_option () const;
41         bool only_used_sources () const;
42
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);
47
48 private:
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;
54
55         Gtk::ProgressBar progress_bar;
56
57         void name_entry_changed ();
58         void update_progress_gui (float);
59 };
60
61 #endif /* __ardour_gtk_tempo_dialog_h__ */