21 #include <gtkmm/messagedialog.h>
30 include_label (
"",
Gtk::ALIGN_LEFT),
32 label_label (
_(
"Label:"),
Gtk::ALIGN_LEFT),
33 session_checkbox (
_(
"Session Name")),
34 revision_checkbox (
_(
"Revision:")),
36 path_label (
_(
"Folder:"),
Gtk::ALIGN_LEFT),
37 browse_button (
_(
"Browse")),
39 example_filename_label (
"",
Gtk::ALIGN_LEFT)
41 include_label.set_markup (
_(
"<i>Build filename(s) from these components:</i>"));
127 Gtk::TreeModel::Children::iterator it;
145 SessionHandlePtr::set_session (session_);
151 Gtk::TreeModel::iterator iter;
152 Gtk::TreeModel::Row row;
211 if (filename ==
"") {
212 example_filename_label.set_markup (
_(
"<small><i>Sorry, no example filename can be shown at the moment</i></small>"));
249 if (!Glib::file_test (
path_entry.get_text(), Glib::FILE_TEST_IS_DIR|Glib::FILE_TEST_EXISTS)) {
250 Gtk::MessageDialog msg (
string_compose (
_(
"%1: this is only the directory/folder name, not the filename.\n\
251 The filename will be chosen from the information just above the folder selector."),
path_entry.get_text()));
322 Gtk::FileChooserDialog dialog(
_(
"Choose export folder"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
326 dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
327 dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
330 int result = dialog.run();
332 if (result == Gtk::RESPONSE_OK) {
333 std::string
filename = dialog.get_filename();
335 if (!Glib::file_test (filename, Glib::FILE_TEST_IS_DIR|Glib::FILE_TEST_EXISTS)) {
336 Gtk::MessageDialog msg (
string_compose (
_(
"%1: this is only the directory/folder name, not the filename.\n\
337 The filename will be chosen from the information just above the folder selector."), filename));
342 if (filename.length()) {
bool set_folder(std::string path)
Glib::RefPtr< Gtk::ListStore > time_format_list
std::string get_label() const
std::string get_folder() const
DateFormatCols date_format_cols
Gtk::SpinButton revision_spinbutton
void change_session_selection()
void change_revision_selection()
Gtk::ComboBox time_format_combo
boost::shared_ptr< ARDOUR::ExportFilename > filename
Gtk::ComboBox date_format_combo
std::string get_time_format_str(TimeFormat format) const
Gtk::Button browse_button
void set_state(ARDOUR::ExportProfileManager::FilenameStatePtr state_, ARDOUR::Session *session_)
Glib::RefPtr< Gtk::ListStore > date_format_list
void set_example_filename(std::string filename)
Gtk::CheckButton revision_checkbox
Glib::RefPtr< Gtk::SizeGroup > label_sizegroup
TimeFormat get_time_format() const
uint32_t get_revision() const
void set_revision(uint32_t value)
TimeFormatCols time_format_cols
void set_date_format(DateFormat format)
void set_time_format(TimeFormat format)
void change_time_format()
Gtk::CheckButton session_checkbox
DateFormat get_date_format() const
void change_date_format()
void open_browse_dialog()
Gtk::Label example_filename_label
~ExportFilenameSelector()
sigc::signal< void > CriticalSelectionChanged
void set_label(std::string value)
std::string string_compose(const std::string &fmt, const T1 &o1)
void change_revision_value()
std::string get_date_format_str(DateFormat format) const