Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
93a4ffd1
Commit
93a4ffd1
authored
Jun 30, 2015
by
Jonathan Wilkes
Browse files
removed old debugging messages
parent
4f0ee280
Changes
5
Hide whitespace changes
Inline
Side-by-side
pd/nw/index.html
View file @
93a4ffd1
...
...
@@ -510,12 +510,12 @@ function nw_create_window(cid, type, width, height, xpos, ypos, menu_flag, resiz
x
:
xpos
,
y
:
ypos
});
pdgui
.
gui_post
(
"
attr_array is
"
+
attr_array
);
//
pdgui.gui_post("attr_array is " + attr_array);
var
eval_string
=
"
register_canvas_id(
"
+
JSON
.
stringify
(
cid
)
+
"
,
"
+
JSON
.
stringify
(
attr_array
)
+
"
);
"
;
pdgui
.
gui_post
(
"
eval string is
"
+
eval_string
);
if
(
attr_array
!==
null
)
{
pdgui
.
gui_post
(
"
attr_array is
"
+
attr_array
.
toString
());
}
//
pdgui.gui_post("eval string is " + eval_string);
//
if (attr_array !== null) {
//
pdgui.gui_post("attr_array is " + attr_array.toString());
//
}
new_win
.
on
(
"
loaded
"
,
function
()
{
new_win
.
eval
(
null
,
eval_string
);
});
...
...
pd/nw/pd_canvas.html
View file @
93a4ffd1
...
...
@@ -302,7 +302,7 @@ var canvas_events = (function() {
}
},
normal
:
function
()
{
pdgui
.
gui_post
(
"
resetting to normal...
"
);
//
pdgui.gui_post("resetting to normal...");
this
.
none
();
document
.
addEventListener
(
"
mousemove
"
,
events
.
mousemove
,
false
);
...
...
pd/nw/pdgui.js
View file @
93a4ffd1
...
...
@@ -973,11 +973,6 @@ function gui_canvas_set_title(cid, name, args, dir, dirty_flag) {
// create a new canvas
// todo: rename parameter "name" to "cid"
function
gui_canvas_new
(
cid
,
width
,
height
,
geometry
,
editable
,
name
,
dir
,
dirty_flag
,
cargs
)
{
gui_post
(
"
canvas name is
"
+
name
);
gui_post
(
"
canvas string is
"
+
name
);
gui_post
(
"
canvas dir
"
+
dir
);
gui_post
(
"
canvas dirty_flag is
"
+
dirty_flag
);
gui_post
(
"
canvas cargsis
"
+
cargs
);
// hack for buggy tcl popups... should go away for node-webkit
//reset_ctrl_on_popup_window
...
...
@@ -1884,7 +1879,6 @@ function add_gobj_to_svg(svg, gobj) {
// Most of these map either to pd.tk procs, or in some cases Tk canvas subcommands
function
gui_text_create_gobj
(
cid
,
tag
,
type
,
xpos
,
ypos
,
is_toplevel
)
{
gui_post
(
"
creating a gobj
"
);
var
svg
=
get_item
(
cid
,
"
patchsvg
"
);
// "patchsvg" is id for the svg element
var
transform_string
=
'
matrix(1,0,0,1,
'
+
xpos
+
'
,
'
+
ypos
+
'
)
'
;
var
g
=
create_item
(
cid
,
'
g
'
,
{
...
...
@@ -1952,7 +1946,6 @@ function gui_canvas_drawio(cid, parenttag, tag, x1, y1, x2, y2, basex, basey, ty
'
shape-rendering
'
:
'
crispEdges
'
});
g
.
appendChild
(
rect
);
gui_post
(
"
the tag for this XLET is
"
+
tag
);
}
function
gui_canvas_redraw_io
(
cid
,
parenttag
,
tag
,
x
,
y
,
type
,
i
,
basex
,
basey
)
{
...
...
@@ -1964,7 +1957,6 @@ function gui_canvas_redraw_io(cid, parenttag, tag, x, y, type, i, basex, basey)
// text_drawborder (firsttime=0) -> glist_drawiofor (firsttime=0)
// This means that a new gatom tries to redraw its inlets before
// it has created them.
gui_post
(
"
y is
"
+
(
y
-
basey
));
if
(
xlet
!==
null
)
{
configure_item
(
xlet
,
{
x
:
x
-
basex
,
y
:
y
-
basey
});
}
...
...
@@ -2127,8 +2119,6 @@ function text_to_tspans(canvasname, svg_text, text) {
var
lines
,
i
,
len
,
tspan
;
lines
=
text
.
split
(
'
\
v
'
);
len
=
lines
.
length
;
gui_post
(
"
text length:
"
+
text
.
length
);
gui_post
(
"
lines:
"
+
len
);
for
(
i
=
0
;
i
<
len
;
i
++
)
{
tspan
=
create_item
(
canvasname
,
'
tspan
'
,
{
dy
:
i
==
0
?
0
:
10
...
...
@@ -2190,8 +2180,13 @@ function gui_text_set (cid, tag, text) {
svg_text
.
textContent
=
''
;
text_to_tspans
(
cid
,
svg_text
,
text
);
}
else
{
gui_post
(
"
gui_text_set: svg_text doesn't exist!
"
);
console
.
log
(
"
gui_text_set:
"
+
cid
+
"
"
+
tag
+
"
"
+
text
+
"
:
"
+
"
svg_text doesn't exist!
"
);
// In tk, setting an option for a non-existent canvas
// item is ignored. Because of that, Miller didn't pay
// attention to parts of the implementation which attempted
// to set options before creating the item. To get a sense
// of where this is happening, uncomment the following line:
//gui_post("gui_text_set: svg_text doesn't exist: tag: " + tag);
}
}
...
...
@@ -2824,9 +2819,6 @@ function gui_mycanvas_select_color(cid,tag,color) {
function
gui_create_scalar
(
cid
,
tag
,
isselected
,
t1
,
t2
,
t3
,
t4
,
t5
,
t6
,
is_toplevel
)
{
gui_post
(
"
creating a scalar...
"
);
gui_post
(
"
is_toplevel is
"
+
is_toplevel
);
gui_post
(
"
isselected is
"
+
isselected
);
// we should probably use create_gobj here, but we're doing some initial
// scaling that normal gobjs don't need...
var
svg
=
get_item
(
cid
,
"
patchsvg
"
);
// "patchsvg" is id for the svg in the DOM
...
...
@@ -3422,9 +3414,9 @@ function gui_audio_properties(gfxstub, sys_indevs, sys_outdevs,
]);
gui_post
(
"
got back some audio props...
"
);
for
(
var
i
=
0
;
i
<
arguments
.
length
;
i
++
)
{
gui_post
(
"
arg
"
+
i
+
"
is
"
+
arguments
[
i
]);
}
//
for (var i = 0; i < arguments.length; i++) {
//
gui_post("arg " + i + " is " + arguments[i]);
//
}
if
(
dialogwin
[
'
prefs
'
]
!==
null
)
{
dialogwin
[
'
prefs
'
].
eval
(
null
,
...
...
@@ -3445,10 +3437,10 @@ function gui_midi_properties(gfxstub, sys_indevs, sys_outdevs,
"
pd-outdevs
"
,
pd_outdevs
,
]);
gui_post
(
"
got back some midi props...
"
);
for
(
var
i
=
0
;
i
<
arguments
.
length
;
i
++
)
{
gui_post
(
"
arg
"
+
i
+
"
is
"
+
arguments
[
i
]);
}
//
gui_post("got back some midi props...");
//
for (var i = 0; i < arguments.length; i++) {
//
gui_post("arg " + i + " is " + arguments[i]);
//
}
if
(
dialogwin
[
'
prefs
'
]
!==
null
)
{
dialogwin
[
'
prefs
'
].
eval
(
null
,
...
...
pd/src/g_graph.c
View file @
93a4ffd1
...
...
@@ -862,9 +862,6 @@ int garray_getname(t_garray *x, t_symbol **namep);
graph decorations in toplevels... */
static
void
graph_vis
(
t_gobj
*
gr
,
t_glist
*
parent_glist
,
int
vis
)
{
post
(
"inside graph vis"
);
t_glist
*
x
=
(
t_glist
*
)
gr
;
//fprintf(stderr,"graph vis canvas=%lx gobj=%lx %d\n",
// (t_int)parent_glist, (t_int)gr, vis);
...
...
pd/src/g_template.c
View file @
93a4ffd1
...
...
@@ -5734,7 +5734,6 @@ static void plot_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
sys_vgui(".x%lx.c delete .x%lx.x%lx.template%lx\n",
glist_getcanvas(glist), glist_getcanvas(glist), glist, data);
}
post("nelem is %d", nelem);
}
static int plot_click(t_gobj *z, t_glist *glist,
...
...
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