Skip to content

Commit 7276460

Browse files
committed
Reqested changes 2nd
1 parent 089607d commit 7276460

File tree

11 files changed

+47
-57
lines changed

11 files changed

+47
-57
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ public JMenu initDefaultFileMenu() {
597597
defaultFileMenu.add(item);
598598

599599
item = Toolkit.newJMenuItem(Language.text("menu.file.templates"), 'T');
600-
//item.addActionListener(e -> handleTemplates());
601600
defaultFileMenu.add(item);
602601

603602
return defaultFileMenu;
@@ -1289,7 +1288,7 @@ private void openContribBundle(String path) {
12891288
});
12901289
}
12911290

1292-
// Open templates to start with any work
1291+
12931292

12941293

12951294
/**

app/src/processing/app/ui/Editor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,8 @@ protected JMenu buildFileMenu(JMenuItem[] exportItems) {
770770
}
771771
// Load templates from both the repository and the user's Sketchbook folder
772772
private void loadTemplates(JMenu templatesMenu) {
773+
templatesMenu.removeAll();
774+
System.out.println("templatesMenu"+templatesMenu.getComponentCount());
773775
List<File> allTemplates = new ArrayList<>();
774776

775777
// Load predefined templates from the repository

build/shared/lib/languages/PDE.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ menu.file.recent = Open Recent
2121
menu.file.sketchbook = Sketchbook...
2222
menu.file.sketchbook.empty = Empty Sketchbook
2323
menu.file.examples = Examples...
24-
menu.file.templates=Templates
24+
menu.file.templates=New from Template
2525
menu.file.close = Close
2626
menu.file.save = Save
2727
menu.file.save_as = Save As...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
void setup() {
2+
size(500, 500);
3+
// write code that will be called once in this function
4+
}
5+
6+
void draw() {
7+
// write code that will be called for every frame here
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
void setup() {
2+
fullScreen(); // create a fullscreen canvas
3+
}
4+
5+
void draw() {
6+
circle(width / 2, height / 2, height * 0.5);
7+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void setup() {
2+
size(500, 500);
3+
// write code that will be called once in this function
4+
}
5+
6+
void draw() {
7+
// write code that will be called for every frame here
8+
}
9+
10+
void mousePressed() {
11+
ellipse(mouseX, mouseY, 20, 20);
12+
// write code that will run when you click
13+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
void setup() {
2+
size(500, 500);
3+
windowResizable(true);
4+
// allow the window to be resized
5+
}
6+
7+
void draw() {
8+
circle(width / 2, height / 2, min(width, height) * 0.5);
9+
// draw a circle that resizes with the window
10+
}
11+
12+
void windowResized() {
13+
println("Window resized to: " + width + "x" + height);
14+
// this function is called whenever the window is resized
15+
}

build/shared/lib/templates/Template1.pde

Lines changed: 0 additions & 9 deletions
This file was deleted.

build/shared/lib/templates/Template2.pde

Lines changed: 0 additions & 13 deletions
This file was deleted.

build/shared/lib/templates/Template3.pde

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)