Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
c152cda4
Commit
c152cda4
authored
May 15, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Web: Added DynCatchSignal
parent
e5705510
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
java/jsw/ge/src/ge_dyn.ts
java/jsw/ge/src/ge_dyn.ts
+50
-0
No files found.
java/jsw/ge/src/ge_dyn.ts
View file @
c152cda4
...
...
@@ -8919,6 +8919,56 @@ class DynMethodPulldownMenu extends DynElem {
}
}
class
DynCatchSignal
extends
DynElem
{
signal_name
=
""
;
constructor
(
dyn
)
{
super
(
dyn
,
DynPrio
.
CatchSignal
);
this
.
action_type1
=
ActionType1
.
CatchSignal
;
}
action
(
object
,
e
)
{
if
(
!
this
.
dyn
.
graph
.
isAuthorized
(
this
.
dyn
.
access
))
{
return
1
;
}
if
(
e
.
event
===
Event
.
Signal
&&
e
.
signal
.
signal_name
===
this
.
signal_name
)
{
let
e
=
new
GlowEvent
();
e
.
event
=
Event
.
MB1Click
;
e
.
object
=
object
;
let
sts
=
this
.
dyn
.
action
(
object
,
e
);
if
(
sts
===
GLOW__NO_PROPAGATE
||
sts
===
GLOW__TERMINATED
||
sts
===
GLOW__SUBTERMINATED
)
{
return
sts
;
}
}
return
1
;
}
open
(
lines
,
row
)
{
let
i
;
for
(
i
=
row
;
i
<
lines
.
length
;
i
++
)
{
let
tokens
=
lines
[
i
].
split
(
'
'
);
let
key
=
parseInt
(
tokens
[
0
],
10
);
switch
(
key
)
{
case
DynSave
.
CatchSignal
:
break
;
case
DynSave
.
CatchSignal_signal_name
:
this
.
signal_name
=
tokens
[
1
];
break
;
case
DynSave
.
End
:
return
i
;
default
:
console
.
log
(
"
Syntax error in DynCatchSignal
"
);
break
;
}
}
return
i
;
}
}
class
DynPopupMenu
extends
DynElem
{
ref_object
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment