Fix unintended renaming

pull/1/head
Timothy Pearson 12 years ago
parent 9ee4cc50bb
commit 994762d18b

@ -191,14 +191,14 @@ void KileWidgetPreviewConfig::writeConfig(void)
void KileWidgetPreviewConfig::setupSeparateWindow() void KileWidgetPreviewConfig::setupSeparateWindow()
{ {
// get all possible tasks for QuickPreview in a separate window // get all possible tasks for QuickPreview in a separate window
TQStringList tastdelist; TQStringList tasklist;
m_preview->getTaskList(tastdelist); m_preview->getTaskList(tasklist);
// split them into group and combobox entry // split them into group and combobox entry
m_combobox->clear(); m_combobox->clear();
for ( uint i=0; i<tastdelist.count(); ++i ) for ( uint i=0; i<tasklist.count(); ++i )
{ {
TQStringList list = TQStringList::split("=",tastdelist[i]); TQStringList list = TQStringList::split("=",tasklist[i]);
if ( m_config->hasGroup( list[0] ) ) if ( m_config->hasGroup( list[0] ) )
{ {
m_combobox->insertItem( list[1] ); m_combobox->insertItem( list[1] );

@ -81,11 +81,11 @@ void PreviewWidget::showActivePreview(const TQString &text,const TQString &textf
// set parameter for these tools // set parameter for these tools
TQString tastdelist,tool,toolcfg,extension; TQString tasklist,tool,toolcfg,extension;
if (conversiontype == pwConvert ) if (conversiontype == pwConvert )
{ {
m_conversionTool = "convert"; m_conversionTool = "convert";
tastdelist = "PreviewPDFLaTeX,,,,,png"; tasklist = "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";
tastdelist = "PreviewLaTeX,DVItoPS,dvi2eps,,,png"; tasklist = "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";
tastdelist = "PreviewLaTeX,,,,,png"; tasklist = "PreviewLaTeX,,,,,png";
tool = "DVItoPNG"; tool = "DVItoPNG";
toolcfg = TQString(); toolcfg = TQString();
extension = "dvi"; extension = "dvi";
} }
if ( ! m_info->quickPreview()->run(text, textfilename, startrow, tastdelist) ) if ( ! m_info->quickPreview()->run(text, textfilename, startrow, tasklist) )
return; return;
KileTool::Base *pngConverter = m_info->toolFactory()->create(tool); KileTool::Base *pngConverter = m_info->toolFactory()->create(tool);

@ -146,10 +146,10 @@ void QuickPreview::previewMathgroup(Kate::Document *doc)
//////////////////// run quick preview //////////////////// //////////////////// run quick preview ////////////////////
void QuickPreview::getTaskList(TQStringList &tastdelist) void QuickPreview::getTaskList(TQStringList &tasklist)
{ {
tastdelist.clear(); tasklist.clear();
tastdelist << "Tool/ViewDVI/Embedded Viewer=" + m_taskList[0] tasklist << "Tool/ViewDVI/Embedded Viewer=" + m_taskList[0]
<< "Tool/ViewDVI/KDVI Unique=" + m_taskList[1] << "Tool/ViewDVI/KDVI Unique=" + m_taskList[1]
<< "Tool/ViewPS/Embedded Viewer=" + m_taskList[2] << "Tool/ViewPS/Embedded Viewer=" + m_taskList[2]
<< "Tool/ViewPS/KGhostView=" + m_taskList[3] << "Tool/ViewPS/KGhostView=" + m_taskList[3]

@ -63,7 +63,7 @@ public:
* @return true if method succeeds, else false * @return true if method succeeds, else false
*/ */
bool run (const TQString &text, const TQString &textfilename, int startrow, const TQString &spreviewlist); bool run (const TQString &text, const TQString &textfilename, int startrow, const TQString &spreviewlist);
void getTaskList(TQStringList &tastdelist); void getTaskList(TQStringList &tasklist);
/** /**
* QuickPreview uses temporary files for processing the output. * QuickPreview uses temporary files for processing the output.

Loading…
Cancel
Save