-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmidix_config.h
More file actions
55 lines (42 loc) · 1.1 KB
/
xmidix_config.h
File metadata and controls
55 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef XMIDIX__XMIDIX_CONFIG_H_
#define XMIDIX__XMIDIX_CONFIG_H_
#include "ui_xmidix_config.h"
#include "xmidix_seq.h"
#include <memory>
#include <utility>
#include <QDialog>
#include <QObject>
#include <spdlog/spdlog.h>
class xmidix_config : public QDialog {
Q_OBJECT
public:
explicit xmidix_config(QWidget *parent = nullptr);
xmidix_client_info get_selected_client();
void set_selected_client(int client_id, int port_id);
void set_systray(bool val) {
systray = val;
ui.systray_check->setChecked(val);
}
void set_chanbar(bool val) {
chanbar = val;
ui.channel_status_check->setChecked(val);
}
Ui::config_window ui;
signals:
void config_updated();
void clients_update();
public slots:
void clients_updated(const std::vector<xmidix_client_info>& c);
void accepted_handler();
void rejected_handler();
protected:
void showEvent(QShowEvent *event) override;
private:
void reload_settings();
std::vector<xmidix_client_info> clients;
QComboBox *output_device;
int output_index = 0;
bool systray{true};
bool chanbar{true};
};
#endif //XMIDIX__XMIDIX_CONFIG_H_