#include "insets/InsetLine.h"
+#include "support/debug.h"
#include "support/gettext.h"
#include "support/lstrings.h"
}
-bool GuiLine::checkWidgets() const
+bool GuiLine::checkWidgets(bool readonly) const
{
+ WidthLE->setReadOnly(readonly);
+ HeightLE->setReadOnly(readonly);
+ OffsetLE->setReadOnly(readonly);
+ OffsetUnitCO->setEnabled(!readonly);
+ HeightUnitCO->setEnabled(!readonly);
+ WidthUnitCO->setEnabled(!readonly);
if (!InsetParamsWidget::checkWidgets())
return false;
// FIXME: this should be handled in unsignedGlueLengthValidator!