Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Aayush
purr-data
Commits
f9c37dac
Commit
f9c37dac
authored
Sep 05, 2015
by
Jonathan Wilkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove or comment out old debugging messages
parent
8f3acabf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
pd/nw/pd_canvas.html
pd/nw/pd_canvas.html
+4
-4
pd/nw/pdgui.js
pd/nw/pdgui.js
+2
-3
pd/src/g_editor.c
pd/src/g_editor.c
+4
-4
pd/src/g_rtext.c
pd/src/g_rtext.c
+1
-2
No files found.
pd/nw/pd_canvas.html
View file @
f9c37dac
...
...
@@ -242,14 +242,14 @@ var canvas_events = (function() {
return
false
;
},
floating_text_click
:
function
(
evt
)
{
pdgui
.
gui_post
(
"
leaving floating mode
"
);
//
pdgui.gui_post("leaving floating mode");
canvas_events
.
text
();
evt
.
stopPropagation
();
evt
.
preventDefault
();
return
false
;
},
floating_text_keypress
:
function
(
evt
)
{
pdgui
.
gui_post
(
"
leaving floating mode
"
);
//
pdgui.gui_post("leaving floating mode");
canvas_events
.
text
();
//evt.stopPropagation();
//evt.preventDefault();
...
...
@@ -260,12 +260,12 @@ var canvas_events = (function() {
create_obj
:
function
()
{
var
fudi_msg
=
text_to_fudi
(
textbox
().
innerText
);
pdgui
.
pdsend
(
name
+
"
createobj
"
+
fudi_msg
);
pdgui
.
gui_post
(
"
formatted content is
"
+
fudi_msg
);
//
pdgui.gui_post("formatted content is " + fudi_msg);
},
set_obj
:
function
()
{
var
fudi_msg
=
text_to_fudi
(
textbox
().
innerText
);
pdgui
.
pdsend
(
name
+
"
setobj
"
+
fudi_msg
);
pdgui
.
gui_post
(
"
formatted content is
"
+
fudi_msg
);
//
pdgui.gui_post("formatted content is " + fudi_msg);
}
}
;
...
...
pd/nw/pdgui.js
View file @
f9c37dac
...
...
@@ -2788,7 +2788,7 @@ function iemgui_fontfamily(name) {
function
gui_iemgui_label_new
(
cid
,
tag
,
x
,
y
,
color
,
text
,
fontname
,
fontweight
,
fontsize
)
{
var
g
=
get_gobj
(
cid
,
tag
);
gui_post
(
"
fontname is
"
+
fontname
);
//
gui_post("fontname is " + fontname);
// var fontheight =
var
svg_text
=
create_item
(
cid
,
'
text
'
,
{
// x and y need to be relative to baseline instead of nw anchor
...
...
@@ -2849,7 +2849,6 @@ function gui_iemgui_label_select(cid, tag, is_selected) {
}
function
gui_iemgui_label_font
(
cid
,
tag
,
fontname
,
fontweight
,
fontsize
)
{
gui_post
(
"
googoo: fontsize is
"
+
fontsize
);
var
svg_text
=
get_item
(
cid
,
tag
+
'
label
'
);
configure_item
(
svg_text
,
{
'
font-family
'
:
iemgui_fontfamily
(
fontname
),
...
...
@@ -3727,7 +3726,7 @@ function select_text(cid, elem) {
function
gui_textarea
(
cid
,
tag
,
type
,
x
,
y
,
max_char_width
,
text
,
font_size
,
state
)
{
//gui_post("x/y is " + x + '/' + y);
//gui_post("state? " + state);
gui_post
(
"
tag is
"
+
tag
);
//
gui_post("tag is " + tag);
var
range
,
svg_view
;
var
gobj
=
get_gobj
(
cid
,
tag
);
if
(
state
!==
0
)
{
...
...
pd/src/g_editor.c
View file @
f9c37dac
...
...
@@ -585,14 +585,14 @@ void glist_deselect(t_glist *x, t_gobj *y)
int
pos
=
glist_getindex
(
glist_getcanvas
(
x
),
y
);
if
(
x
->
gl_editor
->
e_textedfor
)
{
fprintf
(
stderr
,
"e_textedfor
\n
"
);
//
fprintf(stderr, "e_textedfor\n");
fuddy
=
glist_findrtext
(
x
,
(
t_text
*
)
y
);
if
(
x
->
gl_editor
->
e_textedfor
==
fuddy
)
{
fprintf
(
stderr
,
"e_textedfor == fuddy
\n
"
);
//
fprintf(stderr, "e_textedfor == fuddy\n");
if
(
x
->
gl_editor
->
e_textdirty
)
{
fprintf
(
stderr
,
"textdirty yes
\n
"
);
//
fprintf(stderr, "textdirty yes\n");
z
=
fuddy
;
canvas_stowconnections
(
glist_getcanvas
(
x
));
glist_checkanddeselectall
(
x
,
y
);
...
...
@@ -632,7 +632,7 @@ void glist_deselect(t_glist *x, t_gobj *y)
if
(
z
)
{
fprintf
(
stderr
,
"setto
\n
"
);
//
fprintf(stderr, "setto\n");
char
*
buf
;
int
bufsize
;
...
...
pd/src/g_rtext.c
View file @
f9c37dac
...
...
@@ -552,7 +552,6 @@ void rtext_displace(t_rtext *x, int dx, int dy)
/* Not sure if this is still used */
void
rtext_select
(
t_rtext
*
x
,
int
state
)
{
post
(
"selected an rtext"
);
t_glist
*
glist
=
x
->
x_glist
;
t_canvas
*
canvas
=
glist_getcanvas
(
glist
);
if
(
glist_istoplevel
(
glist
))
...
...
@@ -572,7 +571,7 @@ post("selected an rtext");
void
rtext_activate
(
t_rtext
*
x
,
int
state
)
{
fprintf
(
stderr
,
"rtext_activate state=%d
\n
"
,
state
);
//
fprintf(stderr,"rtext_activate state=%d\n", state);
int
w
=
0
,
h
=
0
,
widthspec
,
indx
;
t_glist
*
glist
=
x
->
x_glist
;
t_canvas
*
canvas
=
glist_getcanvas
(
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