2 Copyright (C) 2015 Paul Davis
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
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #include <gtkmm/stock.h>
22 #include "ardour/session.h"
24 #include "save_as_dialog.h"
30 using namespace ARDOUR;
32 SaveAsDialog::SaveAsDialog ()
33 : ArdourDialog (_("Save As"))
35 VBox* vbox = get_vbox();
37 add_button (Stock::CANCEL, RESPONSE_CANCEL);
38 add_button (Stock::OK, RESPONSE_OK);
40 vbox->pack_start (new_name_entry, false, false);
41 vbox->pack_start (new_parent_folder_selector, false, false);
42 vbox->pack_start (switch_to_button, false, false);
43 vbox->pack_start (copy_media_button, false, false);
44 vbox->pack_start (copy_external_button, false, false);
46 switch_to_button.set_active (true);
51 SaveAsDialog::new_parent_folder () const
57 SaveAsDialog::new_name () const
63 SaveAsDialog::switch_to () const
65 return switch_to_button.get_active ();
69 SaveAsDialog::copy_media () const
71 return copy_media_button.get_active ();
75 SaveAsDialog::copy_external () const
77 return copy_external_button.get_active ();