Fix add column/line and spinners, cleanup Maintest

* Remove legacy test code in MainTest

maze:
* Add methods to add/del lines and columns
* Add various calls to matrixDeepCopy, allowing to overwrite only a part
  of a matrix

model:
* Better delegation to Maze : let Maze handle column/line
  adds/deletions

ui:
* Add buttons to context menu to add/remove lines and columns
* Add buttons to Maze Menu to delete lines and columns
* Fix the spinners, it used to call a new instance of itself, which made
  impossible to simple get the values from the spinners
This commit is contained in:
regar42 committed 2017-12-31 20:25:16 +01:00
1 parent 286023c5d8
commit 024a4f70c3
12 files changed
+403 -135

No files matched your search

+4
View File
@@ -11,6 +11,8 @@ public class MazeMenu extends JMenu {
private final ClearMazeMenuItem clearMazeMenuItem;
private final AddRowMenuItem addRowMenuItem;
private final AddLineMenuItem addLineMenuItem;
private final DelRowMenuItem delRowMenuItem;
private final DelLineMenuItem delLineMenuItem;
public MazeMenu(MazeApp mazeApp) {
@@ -23,5 +25,7 @@ public class MazeMenu extends JMenu {
add(clearMazeMenuItem = new ClearMazeMenuItem(mazeApp));
add(addRowMenuItem = new AddRowMenuItem(mazeApp));
add(addLineMenuItem = new AddLineMenuItem(mazeApp));
add(delRowMenuItem = new DelRowMenuItem(mazeApp));
add(delLineMenuItem = new DelLineMenuItem(mazeApp));
}
}