mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 01:17:42 +01:00
[Summary] progressing the XML-ized Export dialog.
This commit is contained in:
parent
e747a381a9
commit
d40067672c
4 changed files with 9 additions and 16 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 ()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue