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

ProjectView.java: Deleting the secondary "Add Rank" in the edit menu. #37

Merged
merged 1 commit into from
Jul 4, 2024
Merged
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
15 changes: 1 addition & 14 deletions src/main/java/org/bigredbands/mb/views/ProjectView.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ public void actionPerformed(ActionEvent e) {
JMenuItem exitMenuItem = new JMenuItem("Exit");

// Creates the buttons for the edit menu
JMenuItem addRankMenuItem = new JMenuItem("Add Rank");
JMenuItem songConstantsMenuItem = new JMenuItem("Edit Song Constants");
JMenuItem editMoveComments = new JMenuItem("Edit Move Comments");

Expand All @@ -309,7 +308,6 @@ public void actionPerformed(ActionEvent e) {
exitMenuItem.setToolTipText("Exit the program");

// Sets the tooltips for the edit menu
addRankMenuItem.setToolTipText("Add a new rank to this project");
songConstantsMenuItem.setToolTipText("Modify measures' tempos and counts");
editMoveComments.setToolTipText("Edit the comments section in the PDF for this move.");

Expand All @@ -321,7 +319,6 @@ public void actionPerformed(ActionEvent e) {
saveAsMenuItem.addActionListener(new SaveAs());
exportPDFMenuItem.addActionListener(new ExportPDF());
exitMenuItem.addActionListener(new Exit());
addRankMenuItem.addActionListener(new AddRank());
songConstantsMenuItem.addActionListener(new SongConstants());
editMoveComments.addActionListener(new EditMoveComments());

Expand All @@ -333,7 +330,6 @@ public void actionPerformed(ActionEvent e) {
fileMenu.add(saveAsMenuItem);
fileMenu.add(exportPDFMenuItem);
fileMenu.add(exitMenuItem);
editMenu.add(addRankMenuItem);
editMenu.add(songConstantsMenuItem);
editMenu.add(editMoveComments);
menuBar.add(fileMenu);
Expand Down Expand Up @@ -893,6 +889,7 @@ public void actionPerformed(ActionEvent e) {
// sets up the bar above the command buttons
//Add rank button
JButton addRankButton = createButton("Add Rank");
addRankButton.setToolTipText("Add a new rank to this project");
addRankButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Expand Down Expand Up @@ -1521,16 +1518,6 @@ public void actionPerformed(ActionEvent e) {
}
}

/**
* This method communicates with the football field to add a rank to the field
*/
class AddRank implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
fieldPanel.drawNewRank(thisProjectView);
}
}

/**
* Opens the wizard with the current song constants
*/
Expand Down
Loading