X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiTexinfo.h;h=8d9116a1dc1c2a507ab8cb5e29d76899ab5d3ba4;hb=59e0cb8f85f0d2f985b31532dd3308315659c662;hp=59d2143369ceb2e5dee23a6865e0ab56857b3e05;hpb=77821e11c1543d9049a15d7a13b36abf6aa4aa5a;p=lyx.git diff --git a/src/frontends/qt4/GuiTexinfo.h b/src/frontends/qt4/GuiTexinfo.h index 59d2143369..8d9116a1dc 100644 --- a/src/frontends/qt4/GuiTexinfo.h +++ b/src/frontends/qt4/GuiTexinfo.h @@ -17,9 +17,6 @@ #include "ui_TexinfoUi.h" #include "qt_helpers.h" -#include -#include - namespace lyx { namespace frontend { @@ -30,9 +27,9 @@ class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi public: /// - GuiTexInfo(LyXView & lv); + GuiTexInfo(GuiView & lv); /// the file extensions. order matters in GuiTexInfo::fileType() - enum TexFileType { ClsType, StyType, BstType }; + enum TexFileType { ClsType = 0, StyType, BstType, BibType, 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 ContentsType; - std::map texdata_; + QStringList texdata_[DummyLastType]; };