]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QTexinfo.C
Strip trailing whitespace.
[lyx.git] / src / frontends / qt2 / QTexinfo.C
index 5c2e006f733a71f3e544a41f3b133ad4edf1a2f1..71f40a4d680c57f98febb9c590868e6d24a76da9 100644 (file)
@@ -1,28 +1,25 @@
 /**
  * \file QTexinfo.C
- * Copyright 2002 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 Edwin Leuven <leuven@fee.uva.nl>
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#include <vector>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "ControlTexinfo.h"
 #include "QTexinfoDialog.h"
 #include "QTexinfo.h"
 #include "Qt2BC.h"
-#include "gettext.h"
+#include "qt_helpers.h"
 #include "helper_funcs.h"
 
 #include "support/lstrings.h"
+
 #include <qlistbox.h>
 #include <qpushbutton.h>
 #include <qcheckbox.h>
@@ -31,9 +28,10 @@ using std::vector;
 
 typedef Qt2CB<ControlTexinfo, Qt2DB<QTexinfoDialog> > base_class;
 
-QTexinfo::QTexinfo()
-       : base_class(_("LaTeX Information")), warningPosted(false), activeStyle(ControlTexinfo::cls)
 
+QTexinfo::QTexinfo()
+       : base_class(qt_("LyX: LaTeX Information")),
+         warningPosted(false), activeStyle(ControlTexinfo::cls)
 {
 }
 
@@ -51,9 +49,9 @@ void QTexinfo::build_dialog()
 void QTexinfo::updateStyles(ControlTexinfo::texFileSuffix whichStyle)
 {
        string const fstr =  controller().getContents(whichStyle, true);
-       
+
        switch (whichStyle) {
-           case ControlTexinfo::bst: 
+           case ControlTexinfo::bst:
                bst_ = getVectorFromString(fstr, "\n");
                break;
            case ControlTexinfo::cls:
@@ -71,7 +69,7 @@ void QTexinfo::updateStyles(ControlTexinfo::texFileSuffix whichStyle)
        vector<string> flist = getVectorFromString(str, "\n");
        for (vector<string>::const_iterator fitem = flist.begin();
                fitem != flist.end(); ++fitem) {
-               dialog_->fileList->insertItem((*fitem).c_str());
+               dialog_->fileList->insertItem(toqstr((*fitem)));
        }
 
        activeStyle = whichStyle;
@@ -82,9 +80,3 @@ void QTexinfo::updateStyles()
 {
        updateStyles(activeStyle);
 }
-
-
-
-
-
-