fix: Renaming of "game view" to "gamelist view"
This commit is contained in:
parent
3c1c6bea85
commit
18d210b5b0
|
@ -120,16 +120,16 @@ public class ListPanel extends JPanel
|
|||
public void actionPerformed(ActionEvent arg0)
|
||||
{
|
||||
JPopupMenu menu = new JPopupMenu();
|
||||
JMenuItem addItem = new JMenuItem("Add view...");
|
||||
JMenuItem addItem = new JMenuItem("Add gamelist view...");
|
||||
addItem.addActionListener(e -> gameViewManager.openViewEditDialog(new GameView(0)));
|
||||
menu.add(addItem);
|
||||
if (((GameView) getListViewComboBox().getSelectedItem()).getGameViewId() > 0)
|
||||
{
|
||||
JMenuItem editItem = new JMenuItem("Edit view...");
|
||||
JMenuItem editItem = new JMenuItem("Edit gamelist view...");
|
||||
editItem.addActionListener(e -> gameViewManager
|
||||
.openViewEditDialog((GameView) getListViewComboBox().getSelectedItem()));
|
||||
menu.add(editItem);
|
||||
JMenuItem deleteItem = new JMenuItem("Delete view...");
|
||||
JMenuItem deleteItem = new JMenuItem("Delete gamelist view...");
|
||||
deleteItem
|
||||
.addActionListener(e -> gameViewManager.deleteView((GameView) getListViewComboBox().getSelectedItem()));
|
||||
menu.add(deleteItem);
|
||||
|
|
|
@ -182,7 +182,7 @@ public class MenuManager
|
|||
|
||||
JMenuItem getDeleteGamesForViewMenuItem()
|
||||
{
|
||||
deleteGamesForViewItem = new JMenuItem("Delete all games in current view");
|
||||
deleteGamesForViewItem = new JMenuItem("Delete all games in current gamelist view");
|
||||
|
||||
deleteGamesForViewItem.addActionListener(e -> deleteAllGamesInView());
|
||||
return deleteGamesForViewItem;
|
||||
|
@ -231,7 +231,7 @@ public class MenuManager
|
|||
|
||||
private JMenuItem getRefreshItem()
|
||||
{
|
||||
refreshItem = new JMenuItem("Reload current game view");
|
||||
refreshItem = new JMenuItem("Reload current gamelist view");
|
||||
KeyStroke keyStrokeToReloadGameView = KeyStroke.getKeyStroke(KeyEvent.VK_F5, 0);
|
||||
refreshItem.setAccelerator(keyStrokeToReloadGameView);
|
||||
refreshItem.setMnemonic('C');
|
||||
|
|
|
@ -99,7 +99,7 @@ public class FilterPanel extends JPanel
|
|||
GridBagConstraints gbc_orScrollPane = new GridBagConstraints();
|
||||
gbc_orScrollPane.weighty = 1.0;
|
||||
gbc_orScrollPane.weightx = 1.0;
|
||||
gbc_orScrollPane.insets = new Insets(5, 5, 0, 5);
|
||||
gbc_orScrollPane.insets = new Insets(0, 5, 0, 5);
|
||||
gbc_orScrollPane.fill = GridBagConstraints.BOTH;
|
||||
gbc_orScrollPane.gridx = 0;
|
||||
gbc_orScrollPane.gridy = 1;
|
||||
|
@ -118,13 +118,13 @@ public class FilterPanel extends JPanel
|
|||
GridBagConstraints gbc_orAddButton = new GridBagConstraints();
|
||||
gbc_orAddButton.anchor = GridBagConstraints.EAST;
|
||||
gbc_orAddButton.weightx = 1.0;
|
||||
gbc_orAddButton.insets = new Insets(5, 5, 5, 5);
|
||||
gbc_orAddButton.insets = new Insets(0, 5, 5, 5);
|
||||
gbc_orAddButton.gridx = 0;
|
||||
gbc_orAddButton.gridy = 0;
|
||||
orButtonPanel.add(getOrAddButton(), gbc_orAddButton);
|
||||
GridBagConstraints gbc_orRemoveButton = new GridBagConstraints();
|
||||
gbc_orRemoveButton.anchor = GridBagConstraints.EAST;
|
||||
gbc_orRemoveButton.insets = new Insets(5, 0, 5, 5);
|
||||
gbc_orRemoveButton.insets = new Insets(0, 0, 5, 5);
|
||||
gbc_orRemoveButton.gridx = 1;
|
||||
gbc_orRemoveButton.gridy = 0;
|
||||
orButtonPanel.add(getOrRemoveButton(), gbc_orRemoveButton);
|
||||
|
@ -418,7 +418,7 @@ public class FilterPanel extends JPanel
|
|||
gbc_andInfoLabel.gridy = 0;
|
||||
andTablePanel.add(getAndInfoLabel(), gbc_andInfoLabel);
|
||||
GridBagConstraints gbc_andScrollPane = new GridBagConstraints();
|
||||
gbc_andScrollPane.insets = new Insets(5, 5, 0, 5);
|
||||
gbc_andScrollPane.insets = new Insets(0, 5, 0, 5);
|
||||
gbc_andScrollPane.weighty = 1.0;
|
||||
gbc_andScrollPane.weightx = 1.0;
|
||||
gbc_andScrollPane.fill = GridBagConstraints.BOTH;
|
||||
|
@ -468,12 +468,12 @@ public class FilterPanel extends JPanel
|
|||
GridBagConstraints gbc_andAddButton = new GridBagConstraints();
|
||||
gbc_andAddButton.weightx = 1.0;
|
||||
gbc_andAddButton.anchor = GridBagConstraints.EAST;
|
||||
gbc_andAddButton.insets = new Insets(5, 5, 5, 5);
|
||||
gbc_andAddButton.insets = new Insets(0, 5, 5, 5);
|
||||
gbc_andAddButton.gridx = 0;
|
||||
gbc_andAddButton.gridy = 0;
|
||||
andButtonPanel.add(getAndAddButton(), gbc_andAddButton);
|
||||
GridBagConstraints gbc_andRemoveButton = new GridBagConstraints();
|
||||
gbc_andRemoveButton.insets = new Insets(5, 0, 5, 5);
|
||||
gbc_andRemoveButton.insets = new Insets(0, 0, 5, 5);
|
||||
gbc_andRemoveButton.anchor = GridBagConstraints.EAST;
|
||||
gbc_andRemoveButton.gridx = 1;
|
||||
gbc_andRemoveButton.gridy = 0;
|
||||
|
|
|
@ -28,11 +28,11 @@ public class GameViewManager
|
|||
GameViewEditDialog dialog = new GameViewEditDialog(MainWindow.getInstance(), gameView);
|
||||
if (gameView.getGameViewId() == 0)
|
||||
{
|
||||
dialog.setTitle("Add game view");
|
||||
dialog.setTitle("Add gamelist view");
|
||||
}
|
||||
else
|
||||
{
|
||||
dialog.setTitle("Edit game view");
|
||||
dialog.setTitle("Edit gamelist view");
|
||||
}
|
||||
dialog.pack();
|
||||
dialog.setLocationRelativeTo(MainWindow.getInstance());
|
||||
|
@ -62,8 +62,8 @@ public class GameViewManager
|
|||
|
||||
public void deleteView(GameView view)
|
||||
{
|
||||
String message = "Do you want to delete the game view \"" + view.getName() + "\"?";
|
||||
int value = JOptionPane.showConfirmDialog(MainWindow.getInstance().getMainPanel(), message, "Delete game view", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
|
||||
String message = "Do you want to delete the gamelist view \"" + view.getName() + "\"?";
|
||||
int value = JOptionPane.showConfirmDialog(MainWindow.getInstance().getMainPanel(), message, "Delete gamelist view", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
|
||||
if (value == JOptionPane.YES_OPTION)
|
||||
{
|
||||
uiModel.deleteGameView(view);
|
||||
|
|
|
@ -32,7 +32,7 @@ public class ViewNamePanel extends JPanel
|
|||
setLayout(gridBagLayout);
|
||||
GridBagConstraints gbc_nameLabel = new GridBagConstraints();
|
||||
gbc_nameLabel.anchor = GridBagConstraints.WEST;
|
||||
gbc_nameLabel.insets = new Insets(10, 5, 5, 5);
|
||||
gbc_nameLabel.insets = new Insets(10, 5, 0, 5);
|
||||
gbc_nameLabel.gridx = 0;
|
||||
gbc_nameLabel.gridy = 0;
|
||||
add(getNameLabel(), gbc_nameLabel);
|
||||
|
@ -48,7 +48,7 @@ public class ViewNamePanel extends JPanel
|
|||
}
|
||||
private JLabel getNameLabel() {
|
||||
if (nameLabel == null) {
|
||||
nameLabel = new JLabel("View name");
|
||||
nameLabel = new JLabel("Gamelist view name");
|
||||
}
|
||||
return nameLabel;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue