Added Go To Page submenu so the user can directly go to the page that they want. Also fixed a typo.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5290 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber
2003-11-09 14:10:26 +00:00
parent e6a50d9c7b
commit 6c3054116e
5 changed files with 76 additions and 2 deletions
+9
View File
@@ -914,6 +914,15 @@ ShowImageView::PrevPage()
}
}
void
ShowImageView::GoToPage(int32 page)
{
if (page > 0 && page <= fDocumentCount && page != fDocumentIndex) {
fDocumentIndex = page;
SetImage(NULL);
}
}
void
ShowImageView::FreeEntries(BList* entries)
{