mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +01:00
add timestamp to location and date sorting from timestamps to export_timespan_selector
This commit is contained in:
parent
3e7e89db8f
commit
59b6b46a13
4 changed files with 26 additions and 3 deletions
|
|
@ -405,6 +405,7 @@ ExportTimespanSelectorSingle::ExportTimespanSelectorSingle (ARDOUR::Session * se
|
|||
range_view.append_column (*label_col);
|
||||
|
||||
range_view.append_column (_("Length"), range_cols.length);
|
||||
range_view.append_column (_("Creation Date"), range_cols.date);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -443,7 +444,10 @@ ExportTimespanSelectorSingle::fill_range_list ()
|
|||
row[range_cols.realtime] = realtime;
|
||||
row[range_cols.name] = (*it)->name();
|
||||
row[range_cols.label] = construct_label (*it);
|
||||
row[range_cols.length] = construct_length (*it);
|
||||
|
||||
Glib::DateTime gdt(Glib::DateTime::create_now_local ((*it)->timestamp()));
|
||||
row[range_cols.timestamp] = (*it)->timestamp();
|
||||
row[range_cols.date] = gdt.format ("%F %H:%M");;
|
||||
|
||||
add_range_to_selection (*it, false);
|
||||
|
||||
|
|
@ -496,6 +500,11 @@ ExportTimespanSelectorMultiple::ExportTimespanSelectorMultiple (ARDOUR::Session
|
|||
range_view.append_column (*label_col);
|
||||
|
||||
range_view.append_column (_("Length"), range_cols.length);
|
||||
range_view.append_column (_("Creation Date"), range_cols.date);
|
||||
|
||||
range_list->set_sort_column(5, Gtk::SORT_DESCENDING);
|
||||
Gtk::TreeViewColumn* date_col = range_view.get_column(5); // date column
|
||||
date_col->set_sort_column(7); // set sort as the timestamp
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -526,6 +535,10 @@ ExportTimespanSelectorMultiple::fill_range_list ()
|
|||
row[range_cols.name] = (*it)->name();
|
||||
row[range_cols.label] = construct_label (*it);
|
||||
row[range_cols.length] = construct_length (*it);
|
||||
|
||||
Glib::DateTime gdt(Glib::DateTime::create_now_local ((*it)->timestamp()));
|
||||
row[range_cols.timestamp] = (*it)->timestamp();
|
||||
row[range_cols.date] = gdt.format ("%F %H:%M");;
|
||||
}
|
||||
|
||||
set_selection_from_state ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue