mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-13 03:12:22 +00:00
Compile/link
Deprecated-- svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=503481
This commit is contained in:
parent
544c95f775
commit
3aead09295
|
@ -223,7 +223,7 @@ void dviRenderer::showThatSourceInformationIsPresent()
|
|||
// Check if the 'Don't show again' feature was used
|
||||
KConfig *config = KGlobal::config();
|
||||
KConfigGroup saver(config, "Notification Messages");
|
||||
bool showMsg = config->readBoolEntry( "KDVI-info_on_source_specials", true);
|
||||
bool showMsg = config->readEntry( "KDVI-info_on_source_specials", true);
|
||||
|
||||
if (showMsg) {
|
||||
KDialogBase dialog(i18n("KDVI: Information"), KDialogBase::Yes, KDialogBase::Yes, KDialogBase::Yes,
|
||||
|
@ -277,15 +277,15 @@ void dviRenderer::embedPostScript()
|
|||
if (!dviFile)
|
||||
return;
|
||||
|
||||
embedPS_progress = new KProgressDialog(parentWidget, "embedPSProgressDialog",
|
||||
embedPS_progress = new KProgressDialog(parentWidget,
|
||||
i18n("Embedding PostScript Files"), QString::null, true);
|
||||
if (!embedPS_progress)
|
||||
return;
|
||||
embedPS_progress->setAllowCancel(false);
|
||||
embedPS_progress->showCancelButton(false);
|
||||
embedPS_progress->setMinimumDuration(400);
|
||||
embedPS_progress->progressBar()->setTotalSteps(dviFile->numberOfExternalPSFiles);
|
||||
embedPS_progress->progressBar()->setProgress(0);
|
||||
embedPS_progress->progressBar()->setMaximum(dviFile->numberOfExternalPSFiles);
|
||||
embedPS_progress->progressBar()->setValue(0);
|
||||
embedPS_numOfProgressedFiles = 0;
|
||||
|
||||
quint16 currPageSav = current_page;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <ksharedptr.h>
|
||||
#include <kurl.h>
|
||||
|
||||
#include <kprogressdialog.h>
|
||||
#include <Q3IntDict>
|
||||
#include <Q3PointArray>
|
||||
#include <Q3ValueStack>
|
||||
|
|
|
@ -49,7 +49,7 @@ fontProgressDialog::fontProgressDialog(const QString& helpIndex, const QString&
|
|||
QToolTip::add( TextLabel1, ttip );
|
||||
|
||||
if (progressbar) {
|
||||
ProgressBar1 = new KProgress( page, "ProgressBar1" );
|
||||
ProgressBar1 = new KProgressBar( page );
|
||||
ProgressBar1->setFormat(i18n("%v of %m"));
|
||||
ProgressBar1->setWhatsThis( whatsThis );
|
||||
QToolTip::add( ProgressBar1, ttip );
|
||||
|
@ -78,7 +78,7 @@ fontProgressDialog::~fontProgressDialog()
|
|||
void fontProgressDialog::increaseNumSteps(const QString& explanation)
|
||||
{
|
||||
if (ProgressBar1 != 0)
|
||||
ProgressBar1->setProgress(progress++);
|
||||
ProgressBar1->setValue(progress++);
|
||||
TextLabel2->setText( explanation );
|
||||
}
|
||||
|
||||
|
@ -87,8 +87,8 @@ void fontProgressDialog::setTotalSteps(int steps, QProcess* proc)
|
|||
{
|
||||
process = proc;
|
||||
if (ProgressBar1 != 0) {
|
||||
ProgressBar1->setTotalSteps(steps);
|
||||
ProgressBar1->setProgress(0);
|
||||
ProgressBar1->setMaximum(steps);
|
||||
ProgressBar1->setValue(0);
|
||||
}
|
||||
progress = 0;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <QPointer>
|
||||
|
||||
class KProgress;
|
||||
class KProgressBar;
|
||||
class QLabel;
|
||||
class QProcess;
|
||||
|
||||
|
@ -58,7 +58,7 @@ private slots:
|
|||
|
||||
private:
|
||||
QLabel* TextLabel1;
|
||||
KProgress* ProgressBar1;
|
||||
KProgressBar* ProgressBar1;
|
||||
int progress;
|
||||
QPointer<QProcess> process;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue