#include "export_filename_selector.h"
-#include "ardour/export_handler.h"
-#include "ardour/session.h"
-#include "ardour/session_directory.h"
-
#include "i18n.h"
using namespace ARDOUR;
ExportFilenameSelector::ExportFilenameSelector () :
- include_label (_("Include in Filename(s):"), Gtk::ALIGN_LEFT),
+ include_label ("", Gtk::ALIGN_LEFT),
label_label (_("Label:"), Gtk::ALIGN_LEFT),
session_checkbox (_("Session Name")),
revision_checkbox (_("Revision:")),
path_label (_("Folder:"), Gtk::ALIGN_LEFT),
- browse_button (_("Browse"))
+ browse_button (_("Browse")),
+
+ example_filename_label ("", Gtk::ALIGN_LEFT)
{
+ include_label.set_markup (_("<i>Build filename(s) from these components:</i>"));
+
+ pack_start (path_hbox, false, false, 12);
pack_start (include_label, false, false, 6);
pack_start (include_hbox, false, false, 0);
- pack_start (path_hbox, false, false, 12);
+ pack_start (example_filename_label, false, false, 12);
include_hbox.pack_start (label_label, false, false, 3);
include_hbox.pack_start (label_entry, false, false, 3);
}
+void
+ExportFilenameSelector::set_example_filename (std::string filename)
+{
+ if (filename == "") {
+ example_filename_label.set_markup (_("<small><i>Sorry, no example filename can be shown at the moment</i></small>"));
+ } else {
+ example_filename_label.set_markup (string_compose(_("<small><i>Current (approximate) filename: \"%1\"</i></small>"), filename));
+ }
+}
+
void
ExportFilenameSelector::update_label ()
{