[Summary] progressing the XML-ized Export dialog.

This commit is contained in:
Valeriy Kamyshniy 2015-01-27 15:30:30 +02:00
parent e747a381a9
commit d40067672c
4 changed files with 9 additions and 16 deletions

View file

@ -116,7 +116,13 @@ WavesExportDialog::set_session (ARDOUR::Session* s)
profile_manager->duplicate_filename_state (filenames.front ());
}
}
if (formats.size()) {
ExportProfileManager::FormatStatePtr state = formats.front ();
if (!state->format ) {
state->format = state->list->front ();
}
}
sync_with_manager ();
/* Warnings */

View file

@ -67,7 +67,9 @@ WavesExportFileNotebook::sync_with_manager ()
ExportProfileManager::FilenameStateList::const_iterator filename_it = filenames.begin ();
if (_format_file_page) {
_format_file_page_home.remove (*_format_file_page);
remove_file_page (_format_file_page);
_format_file_page = 0;
}
// Lossless formats page:

View file

@ -40,10 +40,6 @@ WavesExportFormatSelector::WavesExportFormatSelector ()
_sample_rate_dropdown.selected_item_changed.connect (sigc::mem_fun (*this, &WavesExportFormatSelector::on_sample_rate_dropdown));
_dithering_dropdown.selected_item_changed.connect (sigc::mem_fun (*this, &WavesExportFormatSelector::on_dithering_dropdown));
_normalize_button.signal_clicked.connect (sigc::mem_fun (*this, &WavesExportFormatSelector::on_normalize_button));
/* Sorted contents for dropdown */
format_list = Gtk::ListStore::create (format_cols);
format_list->set_sort_column (format_cols.label, Gtk::SORT_ASCENDING);
}
WavesExportFormatSelector::~WavesExportFormatSelector ()

View file

@ -91,17 +91,6 @@ class WavesExportFormatSelector : public Gtk::VBox, public WavesUI, public ARDOU
/*** GUI componenets ***/
struct FormatCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<FormatPtr> format;
Gtk::TreeModelColumn<std::string> label;
FormatCols () { add (format); add (label); }
};
FormatCols format_cols;
Glib::RefPtr<Gtk::ListStore> format_list;
WavesDropdown& _format_dropdown;
WavesDropdown& _depth_dropdown;
WavesDropdown& _sample_rate_dropdown;