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();
32 void remove_clicked();
33 void updown_clicked(int direction);
34 void update_button_state();
36 Ui::InputMappingDialog *ui;
37 InputMapping mapping; // Under edit. Will be committed on OK.
39 // The old mapping. Will be re-committed on cancel, so that we
40 // unhold all the unused devices (otherwise they would be
42 InputMapping old_mapping;
44 const std::vector<std::string> card_names;
47 #endif // !defined(_INPUT_MAPPING_DIALOG_H)