mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
GuiInfo: implement checkWidgets.
This commit is contained in:
parent
f819ca6c6f
commit
82b392eb0d
@ -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 frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ private:
|
|||||||
FuncCode creationCode() const { return LFUN_INFO_INSERT; }
|
FuncCode creationCode() const { return LFUN_INFO_INSERT; }
|
||||||
void paramsToDialog(Inset const *);
|
void paramsToDialog(Inset const *);
|
||||||
docstring dialogToParams() const;
|
docstring dialogToParams() const;
|
||||||
|
bool checkWidgets(bool readonly = false) const;
|
||||||
//@}
|
//@}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user