Allow user to set tile size

This commit is contained in:
Jackson
2016-09-21 23:26:44 +02:00
committed by Laurent Clouet
parent 6747b666ef
commit 55b909c98b
6 changed files with 143 additions and 11 deletions

View File

@@ -54,6 +54,7 @@ public class Configuration {
private String extras;
private boolean autoSignIn;
private String UIType;
private int tileSize;
public Configuration(File cache_dir_, String login_, String password_) {
this.login = login_;
@@ -73,6 +74,7 @@ public class Configuration {
this.extras = "";
this.autoSignIn = false;
this.UIType = null;
this.tileSize = -1; // ie not set
}
public String toString() {
@@ -215,6 +217,14 @@ public class Configuration {
return this.UIType;
}
public void setTileSize(int size) {
this.tileSize = size;
}
public int getTileSize() {
return this.tileSize;
}
public void cleanWorkingDirectory() {
this.cleanDirectory(this.workingDirectory);
this.cleanDirectory(this.storageDirectory);