if (head.haschanged(OnlyFilename(ChangeExtension(file, ".idx")))) {
// no checks for now
lyxerr[Debug::LATEX] << "Running MakeIndex." << endl;
- if (lfun) lfun->dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
-// WriteStatus(minib, _("Running MakeIndex."));
+ if (lfun) {
+ lfun->dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
+ }
+
rerun = runMakeIndex(OnlyFilename(ChangeExtension(file, ".idx")));
}
// tags is found -> run bibtex and set rerun = true;
// no checks for now
lyxerr[Debug::LATEX] << "Running BibTeX." << endl;
- if (lfun) lfun->dispatch(LFUN_MESSAGE, _("Running BibTeX."));
- //WriteStatus(minib, _("Running BibTeX."));
+ if (lfun) {
+ lfun->dispatch(LFUN_MESSAGE, _("Running BibTeX."));
+ }
+
updateBibtexDependencies(head, bibtex_info);
rerun |= runBibTeX(bibtex_info);
- } else if (!had_depfile)
+ } else if (!had_depfile) {
/// If we run pdflatex on the file after running latex on it,
/// then we do not need to run bibtex, but we do need to
/// insert the .bib and .bst files into the .dep-pdf file.
updateBibtexDependencies(head, bibtex_info);
+ }
// 1
// we know on this point that latex has been run once (or we just
lfun->dispatch(LFUN_MESSAGE, str.str().c_str());
}
-// WriteStatus(minib,
-// string(_("LaTeX run number ")) + tostr(count));
this->operator()();
scanres = scanLogFile(terr);
if (scanres & ERRORS) {
if (head.haschanged(OnlyFilename(ChangeExtension(file, ".idx")))) {
// no checks for now
lyxerr[Debug::LATEX] << "Running MakeIndex." << endl;
- if (lfun) lfun->dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
- //WriteStatus(minib, _("Running MakeIndex."));
+ if (lfun) {
+ lfun->dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
+ }
+
rerun = runMakeIndex(OnlyFilename(ChangeExtension(file, ".idx")));
}
{
if (stored_) {
stored_ = false;
- fl_set_input(the_buffer, stored_input.c_str());
+ set_input(stored_input);
}
}
if (stored_) {
stored_timer.stop();
input = stored_input;
- fl_set_input(ob, input.c_str());
+ set_input(input);
stored_ = false;
}
if (hist_iter == history_->end()) {
// no further history
stored_set(input);
- fl_set_input(ob, _("[End of history]"));
+ set_input(_("[End of history]"));
} else {
- fl_set_input(ob, hist_iter->c_str());
+ set_input((*hist_iter));
}
return 1;
case XK_Up:
if (hist_iter == history_->begin()) {
// no further history
stored_set(input);
- fl_set_input(ob, _("[Beginning of history]"));
+ set_input(_("[Beginning of history]"));
} else {
--hist_iter;
- fl_set_input(ob, hist_iter->c_str());
+ set_input((*hist_iter));
}
return 1;
case 9:
// No matches
string const tmp = input + _(" [no match]");
stored_set(input);
- fl_set_input(ob, tmp.c_str());
+ set_input(tmp);
} else if (comp.size() == 1) {
// Perfect match
string const tmp =
comp[0] + _(" [sole completion]");
stored_set(comp[0]);
- fl_set_input(ob, tmp.c_str());
+ set_input(tmp);
} else {
// More that one match
// Find maximal avaliable prefix
}
test += tmp[test.length()];
}
- fl_set_input(ob, test.c_str());
+ set_input(test);
// How should the possible matches
// be visualized?
// no such func/item
stored_set(input);
string const tmp = input + _(" [no match]");
- fl_set_input(ob, tmp.c_str());
+ set_input(tmp);
} else {
#endif
// Return the inputted string
{
stored_set(input);
string const tmp = input + _(" [no match]");
- fl_set_input(ob, tmp.c_str());
+ set_input(tmp);
return 1;
}
}
void MiniBuffer::prepare()
{
text.erase();
- fl_set_input(the_buffer, "");
+ set_input("");
activate();
fl_set_focus_object(static_cast<XFormsView *>(owner_)->getForm(),
the_buffer);
obj->u_vdata = this;
obj->wantkey = FL_KEY_TAB;
- fl_set_input(the_buffer, text.c_str());
+ set_input(text);
return obj;
}
timer.restart();
string const ntext = strip(str);
if (!the_buffer->focus) {
- fl_set_input(the_buffer, ntext.c_str());
+ set_input(ntext);
text = ntext;
}
}
void MiniBuffer::activate()
{
fl_activate_object(the_buffer);
- fl_redraw_object(the_buffer);
+ redraw();
}
void MiniBuffer::deactivate()
{
- fl_redraw_object(the_buffer);
+ redraw();
fl_deactivate_object(the_buffer);
+ XFlush(fl_display);
}
void MiniBuffer::redraw()
{
fl_redraw_object(the_buffer);
+ XFlush(fl_display);
+}
+
+
+void MiniBuffer::set_input(string const & str)
+{
+ fl_set_input(the_buffer, str.c_str());
+ XFlush(fl_display);
}