Update the GuiLabel view when the document is read-only. Also disable the text field.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32696 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-12-31 16:47:36 +00:00
parent c8dd86534d
commit 0a7705a673
2 changed files with 11 additions and 0 deletions

View File

@ -79,6 +79,13 @@ void GuiLabel::applyView()
}
void GuiLabel::enableView(bool enable)
{
keywordED->setEnabled(enable);
}
bool GuiLabel::isValid()
{
return !keywordED->text().isEmpty();

View File

@ -47,6 +47,10 @@ private:
void dispatchParams();
///
bool isBufferDependent() const { return true; }
///
void enableView(bool enable);
///
bool canApply() const { return true; }
private:
///