Skip to content

Commit

Permalink
Merge pull request #390 from Bram-Hub/new-update-for-the-add-drop-fun…
Browse files Browse the repository at this point in the history
…ction-Skelton

Skeleton + comments

Follows from #389
  • Loading branch information
Chase-Grajeda authored Dec 2, 2022
2 parents a8a784a + affb246 commit 6d694cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/edu/rpi/legup/ui/HomePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ public void checkfolder(){

}
}
/*
This function is use to check each function xml proof file have the flag = true.
Also, we will go to check each file is xml file or not which we have 3 result solve, unsolve and ungradeable
*/
public void use_xml_to_check() throws Exception{
GameBoardFacade facade = GameBoardFacade.getInstance();

Expand Down
21 changes: 20 additions & 1 deletion src/main/java/edu/rpi/legup/ui/ProofEditorPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import javax.swing.border.TitledBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.InputEvent;
import java.io.BufferedWriter;
import java.io.File;
Expand Down Expand Up @@ -483,8 +484,26 @@ private void helpTutorial() {
e.printStackTrace();
}
}
//add the new function need to implement
public void add_drop(){
// add the mouse event then we can use the new listener to implement and
// we should create a need jbuttom for it to ship the rule we select.
JPanel panel= new JPanel();
JButton moveing_buttom= new JButton();
moveing_buttom.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
//get the selected rule
}
});
panel.add(moveing_buttom);

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




// Quick save, does not prompt user for name change
private void saveProofChange(){
Puzzle puzzle = GameBoardFacade.getInstance().getPuzzleModule();
if (puzzle == null) {
Expand Down

0 comments on commit 6d694cd

Please sign in to comment.