From 433e5adeea76a4e9ba679a4ad19c77fd7ca520e9 Mon Sep 17 00:00:00 2001 From: Wilfried Huss Date: Thu, 20 Oct 2005 15:48:16 +0000 Subject: [PATCH] Port of commit 472376 scrollView -> pageView svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=472380 --- kdvi_multipage.cpp | 16 ++++++++-------- kdvi_multipage_texthandling.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/kdvi_multipage.cpp b/kdvi_multipage.cpp index 874b188d4..74c6dbb42 100644 --- a/kdvi_multipage.cpp +++ b/kdvi_multipage.cpp @@ -208,8 +208,8 @@ void KDVIMultiPage::addConfigDialogs(KConfigDialog* configDialog) { static optionDialogFontsWidget* fontConfigWidget = 0; - fontConfigWidget = new optionDialogFontsWidget(scrollView()); - optionDialogSpecialWidget* specialConfigWidget = new optionDialogSpecialWidget(scrollView()); + fontConfigWidget = new optionDialogFontsWidget(pageView()); + optionDialogSpecialWidget* specialConfigWidget = new optionDialogSpecialWidget(pageView()); configDialog->addPage(fontConfigWidget, Prefs::self(), i18n("TeX Fonts"), "fonts"); configDialog->addPage(specialConfigWidget, Prefs::self(), i18n("DVI Specials"), "dvi"); @@ -253,7 +253,7 @@ void KDVIMultiPage::print() // KPrinter does some options parsing in that method. ((KDVIPrinterWrapper *)printer)->doPreparePrinting(); if (printer->pageList().isEmpty()) { - KMessageBox::error( scrollView(), + KMessageBox::error( pageView(), i18n("The list of pages you selected was empty.\n" "Maybe you made an error in selecting the pages, " "e.g. by giving an invalid range like '7-2'.") ); @@ -417,7 +417,7 @@ void KDVIMultiPage::enableActions(bool b) void KDVIMultiPage::doEnableWarnings() { - KMessageBox::information (scrollView(), i18n("All messages and warnings will now be shown.")); + KMessageBox::information (pageView(), i18n("All messages and warnings will now be shown.")); KMessageBox::enableAllMessages(); KTipDialog::setShowOnStart(true); } @@ -425,19 +425,19 @@ void KDVIMultiPage::doEnableWarnings() void KDVIMultiPage::showTip() { - KTipDialog::showTip(scrollView(), "kdvi/tips", true); + KTipDialog::showTip(pageView(), "kdvi/tips", true); } void KDVIMultiPage::showTipOnStart() { - KTipDialog::showTip(scrollView(), "kdvi/tips"); + KTipDialog::showTip(pageView(), "kdvi/tips"); } DocumentWidget* KDVIMultiPage::createDocumentWidget() { - DVIWidget* documentWidget = new DVIWidget(scrollView(), pageCache, "singlePageWidget"); + DVIWidget* documentWidget = new DVIWidget(pageView(), pageCache, "singlePageWidget"); // Handle source links connect(documentWidget, SIGNAL(SRCLink(const QString&, QMouseEvent*, DocumentWidget*)), getRenderer(), @@ -462,7 +462,7 @@ void KDVIMultiPage::showFindTextDialog() { // WARNING: This text appears several times in the code. Change // everywhere, or nowhere! - if (KMessageBox::warningContinueCancel( scrollView(), + if (KMessageBox::warningContinueCancel( pageView(), i18n("This function searches the DVI file for plain text. Unfortunately, this version of " "KDVI treats only plain ASCII characters properly. Symbols, ligatures, mathematical " "formulae, accented characters, and non-English text, such as Russian or Korean, will " diff --git a/kdvi_multipage_texthandling.cpp b/kdvi_multipage_texthandling.cpp index 39d4fdcf8..1f1c7d861 100644 --- a/kdvi_multipage_texthandling.cpp +++ b/kdvi_multipage_texthandling.cpp @@ -58,7 +58,7 @@ void KDVIMultiPage::doExportText() if (DVIRenderer.dviFile->dvi_Data() == 0 ) return; - if (KMessageBox::warningContinueCancel( scrollView(), + if (KMessageBox::warningContinueCancel( pageView(), i18n("This function exports the DVI file to a plain text. Unfortunately, this version of " "KDVI treats only plain ASCII characters properly. Symbols, ligatures, mathematical " "formulae, accented characters, and non-English text, such as Russian or Korean, will "