1 #ifndef _INPUT_MAPPING_DIALOG_H
2 #define _INPUT_MAPPING_DIALOG_H
12 class InputMappingDialog;
15 class InputMappingDialog : public QDialog
23 void fill_ui_from_mapping(const InputMapping &mapping);
24 void fill_row_from_bus(unsigned row, const InputMapping::Bus &bus);
25 void setup_channel_choices_from_bus(unsigned row, const InputMapping::Bus &bus);
26 void cell_changed(int row, int column);
27 void card_selected(unsigned row, int index);
28 void channel_selected(unsigned row, unsigned channel, int index);
30 void cancel_clicked();
33 Ui::InputMappingDialog *ui;
34 InputMapping mapping; // Under edit. Will be committed on OK.
36 // The old mapping. Will be re-committed on cancel, so that we
37 // unhold all the unused devices (otherwise they would be
39 InputMapping old_mapping;
41 const std::vector<std::string> card_names;
44 #endif // !defined(_INPUT_MAPPING_DIALOG_H)