Michael Gerz wrote: > Peter Kümmel wrote: > >> Ah, I've overlooked it, but it must be "review" "review,top" >> if not the flag ToolbarBackend::REVIEW will not be set on the >> CT toolbar. >> >> > No, it can stay "review" "off,top". Users are able to activate it at > run-time if they like it. >
Are you sure? How will following code work then? +void Toolbars::update(bool in_math, bool in_table, bool review) { update(); @@ -79,7 +79,7 @@ else if (cit->flags & ToolbarBackend::TABLE) displayToolbar(*cit, in_table); else if (cit->flags & ToolbarBackend::REVIEW) displayToolbar(*cit, review); } } The cit->flags will never get the REVIEW value. > (Before we start another discussion on optimal default values, let's see > what Bo has to offer) >>> I guess that you want to activate the toolbar if you are in CT mode. The >>> attached patch fixes this... >>> >> I also want to prepare the context sensitive solution and the "disable >> by menu" >> solution. But we still have to decide which way to go. >> >> > Can you think of another trigger for the review toolbar? > >>> void LyXView::updateToolbars() >>> { >>> - bool const math = work_area_->bufferView().cursor().inMathed(); >>> + bool const math = >>> + work_area_->bufferView().cursor().inMathed(); >>> bool const table = >>> lyx::getStatus(FuncRequest(LFUN_LAYOUT_TABULAR)).enabled(); >>> - // TODO: How should we handle the CT toolbar? >>> - bool const change_tracking = true; >>> + bool const review = >>> + lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).enabled() && >>> + lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onoff(true); >>> >> >> I don't like to see the CT toolbar all the time, but no problem, now >> we will wait for Po's comments/patch. >> >> > ??? > > The code snippet above activates the toolbar only if you are in CT mode. As I understand it the review value is useless without '"review" "review,top"'. Are I'm wrong? > > As said before, let's wait for Bo and his solution. > > Michael > > Peter