Skip to content

Commit

Permalink
add comments (save part)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharSong24 committed Dec 10, 2022
1 parent 7d63a0b commit a4f3b16
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/edu/rpi/legup/ui/ProofEditorPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public JMenuBar getMenuBar() {
newPuzzle = new JMenuItem("Open");
resetPuzzle = new JMenuItem("Reset Puzzle");
// genPuzzle = new JMenuItem("Puzzle Generators");
saveProofAs = new JMenuItem("Save Proof As");
saveProofChange = new JMenuItem("Save Proof Change");
saveProofAs = new JMenuItem("Save Proof As"); // create a new file to save
saveProofChange = new JMenuItem("Save Proof Change"); // save to the current file
preferences = new JMenuItem("Preferences");
helpTutorial = new JMenuItem("Help");
helpTutorial = new JMenuItem("Help"); // jump to web page
exit = new JMenuItem("Exit");

edit = new JMenu("Edit");
Expand Down Expand Up @@ -432,7 +432,7 @@ private void direct_save(){
}
}
/**
* Saves a proof
* Create a new file and save proof to it
*/
private void saveProofAs() {
Puzzle puzzle = GameBoardFacade.getInstance().getPuzzleModule();
Expand Down Expand Up @@ -475,7 +475,7 @@ private void saveProofAs() {
private void helpTutorial() {

Runtime rt = Runtime.getRuntime();
String url = "https://github.com/Bram-Hub/Legup/wiki/LEGUP-Tutorial"; // empty page, Oct 17th
String url = "https://github.com/Bram-Hub/Legup/wiki/LEGUP-Tutorial"; // empty page 2022 Fall semester
try{
//rt.exec("rundll32 url.dll,FileProtocolHandler "+url);
java.awt.Desktop.getDesktop().browse(java.net.URI.create(url));
Expand All @@ -499,11 +499,11 @@ public void actionPerformed(ActionEvent e) {
panel.add(moveing_buttom);

}
// Quick save, does not prompt user for name change




// Quick save proof to the current file with a pop window to show "successfully saved"
private void saveProofChange(){
Puzzle puzzle = GameBoardFacade.getInstance().getPuzzleModule();
if (puzzle == null) {
Expand Down

0 comments on commit a4f3b16

Please sign in to comment.