Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
01dba370
Commit
01dba370
authored
Oct 29, 2015
by
Jonathan Wilkes
Browse files
change var "nw" to "gui" in the dialogs
parent
d04ea3a7
Changes
5
Hide whitespace changes
Inline
Side-by-side
pd/nw/dialog_canvas.html
View file @
01dba370
...
...
@@ -278,7 +278,7 @@
<script>
"
use strict
"
;
var
nw
=
require
(
"
nw.gui
"
);
var
gui
=
require
(
"
nw.gui
"
);
var
pdgui
=
require
(
"
./pdgui.js
"
);
// For translations
...
...
@@ -743,7 +743,7 @@ console.log("fungyfungyfungyfungy");
function
add_events
(
name
)
{
// closing the Window
nw
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
gui
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name + " menuclose 0");
//cancel();
...
...
pd/nw/dialog_font.html
View file @
01dba370
...
...
@@ -94,7 +94,7 @@
<script>
"
use strict
"
;
var
nw
=
require
(
"
nw.gui
"
);
var
gui
=
require
(
"
nw.gui
"
);
var
pdgui
=
require
(
"
./pdgui.js
"
);
// For translations
...
...
@@ -181,7 +181,7 @@ function populate_form(attrs) {
function
add_events
(
name
)
{
// closing the Window
nw
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
gui
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0");
//cancel();
...
...
pd/nw/dialog_gatom.html
View file @
01dba370
...
...
@@ -137,7 +137,7 @@
<script>
"
use strict
"
;
var
nw
=
require
(
"
nw.gui
"
);
var
gui
=
require
(
"
nw.gui
"
);
var
pdgui
=
require
(
"
./pdgui.js
"
);
// For translations
...
...
@@ -270,7 +270,7 @@ function populate_form(attributes) {
function
add_events
(
name
)
{
// closing the Window
nw
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
gui
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0");
//cancel();
...
...
pd/nw/dialog_iemgui.html
View file @
01dba370
...
...
@@ -299,7 +299,7 @@
<script>
"
use strict
"
;
var
nw
=
require
(
"
nw.gui
"
);
var
gui
=
require
(
"
nw.gui
"
);
var
pdgui
=
require
(
"
./pdgui.js
"
);
// For translations
...
...
@@ -555,7 +555,7 @@ function populate_form(attr_object) {
function
add_events
(
name
)
{
// closing the Window
nw
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
gui
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
// this needs to do whatever the "cancel" button does
//pdgui.pdsend(name, "menuclose 0");
//cancel();
...
...
pd/nw/dialog_prefs.html
View file @
01dba370
...
...
@@ -254,7 +254,7 @@
</div>
<script>
"
use strict
"
;
var
nw
=
require
(
"
nw.gui
"
);
var
gui
=
require
(
"
nw.gui
"
);
var
pdgui
=
require
(
"
./pdgui.js
"
);
// For translations
...
...
@@ -633,7 +633,7 @@ function add_events(name) {
// let's handle some events for this window...
// closing the Window
nw
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
gui
.
Window
.
get
().
on
(
"
close
"
,
function
()
{
// this needs to do whatever the "cancel" button does
pdgui
.
remove_dialogwin
(
pd_object_callback
);
this
.
close
(
true
);
...
...
Write
Preview
Supports
Markdown
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