|
|
|
@ -81,11 +81,11 @@ void PreviewWidget::showActivePreview(const TQString &text,const TQString &textf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set parameter for these tools
|
|
|
|
|
TQString tastdelist,tool,toolcfg,extension;
|
|
|
|
|
TQString tasklist,tool,toolcfg,extension;
|
|
|
|
|
if (conversiontype == pwConvert )
|
|
|
|
|
{
|
|
|
|
|
m_conversionTool = "convert";
|
|
|
|
|
tastdelist = "PreviewPDFLaTeX,,,,,png";
|
|
|
|
|
tasklist = "PreviewPDFLaTeX,,,,,png";
|
|
|
|
|
tool = "Convert";
|
|
|
|
|
toolcfg = "pdf2png";
|
|
|
|
|
extension = "pdf";
|
|
|
|
@ -93,7 +93,7 @@ void PreviewWidget::showActivePreview(const TQString &text,const TQString &textf
|
|
|
|
|
else if (conversiontype == pwDvipsConvert )
|
|
|
|
|
{
|
|
|
|
|
m_conversionTool = "dvips/convert";
|
|
|
|
|
tastdelist = "PreviewLaTeX,DVItoPS,dvi2eps,,,png";
|
|
|
|
|
tasklist = "PreviewLaTeX,DVItoPS,dvi2eps,,,png";
|
|
|
|
|
tool = "Convert";
|
|
|
|
|
toolcfg = "eps2png";
|
|
|
|
|
extension = "eps";
|
|
|
|
@ -101,13 +101,13 @@ void PreviewWidget::showActivePreview(const TQString &text,const TQString &textf
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
m_conversionTool = "dvipng";
|
|
|
|
|
tastdelist = "PreviewLaTeX,,,,,png";
|
|
|
|
|
tasklist = "PreviewLaTeX,,,,,png";
|
|
|
|
|
tool = "DVItoPNG";
|
|
|
|
|
toolcfg = TQString();
|
|
|
|
|
extension = "dvi";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( ! m_info->quickPreview()->run(text, textfilename, startrow, tastdelist) )
|
|
|
|
|
if ( ! m_info->quickPreview()->run(text, textfilename, startrow, tasklist) )
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
KileTool::Base *pngConverter = m_info->toolFactory()->create(tool);
|
|
|
|
|