Use TDEProcIO class

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/107/head
Michele Calgaro 2 months ago
parent 7e1f58b391
commit 1ef9742d3d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -57,7 +57,7 @@
#include <tqdir.h>
#include <tqfileinfo.h>
#include <stdlib.h>
#include <kprocio.h>
#include <tdeprocio.h>
extern "C" {
#include "dvi.h"
@ -375,7 +375,7 @@ TQString dvifile::convertPDFtoPS(const TQString &PDFFilename)
tmpfile.unlink();
// Use pdf2ps to do the conversion
KProcIO proc;
TDEProcIO proc;
proc << "pdf2ps" << PDFFilename << convertedFileName;
if (proc.start(TDEProcess::Block) == false)
convertedFileName = TQString(); // Indicates that conversion failed, won't try again.

@ -22,7 +22,7 @@
#include <tdelocale.h>
#include <kmimetype.h>
#include <tdeprocess.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <kprogress.h>
#include <tqapplication.h>
#include <tqbitmap.h>
@ -290,7 +290,7 @@ void dviRenderer::prescan_ParsePSHeaderSpecial(const TQString& cp)
// to find it.
if (!TQFile::exists(_file)) {
// Otherwise, use kpsewhich to find the eps file.
KProcIO proc;
TDEProcIO proc;
proc << "kpsewhich" << cp;
proc.start(TDEProcess::Block);
proc.readln(_file);

@ -9,7 +9,7 @@
#ifdef HAVE_FREETYPE
#include <kdebug.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <tqfile.h>
#include <tqstringlist.h>
@ -25,7 +25,7 @@ fontEncoding::fontEncoding(const TQString &encName)
_isValid = false;
// Use kpsewhich to find the encoding file.
KProcIO proc;
TDEProcIO proc;
TQString encFileName;
proc << "kpsewhich" << encName;
if (proc.start(TDEProcess::Block) == false) {

@ -9,7 +9,7 @@
#ifdef HAVE_FREETYPE
#include <kdebug.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <tqfile.h>
#include "fontMap.h"
@ -31,7 +31,7 @@ fontMap::fontMap()
// way to give both options at the same time, there is seemingly no
// other way than to try both options one after another. We use the
// teTeX 3.0 format first.
KProcIO proc;
TDEProcIO proc;
proc << "kpsewhich" << "--format=map" << "ps2pk.map";
if (proc.start(TDEProcess::Block) == false) {
kdError(4700) << "fontMap::fontMap(): kpsewhich could not be started." << endl;

@ -11,7 +11,7 @@
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <tdeprocess.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <math.h>
#include <tqapplication.h>
#include <tqfile.h>
@ -300,7 +300,7 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
TQStringList shellProcessCmdLine;
KProcIO kpsewhichIO;
TDEProcIO kpsewhichIO;
// If PK fonts are generated, the kpsewhich command will re-route
// the output of MetaFont into its stderr. Here we make sure this
// output is intercepted and parsed.

@ -9,7 +9,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <kprogress.h>
#include <tqapplication.h>
#include <tqframe.h>
@ -83,7 +83,7 @@ void fontProgressDialog::increaseNumSteps(const TQString& explanation)
}
void fontProgressDialog::setTotalSteps(int steps, KProcIO *proc)
void fontProgressDialog::setTotalSteps(int steps, TDEProcIO *proc)
{
procIO = proc;
if (ProgressBar1 != 0) {

@ -10,7 +10,7 @@
#include <kdialogbase.h>
#include <tqguardedptr.h>
class KProcIO;
class TDEProcIO;
class KProgress;
class TQLabel;
@ -44,8 +44,8 @@ public:
/** Used to initialize the progress bar. If the argument proc is
non-zero, the associated process will be killed when the "abort"
button is pressed. The FontProgress uses a TQGuarderPtr
internally, so it is save to delete the KProcIO anytime. */
void setTotalSteps(int, KProcIO *proc=0);
internally, so it is save to delete the TDEProcIO anytime. */
void setTotalSteps(int, TDEProcIO *proc=0);
TQLabel* TextLabel2;
@ -58,7 +58,7 @@ private:
TQLabel* TextLabel1;
KProgress* ProgressBar1;
int progress;
TQGuardedPtr<KProcIO> procIO;
TQGuardedPtr<TDEProcIO> procIO;
};
#endif // FONT_GENERATION_H

@ -11,7 +11,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <tdetempfile.h>
#include <kurl.h>
#include <tqdir.h>
@ -207,7 +207,7 @@ void ghostscript_interface::gs_generate_graphics_file(const PageNumber& page, co
// Step 2: Call GS with the File
TQFile::remove(filename.ascii());
KProcIO proc;
TDEProcIO proc;
TQStringList argus;
argus << "gs";
argus << "-dSAFER" << "-dPARANOIDSAFER" << "-dDELAYSAFER" << "-dNOPAUSE" << "-dBATCH";
@ -329,7 +329,7 @@ TQString ghostscript_interface::locateEPSfile(const TQString &filename, const KU
// Otherwise, use kpsewhich to find the eps file.
TQString EPSfilename;
KProcIO proc;
TDEProcIO proc;
proc << "kpsewhich" << filename;
proc.start(TDEProcess::Block);
proc.readln(EPSfilename);

@ -11,7 +11,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <kmimetype.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <tqdir.h>
#include <tqfile.h>
#include <tqfileinfo.h>

Loading…
Cancel
Save