-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathwidget.hpp
More file actions
81 lines (69 loc) · 1.92 KB
/
widget.hpp
File metadata and controls
81 lines (69 loc) · 1.92 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
81
#include <rtxi/widgets.hpp>
// This is an generated header file. You may change the namespace, but
// make sure to do the same in implementation (.cpp) file
namespace plugin_template
{
constexpr std::string_view MODULE_NAME = "plugin-template";
enum PARAMETER : Widgets::Variable::Id
{
// set parameter ids here
FIRST_PARAMETER=0,
SECOND_PARAMETER,
THIRD_PARAMETER,
FOURTH_PARAMETER
};
inline std::vector<Widgets::Variable::Info> get_default_vars()
{
return {
{PARAMETER::FIRST_PARAMETER,
"First Parameter Name",
"First Parameter Description",
Widgets::Variable::INT_PARAMETER,
int64_t{0}},
{PARAMETER::SECOND_PARAMETER,
"Second Parameter Name",
"Second Parameter Description",
Widgets::Variable::DOUBLE_PARAMETER,
1.0},
{PARAMETER::THIRD_PARAMETER,
"Third Parameter Name",
"Third Parameter Description",
Widgets::Variable::UINT_PARAMETER,
uint64_t{1}},
{PARAMETER::FOURTH_PARAMETER,
"Fourth Parameter Name",
"Third Parameter Description",
Widgets::Variable::STATE,
uint64_t{1}}
};
}
inline std::vector<IO::channel_t> get_default_channels()
{
return {
{"First Channel Output Name", "First Channel Output Description", IO::OUTPUT},
{"First Channel Input Name", "First Channel Input Description", IO::INPUT}
};
}
class Panel : public Widgets::Panel
{
Q_OBJECT
public:
Panel(QMainWindow* main_window, Event::Manager* ev_manager);
void customizeGUI();
private slots:
void aBttn_event(void);
void bBttn_event(void);
};
class Component : public Widgets::Component
{
public:
explicit Component(Widgets::Plugin* hplugin);
void execute() override;
// Additional functionality needed for RealTime computation is to be placed here
};
class Plugin : public Widgets::Plugin
{
public:
explicit Plugin(Event::Manager* ev_manager);
};
} // namespace plugin_template