time span column should actually sort by location start time
This commit is contained in:
parent
96f55e8184
commit
f127eebff0
|
@ -415,9 +415,8 @@ ExportTimespanSelectorSingle::ExportTimespanSelectorSingle (ARDOUR::Session * se
|
|||
range_col->set_sort_column(4); // set sort name
|
||||
|
||||
Gtk::TreeViewColumn* time_span_col = range_view.get_column(3); // time span column
|
||||
time_span_col->set_sort_column(8); //set sort length_actual
|
||||
time_span_col->set_sort_column(9); //set sort start
|
||||
|
||||
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
|
||||
|
||||
|
@ -465,6 +464,9 @@ ExportTimespanSelectorSingle::fill_range_list ()
|
|||
//the actual samplecnt_t for sorting
|
||||
row[range_cols.length_actual] = (*it)->length();
|
||||
|
||||
//start samplecnt_t for sorting
|
||||
row[range_cols.start] = (*it)->start();
|
||||
|
||||
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");;
|
||||
|
@ -527,9 +529,8 @@ ExportTimespanSelectorMultiple::ExportTimespanSelectorMultiple (ARDOUR::Session
|
|||
range_col->set_sort_column(4); // set sort name
|
||||
|
||||
Gtk::TreeViewColumn* time_span_col = range_view.get_column(3); // time span column
|
||||
time_span_col->set_sort_column(8); //set sort length_actual
|
||||
time_span_col->set_sort_column(9); //set sort start
|
||||
|
||||
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
|
||||
|
||||
|
@ -568,6 +569,9 @@ ExportTimespanSelectorMultiple::fill_range_list ()
|
|||
//the actual samplecnt_t for sorting
|
||||
row[range_cols.length_actual] = (*it)->length();
|
||||
|
||||
//start samplecnt_t for sorting
|
||||
row[range_cols.start] = (*it)->start();
|
||||
|
||||
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");;
|
||||
|
|
|
@ -144,8 +144,9 @@ protected:
|
|||
Gtk::TreeModelColumn<std::string> date;
|
||||
Gtk::TreeModelColumn<time_t> timestamp;
|
||||
Gtk::TreeModelColumn<ARDOUR::samplecnt_t> length_actual;
|
||||
Gtk::TreeModelColumn<ARDOUR::samplecnt_t> start;
|
||||
|
||||
RangeCols () { add (location); add(label); add(selected); add(realtime); add(name); add(length); add(date); add(timestamp); add(length_actual);}
|
||||
RangeCols () { add (location); add(label); add(selected); add(realtime); add(name); add(length); add(date); add(timestamp); add(length_actual); add(start);}
|
||||
};
|
||||
RangeCols range_cols;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user