Commit 93a4ffd1 authored by Jonathan Wilkes's avatar Jonathan Wilkes

removed old debugging messages

parent 4f0ee280
......@@ -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);
});
......
......@@ -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);
......
......@@ -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,
......
......@@ -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);
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment