]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormERT.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormERT.C
index e81bd150c7c80821cef425d31175e4fac8d3c297..56deb495f5857e7fa4d6136af4bea329525295c5 100644 (file)
@@ -1,14 +1,11 @@
-/* This file is part of
- * ====================================================== 
+/**
+ * \file xforms/FormERT.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Jürgen Vigna
  *
- *           Copyright 2001 The LyX Team.
- *
- * ======================================================
- *
- * \file FormERT.C
- * \author Jürgen Vigna, jug@sad.it
+ * 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);
@@ -60,15 +58,15 @@ void FormERT::apply()
 
 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;
-    }
+       }
 }