two small fixes from John

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2316 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-07-24 10:56:03 +00:00
parent cb8bb668e7
commit 31a83403af
3 changed files with 9 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2001-07-23 John Levon <moz@compsoc.man.ac.uk>
* FormCharacter.C: disable resizing as it doesn't work
* FormPreamble.C: allow to copy-paste from RO preamble by
enabling editing.
2001-07-20 Jürgen Spitzmüller <juergen.sp@t-online.de>
* forms/form_citation.fd: resized form to fit on a 800x600 screen.

View File

@ -45,6 +45,8 @@ void FormCharacter::build()
{
dialog_.reset(build_character());
fl_set_form_maxsize(dialog_->form, minw_, minh_);
vector<FamilyPair> const family = getFamilyData();
vector<SeriesPair> const series = getSeriesData();
vector<ShapePair> const shape = getShapeData();

View File

@ -35,7 +35,6 @@ void FormPreamble::build()
bc().setOK(dialog_->button_ok);
bc().setApply(dialog_->button_apply);
bc().setCancel(dialog_->button_cancel);
bc().addReadOnly(dialog_->input_preamble);
}
@ -48,11 +47,4 @@ void FormPreamble::apply()
void FormPreamble::update()
{
fl_set_input(dialog_->input_preamble, controller().params().c_str());
bool const enable = (!controller().isReadonly());
setEnabled(dialog_->input_preamble, enable);
setEnabled(dialog_->button_ok, enable);
setEnabled(dialog_->button_apply, enable);
}