]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiTexinfo.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiTexinfo.h
index 8231f1c210d1fb79b7a14b0caa99e1e9864bb08e..c190a4bc4b77416f78cd675f730aec34e7cabcdf 100644 (file)
@@ -17,9 +17,6 @@
 #include "ui_TexinfoUi.h"
 #include "qt_helpers.h"
 
-#include <map>
-#include <vector>
-
 
 namespace lyx {
 namespace frontend {
@@ -32,7 +29,7 @@ public:
        ///
        GuiTexInfo(GuiView & lv);
        /// the file extensions. order matters in GuiTexInfo::fileType()
-       enum TexFileType { ClsType, StyType, BstType };
+       enum TexFileType { ClsType = 0, StyType, BstType, DummyLastType };
 
 public Q_SLOTS:
        ///
@@ -49,16 +46,6 @@ private Q_SLOTS:
        void enableViewPB();
 
 private:
-       ///
-       void closeEvent(QCloseEvent * e);
-       ///
-       void updateStyles(TexFileType);
-       ///
-       void updateStyles();
-       ///
-       bool warningPosted;
-       ///
-       TexFileType activeStyle;
        /// Nothing to initialise in this case.
        bool initialiseParams(std::string const &) { return true; }
        ///
@@ -70,15 +57,21 @@ private:
        ///
        void apply() {}
 
+       ///
+       void updateStyles(TexFileType);
+       ///
+       void updateStyles();
+       ///
+       bool warningPosted_;
+       ///
+       TexFileType activeStyle_;
+
        /// show contents af a file
-       void viewFile(std::string const & filename) const;
+       void viewFile(QString const & filename) const;
        /// show all classoptions
-       std::string classOptions(std::string const & filename) const;
-       /// return file type as string
-       std::string fileType(TexFileType type) const;
+       //std::string classOptions(std::string const & filename) const;
 
-       typedef std::vector<std::string> ContentsType;
-       std::map<TexFileType, ContentsType> texdata_;
+       QStringList texdata_[DummyLastType];
 };