Use pretty-port-names in latency measurement dialog

This commit is contained in:
Robin Gareus 2019-05-05 18:15:18 +02:00
parent ddd1cda260
commit 837678bdcc
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 52 additions and 16 deletions

View file

@ -97,8 +97,25 @@ private:
/* latency measurement */
Gtk::ComboBoxText lm_output_channel_combo;
Gtk::ComboBoxText lm_input_channel_combo;
class ChannelNameCols : public Gtk::TreeModelColumnRecord
{
public:
ChannelNameCols () {
add (pretty_name);
add (port_name);
}
Gtk::TreeModelColumn<std::string> pretty_name;
Gtk::TreeModelColumn<std::string> port_name;
};
ChannelNameCols lm_output_channel_cols;
Glib::RefPtr<Gtk::ListStore> lm_output_channel_list;
Gtk::ComboBox lm_output_channel_combo;
ChannelNameCols lm_input_channel_cols;
Glib::RefPtr<Gtk::ListStore> lm_input_channel_list;
Gtk::ComboBox lm_input_channel_combo;
Gtk::Label lm_measure_label;
Gtk::Button lm_measure_button;
Gtk::Button lm_use_button;