Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
-#include "export_format_selector.h"
-
-#include "export_format_dialog.h"
+#include <gtkmm/messagedialog.h>
+#include <gtkmm/stock.h>
#include "ardour/export_format_specification.h"
#include "ardour/export_profile_manager.h"
-#include "i18n.h"
+#include "export_format_selector.h"
+#include "export_format_dialog.h"
+
+#include "pbd/i18n.h"
ExportFormatSelector::ExportFormatSelector () :
edit_button (Gtk::Stock::EDIT),
pack_start (remove_button, false, false, 3);
pack_start (new_button, false, false, 3);
- format_combo.set_name ("PaddedButton");
- edit_button.set_name ("PaddedButton");
- remove_button.set_name ("PaddedButton");
- new_button.set_name ("PaddedButton");
-
edit_button.signal_clicked().connect (sigc::hide_return (sigc::bind (sigc::mem_fun (*this, &ExportFormatSelector::open_edit_dialog), false)));
remove_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (*this, &ExportFormatSelector::remove_format), true));
new_button.signal_clicked().connect (sigc::mem_fun (*this, &ExportFormatSelector::add_new_format));
update_format_description ();
FormatEdited (state->format);
CriticalSelectionChanged();
+ } else {
+ FormatReverted (state->format);
+ CriticalSelectionChanged();
}
return response;
}