]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormShowFile.C
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormShowFile.C
index 3df6d3a831eadaa7d2cca82e8b7fb388291489b6..dc5bb6e7774ba9f725f7a0494609ea84a0c8fae8 100644 (file)
@@ -1,16 +1,15 @@
 /**
  * \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"
@@ -20,8 +19,8 @@
 #include FORMS_H_LOCATION
 
 
-FormShowFile::FormShowFile()
-       : FormCB<ControlShowFile, FormBrowser>(string())
+FormShowFile::FormShowFile(Dialog & parent)
+       : FormController<ControlShowFile, FormBrowser>(parent, _("Show File"))
 {}
 
 
@@ -29,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 = "LyX: " + controller().getFileName();
+       fl_set_form_title(dialog_->form, title.c_str());
 
        string const contents = controller().getFileContents();
        if (contents.empty())