X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=input_mapping_dialog.h;h=91246f563f05cddb5212f5737244297295d9959a;hb=d7118c0e5e98ba5597e259018600ab712bf079a7;hp=4eb5e4cd75b62674855f8c1ad298cb8536c9b1b4;hpb=4d5019d614b92e6695443710fb3aaafb4e9f34d9;p=nageru diff --git a/input_mapping_dialog.h b/input_mapping_dialog.h index 4eb5e4c..91246f5 100644 --- a/input_mapping_dialog.h +++ b/input_mapping_dialog.h @@ -20,10 +20,25 @@ public: InputMappingDialog(); private: - void fill_ui_from_mapping(const InputMapping &mapping, const std::vector &card_names); - void fill_channel_ui_from_mapping(unsigned row, const InputMapping::Input &input); + void fill_ui_from_mapping(const InputMapping &mapping); + void fill_row_from_input(unsigned row, const InputMapping::Input &input); + void setup_channel_choices_from_input(unsigned row, const InputMapping::Input &input); + void cell_changed(int row, int column); + void card_selected(unsigned row, int index); + void channel_selected(unsigned row, unsigned channel, int index); + void ok_clicked(); + void cancel_clicked(); + void add_clicked(); Ui::InputMappingDialog *ui; + InputMapping mapping; // Under edit. Will be committed on OK. + + // The old mapping. Will be re-committed on cancel, so that we + // unhold all the unused devices (otherwise they would be + // held forever). + InputMapping old_mapping; + + const std::vector card_names; }; #endif // !defined(_INPUT_MAPPING_DIALOG_H)