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