GuiInfo: implement checkWidgets.

This commit is contained in:
Juergen Spitzmueller 2015-04-01 10:07:20 +02:00
parent f819ca6c6f
commit 82b392eb0d
2 changed files with 11 additions and 0 deletions

View File

@ -90,6 +90,16 @@ docstring GuiInfo::dialogToParams() const
}
bool GuiInfo::checkWidgets(bool readonly) const
{
nameLE->setReadOnly(readonly);
typeCO->setEnabled(!readonly);
if (!InsetParamsWidget::checkWidgets())
return false;
return !nameLE->text().isEmpty();
}
} // namespace frontend
} // namespace lyx

View File

@ -35,6 +35,7 @@ private:
FuncCode creationCode() const { return LFUN_INFO_INSERT; }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
bool checkWidgets(bool readonly = false) const;
//@}
};