]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormShowFile.C
(Rob Lahaye) Remove redundant "LyX:" from title.
[lyx.git] / src / frontends / xforms / FormShowFile.C
index 9e1f22f196745b72fe80c7418cfb6bf243eb8e36..d348e1273a39c816c0ba1b4e675641d15ab7cf3a 100644 (file)
@@ -1,25 +1,26 @@
 /**
  * \file FormShowFile.C
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Herbert Voss, voss@perce.de
+ * \author Herbert Voss
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "xformsBC.h"
 #include "ControlShowFile.h"
 #include "FormShowFile.h"
-#include "form_browser.h"
+#include "forms/form_browser.h"
 #include "gettext.h"
+#include "lyx_forms.h"
+
 
-FormShowFile::FormShowFile(ControlShowFile & c)
-       : FormCB<ControlShowFile, FormBrowser>(c, string())
+FormShowFile::FormShowFile(Dialog & parent)
+       : FormController<ControlShowFile, FormBrowser>(parent, _("Show File"))
 {}
 
 
@@ -27,9 +28,12 @@ void FormShowFile::update()
 {
        fl_hide_object(dialog_->button_update);
        fl_clear_browser(dialog_->browser);
+
        // courier medium
        fl_set_browser_fontstyle(dialog_->browser,FL_FIXED_STYLE);
-       fl_set_form_title(dialog_->form, controller().getFileName().c_str());
+
+       string const title = controller().getFileName();
+       setTitle(title);
 
        string const contents = controller().getFileContents();
        if (contents.empty())