33 lines
690 B
C++
Executable File
33 lines
690 B
C++
Executable File
class InputSettingsWindow : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QWidget *panel;
|
|
QVBoxLayout *layout;
|
|
QLabel *title;
|
|
QHBoxLayout *selection;
|
|
QComboBox *port;
|
|
QComboBox *device;
|
|
QTreeWidget *list;
|
|
QHBoxLayout *controls;
|
|
QPushButton *assign;
|
|
QPushButton *assignAll;
|
|
QPushButton *unassign;
|
|
|
|
void setup();
|
|
void syncUi();
|
|
|
|
public slots:
|
|
void portChanged();
|
|
void reloadList();
|
|
void listChanged();
|
|
void updateList();
|
|
void assignKey();
|
|
void assignAllKeys();
|
|
void unassignKey();
|
|
|
|
private:
|
|
array<InputGroup*> deviceItem;
|
|
array<QTreeWidgetItem*> listItem;
|
|
} *winInputSettings;
|