2 Copyright (C) 2008 Paul Davis
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 __export_filename_selector_h__
22 #define __export_filename_selector_h__
26 #include "ardour/export_profile_manager.h"
27 #include "ardour/export_filename.h"
28 #include "ardour/session_handle.h"
31 class ExportFilenameSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
34 typedef boost::shared_ptr<ARDOUR::ExportFilename> FilenamePtr;
36 ExportFilenameSelector ();
37 ~ExportFilenameSelector ();
39 void set_state (ARDOUR::ExportProfileManager::FilenameStatePtr state_, ARDOUR::Session * session_);
41 /* Compatibility with other elements */
43 sigc::signal<void> CriticalSelectionChanged;
50 void update_folder ();
53 void change_date_format ();
54 void change_time_format ();
56 void change_session_selection ();
57 void change_revision_selection ();
58 void change_revision_value ();
60 void open_browse_dialog ();
62 boost::shared_ptr<ARDOUR::ExportFilename> filename;
64 Glib::RefPtr<Gtk::SizeGroup> label_sizegroup;
66 Gtk::Label include_label;
68 Gtk::HBox include_hbox;
70 Gtk::Label label_label;
71 Gtk::Entry label_entry;
73 Gtk::CheckButton session_checkbox;
75 Gtk::CheckButton revision_checkbox;
76 Gtk::SpinButton revision_spinbutton;
80 Gtk::Label path_label;
81 Gtk::Entry path_entry;
82 Gtk::Button browse_button;
86 typedef ARDOUR::ExportFilename::DateFormat DateFormat;
88 struct DateFormatCols : public Gtk::TreeModelColumnRecord
91 Gtk::TreeModelColumn<DateFormat> format;
92 Gtk::TreeModelColumn<std::string> label;
94 DateFormatCols () { add(format); add(label); }
96 DateFormatCols date_format_cols;
97 Glib::RefPtr<Gtk::ListStore> date_format_list;
98 Gtk::ComboBox date_format_combo;
102 typedef ARDOUR::ExportFilename::TimeFormat TimeFormat;
104 struct TimeFormatCols : public Gtk::TreeModelColumnRecord
107 Gtk::TreeModelColumn<TimeFormat> format;
108 Gtk::TreeModelColumn<std::string> label;
110 TimeFormatCols () { add(format); add(label); }
112 TimeFormatCols time_format_cols;
113 Glib::RefPtr<Gtk::ListStore> time_format_list;
114 Gtk::ComboBox time_format_combo;
118 #endif /* __export_filename_selector_h__ */