mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-12 19:02:40 +00:00
KURL->KUrl
Launch script to adapt to new kdelibs API svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=503148
This commit is contained in:
parent
3c944416ea
commit
544c95f775
|
@ -26,7 +26,7 @@
|
|||
#include <klocale.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kmimetype.h>
|
||||
#include <kprogress.h>
|
||||
#include <kprogressbar.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kvbox.h>
|
||||
|
||||
|
@ -377,7 +377,7 @@ bool dviRenderer::isValidFile(const QString& filename) const
|
|||
}
|
||||
|
||||
|
||||
bool dviRenderer::setFile(const QString &fname, const KURL &base)
|
||||
bool dviRenderer::setFile(const QString &fname, const KUrl &base)
|
||||
{
|
||||
#ifdef DEBUG_DVIRENDERER
|
||||
kdDebug(kvs::dvi) << "dviRenderer::setFile( fname='" << fname << "', ref='" << ref << "', sourceMarker=" << sourceMarker << " )" << endl;
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
dviRenderer(QWidget *parent);
|
||||
~dviRenderer();
|
||||
|
||||
virtual bool setFile(const QString &fname, const KURL &base);
|
||||
virtual bool setFile(const QString &fname, const KUrl &base);
|
||||
|
||||
dvifile* dviFile;
|
||||
|
||||
|
@ -168,7 +168,7 @@ private:
|
|||
/** URL to the DVI file
|
||||
This field is initialized by the setFile() method. See the
|
||||
explanation there. */
|
||||
KURL baseURL;
|
||||
KUrl baseURL;
|
||||
|
||||
/** This method parses a color specification of type "gray 0.5", "rgb
|
||||
0.5 0.7 1.0", "hsb ...", "cmyk .." or "PineGreen". See the source
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <klocale.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kmimetype.h>
|
||||
#include <kprogress.h>
|
||||
#include <kprogressbar.h>
|
||||
|
||||
#include <Q3MemArray>
|
||||
#include <QApplication>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "fontprogress.h"
|
||||
|
||||
#include <klocale.h>
|
||||
#include <kprogress.h>
|
||||
#include <kprogressbar.h>
|
||||
#include <kvbox.h>
|
||||
|
||||
#include <QApplication>
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
<string>Editor:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KURLLabel" row="0" column="2">
|
||||
<widget class="KUrlLabel" row="0" column="2">
|
||||
<property name="name">
|
||||
<cstring>urll</cstring>
|
||||
</property>
|
||||
|
|
2
psgs.cpp
2
psgs.cpp
|
@ -342,7 +342,7 @@ void ghostscript_interface::graphics(const PageNumber& page, double dpi, long ma
|
|||
}
|
||||
|
||||
|
||||
QString ghostscript_interface::locateEPSfile(const QString &filename, const KURL &base)
|
||||
QString ghostscript_interface::locateEPSfile(const QString &filename, const KUrl &base)
|
||||
{
|
||||
// If the base URL indicates that the DVI file is local, try to find
|
||||
// the graphics file in the directory where the DVI file resides
|
||||
|
|
4
psgs.h
4
psgs.h
|
@ -15,7 +15,7 @@
|
|||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class KURL;
|
||||
class KUrl;
|
||||
class PageNumber;
|
||||
class QPainter;
|
||||
|
||||
|
@ -75,7 +75,7 @@ public:
|
|||
returned. Otherwise, the method returns the first argument. TODO:
|
||||
use the DVI file's baseURL, once this is implemented.
|
||||
*/
|
||||
static QString locateEPSfile(const QString &filename, const KURL &base);
|
||||
static QString locateEPSfile(const QString &filename, const KUrl &base);
|
||||
|
||||
private:
|
||||
void gs_generate_graphics_file(const PageNumber& page, const QString& filename, long magnification);
|
||||
|
|
Loading…
Reference in a new issue