Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 5771 → Rev 5772

/branches/Version133x/Scribus/scribus/prefsmanager.cpp
1609,7 → 1609,10
}
if (dc.tagName()=="EXTERNAL")
{
setGhostscriptExecutable(dc.attribute("GS", "gs"));
int gsa1 = testGSAvailability(dc.attribute("GS", "gs"));
int gsa2 = testGSAvailability(ghostscriptExecutable());
if( (gsa1 == 0) || (gsa2 != 0) )
setGhostscriptExecutable(dc.attribute("GS", "gs"));
appPrefs.gs_AntiAliasText = static_cast<bool>(dc.attribute("AlphaText", "0").toInt());
appPrefs.gs_AntiAliasGraphics = static_cast<bool>(dc.attribute("AlphaGraphics", "0").toInt());
appPrefs.gs_Resolution = dc.attribute("Resolution", "72").toInt();
/branches/Version133x/Scribus/scribus/gsutil.h
41,6 → 41,7
int SCRIBUS_API callGS(const QString& args_in, const QString device="");
int SCRIBUS_API convertPS2PS(QString in, QString out, const QStringList& opts, int level);
int SCRIBUS_API testGSAvailability( void );
int SCRIBUS_API testGSAvailability( QString gsPath );
int SCRIBUS_API testGSDeviceAvailability( QString device );
/*! \brief Return gs version. If gs couldn't be found or there was a problem parsing output, return false
(in which case minor and major have undefined values).
/branches/Version133x/Scribus/scribus/gsutil.cpp
221,7 → 221,14
{
QStringList args;
PrefsManager* prefsManager = PrefsManager::instance();
args.append( getShortPathName(prefsManager->ghostscriptExecutable()) );
int ret = testGSAvailability(prefsManager->ghostscriptExecutable());
return ret;
}
 
int testGSAvailability( QString gsPath )
{
QStringList args;
args.append( getShortPathName(gsPath) );
args.append( "-h" );
int ret = System( args );
return ret;