Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skeleton + comments #390

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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