]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBibitem.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormBibitem.C
index 6057263184d32652140ee226b5fc86598b261acb..515120b334aed552984f8af8faf2c9821215e9b8 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \file FormBibitem.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming, a.leeming@ic.ac.uk
- * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Angus Leeming 
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifdef __GNUG__
@@ -15,6 +17,7 @@
 #include "xformsBC.h"
 #include "ControlBibitem.h"
 #include "FormBibitem.h"
+#include "Tooltips.h"
 #include "forms/form_bibitem.h"
 #include FORMS_H_LOCATION
 #include "gettext.h"
@@ -22,8 +25,8 @@
 
 typedef FormCB<ControlBibitem, FormDB<FD_bibitem> > base_class;
 
-FormBibitem::FormBibitem(ControlBibitem & c)
-       : base_class(c, _("Bibliography Entry"))
+FormBibitem::FormBibitem()
+       : base_class(_("Bibliography Entry"))
 {}
 
 
@@ -43,6 +46,12 @@ void FormBibitem::build()
 
        bc().addReadOnly(dialog_->input_key);
        bc().addReadOnly(dialog_->input_label);
+
+       // set up the tooltips
+       string str = _("Key used within LyX document.");
+       tooltips().init(dialog_->input_key, str);
+       str = _("Label used for final output.");
+       tooltips().init(dialog_->input_label, str);
 }