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
Wynn
purr-data
Commits
c4a8fd97
Commit
c4a8fd97
authored
Dec 25, 2015
by
Jonathan Wilkes
Browse files
add "Clear Console" menu item
parent
3158ead2
Changes
3
Hide whitespace changes
Inline
Side-by-side
pd/nw/index.js
View file @
c4a8fd97
...
...
@@ -455,6 +455,12 @@ function nw_create_pd_window_menus(gui, w) {
minit
(
m
.
edit
.
font
,
{
enabled
:
false
});
minit
(
m
.
edit
.
cordinspector
,
{
enabled
:
false
});
}
minit
(
m
.
edit
.
clear_console
,
{
click
:
function
()
{
var
container
=
w
.
document
.
getElementById
(
"
p1
"
);
container
.
textContent
=
""
;
}
});
minit
(
m
.
edit
.
find
,
{
click
:
function
()
{
var
find_bar
=
w
.
document
.
getElementById
(
"
console_find
"
),
...
...
pd/nw/locales/en/translation.json
View file @
c4a8fd97
...
...
@@ -130,6 +130,8 @@
"find_tt"
:
"Find text in the console output"
,
"tidyup"
:
"Tidy Up"
,
"tidyup_tt"
:
"Line up the selected objects in straight rows and columns"
,
"clear_console"
:
"Clear Console"
,
"clear_console_tt"
:
"Clear the Pd Window Console"
,
"tofront"
:
"Bring to Front"
,
"tofront_tt"
:
"Bring the selected object visually in front of all other objects"
,
"toback"
:
"Send to Back"
,
...
...
pd/nw/pd_menus.js
View file @
c4a8fd97
...
...
@@ -158,7 +158,13 @@ function create_menu(gui, type) {
}));
}
editMenu
.
append
(
new
gui
.
MenuItem
({
type
:
"
separator
"
}));
editMenu
.
append
(
new
gui
.
MenuItem
({
type
:
"
separator
"
}));
if
(
!
canvas_menu
)
{
editMenu
.
append
(
m
.
edit
.
clear_console
=
new
gui
.
MenuItem
({
label
:
l
(
"
menu.clear_console
"
),
tooltip
:
l
(
"
menu.clear_console
"
)
}));
editMenu
.
append
(
new
gui
.
MenuItem
({
type
:
"
separator
"
}));
}
if
(
canvas_menu
)
{
editMenu
.
append
(
m
.
edit
.
tidyup
=
new
gui
.
MenuItem
({
label
:
l
(
"
menu.tidyup
"
),
...
...
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