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:
1 parent
286023c5d8
commit
024a4f70c3
12 files changed
+403
-135
No files matched your search
@@ -87,4 +87,41 @@ public class MazeApp extends JFrame
|
||||
mazeAppModel.setPathDrawn(false);
|
||||
this.repaint();
|
||||
}
|
||||
|
||||
public void addEmptyColumn(int posColumn) {
|
||||
mazeAppModel.addEmptyColumn(posColumn);
|
||||
}
|
||||
|
||||
public void addEmptyColumn() {
|
||||
mazeAppModel.addEmptyColumn();
|
||||
}
|
||||
|
||||
public void delColumn(int posColumn) {
|
||||
mazeAppModel.delColumn(posColumn);
|
||||
}
|
||||
|
||||
public void delColumn() {
|
||||
mazeAppModel.delColumn();
|
||||
}
|
||||
|
||||
public void addEmptyLine(int posLine) {
|
||||
mazeAppModel.addEmptyLine(posLine);
|
||||
}
|
||||
|
||||
public void addEmptyLine() {
|
||||
mazeAppModel.addEmptyLine();
|
||||
}
|
||||
|
||||
public void delLine(int posLine) {
|
||||
mazeAppModel.delLine(posLine);
|
||||
}
|
||||
|
||||
public void delLine() {
|
||||
mazeAppModel.delLine();
|
||||
}
|
||||
|
||||
public void clearMaze() {
|
||||
mazeAppModel.clearMaze();
|
||||
this.repaint();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user