- src/frontends/Toolbars.h: control displaying of CT toolbar with a parameter
- src/frontends/Toolbars.C: control displaying of CT toolbar with a parameter
- src/frontends/LyXView.C : show CT toolbar
- src/ToolbarBackend.C : add CT toolbar to default.ui as REVIEW
- lib/ui/default.ui : add CT toolbar to default.ui
- src/ToolbarBackend.h : add CT toolbar type REVIEW
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15598
a592a061-630c-0410-9148-
cb99ea01b6c8
"table" "table,bottom"
"math" "math,bottom"
"minibuffer" "off,bottom"
+ "review" "review,top"
End
flag = MATH;
else if (!compare_ascii_no_case(*cit, "table"))
flag = TABLE;
+ else if (!compare_ascii_no_case(*cit, "review"))
+ flag = REVIEW;
else if (!compare_ascii_no_case(*cit, "top"))
flag = TOP;
else if (!compare_ascii_no_case(*cit, "bottom"))
TOP = 16, //< show at top
BOTTOM = 32, //< show at bottom
LEFT = 64, //< show at left
- RIGHT = 128 //< show at right
+ RIGHT = 128, //< show at right
+ REVIEW = 256 //< shown when change tracking is enabled
};
/// a toolbar
bool const math = work_area_->bufferView().cursor().inMathed();
bool const table =
lyx::getStatus(FuncRequest(LFUN_LAYOUT_TABULAR)).enabled();
- toolbars_->update(math, table);
+ // TODO: How should we handle the CT toolbar?
+ bool const change_tracking = true;
+
+ toolbars_->update(math, table, change_tracking);
// update redaonly status of open dialogs. This could also be in
// updateMenubar(), but since updateToolbars() and updateMenubar()
// are always called together it is only here.
}
-void Toolbars::update(bool in_math, bool in_table)
+void Toolbars::update(bool in_math, bool in_table, bool change_tracking)
{
update();
displayToolbar(*cit, in_math);
else if (cit->flags & ToolbarBackend::TABLE)
displayToolbar(*cit, in_table);
+ else if (cit->flags & ToolbarBackend::REVIEW)
+ displayToolbar(*cit, change_tracking);
}
}
/// Show/hide the named toolbar.
void display(std::string const & name, bool show);
+
/// Update the state of the toolbars.
- void update(bool in_math, bool in_table);
+ void update(bool in_math, bool in_table, bool change_tracking);
/// Select the right layout in the combox.
void setLayout(std::string const & layout);