X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiTexinfo.h;h=c190a4bc4b77416f78cd675f730aec34e7cabcdf;hb=5a46224f7311067cda747e0cae32d22dd919f179;hp=cab48828b58a076d1e995103aa8154f8837c05e4;hpb=5ac488927c44fa8a3407eab91e8b17d5f48f37c0;p=lyx.git diff --git a/src/frontends/qt4/GuiTexinfo.h b/src/frontends/qt4/GuiTexinfo.h index cab48828b5..c190a4bc4b 100644 --- a/src/frontends/qt4/GuiTexinfo.h +++ b/src/frontends/qt4/GuiTexinfo.h @@ -15,24 +15,21 @@ #include "GuiDialog.h" #include "ui_TexinfoUi.h" -#include "frontend_helpers.h" - -#include -#include +#include "qt_helpers.h" namespace lyx { namespace frontend { -class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi, public Controller +class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi { Q_OBJECT 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, DummyLastType }; public Q_SLOTS: /// @@ -49,18 +46,6 @@ private Q_SLOTS: void enableViewPB(); private: - /// - void closeEvent(QCloseEvent * e); - /// - Controller & controller() { return *this; } - /// - void updateStyles(TexFileType); - /// - void updateStyles(); - /// - bool warningPosted; - /// - TexFileType activeStyle; /// Nothing to initialise in this case. bool initialiseParams(std::string const &) { return true; } /// @@ -72,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]; };