/**
- * \file FormERT.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * \file xforms/FormERT.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Jürgen Vigna, jug@sad.it
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "xformsBC.h"
#include "ControlERT.h"
#include "FormERT.h"
-#include "form_ert.h"
+#include "forms/form_ert.h"
#include "support/lstrings.h"
#include "helper_funcs.h"
#include "debug.h"
+#include FORMS_H_LOCATION
-typedef FormCB<ControlERT, FormDB<FD_form_ert> > base_class;
+typedef FormCB<ControlERT, FormDB<FD_ert> > base_class;
-FormERT::FormERT(ControlERT & c)
- : base_class(c, _("ERT Options"))
+FormERT::FormERT()
+ : base_class(_("ERT Options"))
{}
void FormERT::build()
{
- dialog_.reset(build_ert());
+ dialog_.reset(build_ert(this));
// Manage the ok, apply and cancel/close buttons
bc().setOK(dialog_->button_ok);
bc().setApply(dialog_->button_apply);
- bc().setCancel(dialog_->button_cancel);
+ bc().setCancel(dialog_->button_close);
bc().addReadOnly(dialog_->radio_open);
bc().addReadOnly(dialog_->radio_collapsed);
void FormERT::update()
{
- switch (controller().params().status) {
- case InsetERT::Open:
+ switch (controller().params().status) {
+ case InsetERT::Open:
fl_set_button(dialog_->radio_open, 1);
break;
- case InsetERT::Collapsed:
+ case InsetERT::Collapsed:
fl_set_button(dialog_->radio_collapsed, 1);
break;
- case InsetERT::Inlined:
+ case InsetERT::Inlined:
fl_set_button(dialog_->radio_inlined, 1);
break;
- }
+ }
}