1 #ifndef _INPUT_MAPPING_DIALOG_H
2 #define _INPUT_MAPPING_DIALOG_H
12 class InputMappingDialog;
17 class InputMappingDialog : public QDialog
25 void fill_ui_from_mapping(const InputMapping &mapping);
26 void fill_row_from_bus(unsigned row, const InputMapping::Bus &bus);
27 void setup_channel_choices_from_bus(unsigned row, const InputMapping::Bus &bus);
28 void cell_changed(int row, int column);
29 void card_selected(QComboBox *card_combo, unsigned row, int index);
30 void channel_selected(unsigned row, unsigned channel, int index);
32 void cancel_clicked();
34 void remove_clicked();
35 void updown_clicked(int direction);
36 void update_button_state();
38 Ui::InputMappingDialog *ui;
39 InputMapping mapping; // Under edit. Will be committed on OK.
41 // The old mapping. Will be re-committed on cancel, so that we
42 // unhold all the unused devices (otherwise they would be
44 InputMapping old_mapping;
46 const std::map<DeviceSpec, DeviceInfo> devices;
49 #endif // !defined(_INPUT_MAPPING_DIALOG_H)