Fix hyperlink bug, remove "beta" from version name

svn path=/trunk/kdegraphics/kdvi/; revision=57723
This commit is contained in:
Stefan Kebekus 2000-07-18 11:38:27 +00:00
parent 85d673a7da
commit 0ae229ce9a
4 changed files with 9 additions and 5 deletions

2
TODO
View file

@ -3,6 +3,8 @@ ToDo-List for kdvi
URGENT
o fix network transparency bug in kviewshell
o implement SaveAs
HIGHLY DESIRABLE

View file

@ -473,7 +473,9 @@ void dviWindow::mousePressEvent ( QMouseEvent * e )
QString locallink = hyperLinkList[i].linkText.mid(1); // Drop the '#' at the beginning
for(int j=0; j<numAnchors; j++) {
if (locallink.compare(AnchorList_String[j]) == 0) {
emit(request_goto_page(AnchorList_Page[j], AnchorList_Vert[j]));
kdDebug() << "hit: local link to y=" << AnchorList_Vert[j] << endl;
kdDebug() << "hit: local link to sf=" << mane.shrinkfactor << endl;
emit(request_goto_page(AnchorList_Page[j], AnchorList_Vert[j]/mane.shrinkfactor));
break;
}
}

View file

@ -153,7 +153,7 @@ bool KDVIMultiPage::gotoPage(int page)
void KDVIMultiPage::goto_page(int page, int y)
{
window->gotoPage(page+1);
scrollView()->ensureVisible(scrollView()->width()/2, (int)(y/window->zoom()) );
scrollView()->ensureVisible(scrollView()->width()/2, y );
emit previewChanged(true);
emit pageInfo(window->totalPages(), page );
@ -224,7 +224,7 @@ void KDVIMultiPage::about()
i18n("the KDVI plugin"),
KAboutDialog::Close, KAboutDialog::Close);
ab->setProduct("kdvi", "0.9beta", QString::null, QString::null);
ab->setProduct("kdvi", "0.9", QString::null, QString::null);
ab->addTextPage (i18n("About"),
i18n("A previewer for Device Independent files (DVI files) produced "
"by the TeX typesetting system.<br>"
@ -258,7 +258,7 @@ void KDVIMultiPage::about()
void KDVIMultiPage::bugform()
{
KAboutData *kab = new KAboutData("kdvi", i18n("KDVI"), "0.9 beta", 0, 0, 0, 0, 0);
KAboutData *kab = new KAboutData("kdvi", i18n("KDVI"), "0.9", 0, 0, 0, 0, 0);
KBugReport *kbr = new KBugReport(0, true, kab );
kbr->show();
}

View file

@ -34,7 +34,7 @@ void dviWindow::html_anchor_special(QString cp)
AnchorList_String[numAnchors] = cp;
AnchorList_Page[numAnchors] = current_page;
AnchorList_Vert[numAnchors] = (DVI_V*xres)/(65536*basedpi); // multiply with zoom to get pixel coords
AnchorList_Vert[numAnchors] = DVI_V/65536; // multiply with zoom to get pixel coords
if (numAnchors < MAX_ANCHORS-2)
numAnchors++;
}