]> git.sesse.net Git - nageru/blob - input_mapping_dialog.h
Store an input mapping, and show it in the UI.
[nageru] / input_mapping_dialog.h
1 #ifndef _INPUT_MAPPING_DIALOG_H
2 #define _INPUT_MAPPING_DIALOG_H
3
4 #include <QDialog>
5 #include <string>
6 #include <vector>
7 #include <sys/time.h>
8
9 #include "mixer.h"
10
11 namespace Ui {
12 class InputMappingDialog;
13 }  // namespace Ui
14
15 class InputMappingDialog : public QDialog
16 {
17         Q_OBJECT
18
19 public:
20         InputMappingDialog();
21
22 private:
23         void fill_ui_from_mapping(const InputMapping &mapping, const std::vector<std::string> &card_names);
24         void fill_channel_ui_from_mapping(unsigned row, const InputMapping::Input &input);
25
26         Ui::InputMappingDialog *ui;
27 };
28
29 #endif  // !defined(_INPUT_MAPPING_DIALOG_H)