initial version of save-as dialog
[ardour.git] / gtk2_ardour / save_as_dialog.cc
1 /*
2     Copyright (C) 2015 Paul Davis
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
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #include <gtkmm/stock.h>
21
22 #include "ardour/session.h"
23
24 #include "save_as_dialog.h"
25
26 #include "i18n.h"
27
28 using namespace std;
29 using namespace Gtk;
30 using namespace ARDOUR;
31
32 SaveAsDialog::SaveAsDialog ()
33         : ArdourDialog (_("Save As"))
34 {
35         VBox* vbox = get_vbox();
36
37         add_button (Stock::CANCEL, RESPONSE_CANCEL);
38         add_button (Stock::OK, RESPONSE_OK);
39         
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);
45
46         switch_to_button.set_active (true);
47         vbox->show_all ();
48 }
49
50 string
51 SaveAsDialog::new_parent_folder () const
52 {
53         return string();
54 }
55
56 string
57 SaveAsDialog::new_name () const
58 {
59         return string ();
60 }
61
62 bool
63 SaveAsDialog::switch_to () const
64 {
65         return switch_to_button.get_active ();
66 }
67
68 bool
69 SaveAsDialog::copy_media () const
70 {
71         return copy_media_button.get_active ();
72 }
73
74 bool
75 SaveAsDialog::copy_external () const
76 {
77         return copy_external_button.get_active ();
78 }