forked from psemiletov/eko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfxrack.h
More file actions
80 lines (51 loc) · 1.39 KB
/
fxrack.h
File metadata and controls
80 lines (51 loc) · 1.39 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef FXRACK_H
#define FXRACK_H
#include <cstring>
#include <QWidget>
#include <QTreeView>
#include <QList>
#include <QModelIndex>
#include <QString>
#include <QStandardItemModel>
#include "afx.h"
#include "fxlist.h"
class CFxTreeView;
class CFxListInterface;
class CFxRack: public QObject
{
Q_OBJECT
public:
QList <AFx*> effects;
QWidget *inserts; //inserts section for the mixer, the "external" widget
CFxTreeView *tree_view; //inside of the inserts widget
QStandardItemModel *model;
CFxRack (QObject *parent = 0);
~CFxRack();
// void add_entry (AFx *f, bool checked = true);
void ins_entry (AFx *f);
void add_entry_silent (AFx *f, bool bypass);
//const QModelIndex index_from_name (const QString &name);
const QModelIndex index_from_idx (int idx);
int get_sel_index();
void bypass_all (bool mode = true);
void set_state_all (FxState state);
void reset_all_fx (size_t srate, size_t ch);
QString get_sel_fname();
void print_fx_list();
public slots:
void tv_activated (const QModelIndex &index);
void add_fx();
void del_fx();
void bt_up_clicked();
void bt_down_clicked();
void bypass_dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight);
signals:
void fx_activated (const QString &path);
};
class CFxTreeView: public QTreeView
{
Q_OBJECT
protected:
void mouseMoveEvent (QMouseEvent *event);
};
#endif // FXRACK_H