Jean-Marc Lasgouttes wrote:

> 
> When I have errors in latex, the nice errors dialog pops up. If I
> close it, how can I get it back? I cannot find it in the menus.
> 
> Where should it be added? Tools? Documents? View?
> 
> JMarc

It looks like the same dialog is used for multiple different cases:

    case LFUN_UPDATE:
            Exporter::Export(owner->buffer(), argument, true);
            view()->showErrorList(BufferFormat(*owner->buffer()));
            break;

    case LFUN_PREVIEW:
            Exporter::Preview(owner->buffer(), argument);
            view()->showErrorList(BufferFormat(*owner->buffer()));
            break;

    case LFUN_BUILDPROG:
            Exporter::Export(owner->buffer(), "program", true);
            view()->showErrorList(_("Build"));
            break;

    case LFUN_RUNCHKTEX:
            owner->buffer()->runChktex();
            view()->showErrorList(_("ChkTeX"));
            break;

    case LFUN_EXPORT:
            if (argument == "custom")
                owner->getDialogs().show("sendto");
            else {
                Exporter::Export(owner->buffer(), argument, false);
                view()->showErrorList(BufferFormat(*owner->buffer()));
            }
            break;


Related question. Is errorlist_ *really* a member of the BufferView and 
not LyXText or Buffer? Seems to me that this is a throw-back to the days 
of InsetError.

void BufferView::showErrorList(string const & action) const
{
        if (getErrorList().size()) {
            string const title = bformat(_("LyX: %1$s errors (%2$s)"),
                action, buffer()->fileName());
            owner()->getDialogs().show("errorlist", title);
            pimpl_->errorlist_.clear();
        }
}


ErrorList const & BufferView::getErrorList() const
{
        return pimpl_->errorlist_;
}


-- 
Angus

Reply via email to