This repository was archived by the owner on May 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfinity_Events.cpp
More file actions
110 lines (92 loc) · 2.26 KB
/
Infinity_Events.cpp
File metadata and controls
110 lines (92 loc) · 2.26 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#include "Infinity_Events.h"
Infinity_Events::Infinity_Events(QObject* parent)
: QObject(parent)
{
}
Infinity_Events::~Infinity_Events()
{
}
Infinity_Events Infinity_Events::IE_Class(nullptr);
Infinity_Events& Infinity_Events::getClass()
{
return IE_Class;
}
void Infinity_Events::on_button_actived(QString id, bool checked)
{
if (id == "button-track_view") {
emit this->view_show(id, checked);
}
else if (id == "button-note_view") {
emit this->view_show(id, checked);
}
else if (id == "button-parameter_view") {
emit this->view_show(id, checked);
}
else {
}
}
void Infinity_Events::on_button_selected(QString id)
{
if (id == "button-explore") {
emit this->button_active("button-edit", false);
}
else if (id == "button-edit") {
emit this->button_active("button-explore", false);
}
else if (id == "button-note_edit") {
emit this->button_active("button-phoneme_edit", false);
emit this->button_active("button-pitch_edit", false);
}
else if (id == "button-phoneme_edit") {
emit this->button_active("button-note_edit", false);
emit this->button_active("button-pitch_edit", false);
}
else if (id == "button-pitch_edit") {
emit this->button_active("button-note_edit", false);
emit this->button_active("button-phoneme_edit", false);
}
else {
}
}
void Infinity_Events::on_resource_refresh()
{
emit this->resource_refresh();
}
void Infinity_Events::on_console_clicked()
{
emit this->console_click();
}
void Infinity_Events::on_console_ready(bool fast)
{
this->ConsoleFastReady = fast;
emit this->background_fast(this->ConsoleFastReady || this->CentralFastReady);
}
void Infinity_Events::on_central_ready(bool fast)
{
this->CentralFastReady = fast;
emit this->background_fast(this->ConsoleFastReady || this->CentralFastReady);
}
void Infinity_Events::on_luaErrorMessage(QString message)
{
emit this->console_error(message);
}
void Infinity_Events::on_luaNormalMessage(QString message)
{
emit this->console_normal(message);
}
void Infinity_Events::on_luaMainStarted()
{
emit this->console_mainStart();
}
void Infinity_Events::on_luaMainEnded()
{
emit this->console_mainEnd();
}
void Infinity_Events::on_console_command(QString command)
{
emit this->lua_command(command);
}
void Infinity_Events::on_luaClearMessage()
{
emit this->console_clear();
}