/PhotoAlbum/trunk/src/ak/photoalbum/logic/IndexEntry.java |
---|
14,6 → 14,7 |
private boolean isDir; |
private int width; |
private int height; |
private int page; |
public IndexEntry() |
{ |
130,9 → 131,19 |
this.height = height; |
} |
public int getPage() |
{ |
return page; |
} |
public void setPage(int page) |
{ |
this.page = page; |
} |
public String toString() |
{ |
return super.toString() + ": " + file + " - " + path + " - " + title + "/" + subtitle |
+ " (" + comment + ") " + width + "x" + height; |
+ " (" + comment + ") " + width + "x" + height + ", page " + page; |
} |
} |
/PhotoAlbum/trunk/src/ak/photoalbum/logic/Logic.java |
---|
172,6 → 172,9 |
throw new FileNotFoundException("[" + file.getCanonicalPath() |
+ "] not found in [" + dir.getCanonicalPath() + "]"); |
// calc page number in index |
index.setPage(pos / branch.getColumns() / branch.getRows()); |
branch.getMetaInfos().clear(); // FIXME make this more intelligent |
setEntryInfo(branch, page, file, false); |
setEntryInfo(branch, current, file, true); |