X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiTexinfo.h;h=c190a4bc4b77416f78cd675f730aec34e7cabcdf;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=34de13dab065757755d49a7131d6aea09d1a6d35;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiTexinfo.h b/src/frontends/qt4/GuiTexinfo.h index 34de13dab0..c190a4bc4b 100644 --- a/src/frontends/qt4/GuiTexinfo.h +++ b/src/frontends/qt4/GuiTexinfo.h @@ -1,10 +1,11 @@ // -*- C++ -*- /** - * \file GuiTexinfo.h + * \file GuiTexInfo.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Edwin Leuven + * \author Herbert Voß * * Full author contact details are available in file CREDITS. */ @@ -13,49 +14,67 @@ #define GUITEXINFO_H #include "GuiDialog.h" -#include "ControlTexinfo.h" #include "ui_TexinfoUi.h" +#include "qt_helpers.h" -#include -#include namespace lyx { namespace frontend { -class GuiTexinfoDialog : public GuiDialog, public Ui::TexinfoUi +class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi { Q_OBJECT public: - GuiTexinfoDialog(LyXView & lv); + /// + GuiTexInfo(GuiView & lv); + /// the file extensions. order matters in GuiTexInfo::fileType() + enum TexFileType { ClsType = 0, StyType, BstType, DummyLastType }; public Q_SLOTS: + /// void updateView(); private Q_SLOTS: + /// void change_adaptor(); + /// void rescanClicked(); + /// void viewClicked(); + /// void enableViewPB(); private: + /// Nothing to initialise in this case. + bool initialiseParams(std::string const &) { return true; } /// - void closeEvent(QCloseEvent * e); + void clearParams() {} /// - ControlTexinfo & controller() const; + void dispatchParams() {} /// - void updateStyles(ControlTexinfo::texFileSuffix); + bool isBufferDependent() const { return false; } /// - void updateStyles(); + void apply() {} + + /// + void updateStyles(TexFileType); /// - bool warningPosted; + void updateStyles(); /// - ControlTexinfo::texFileSuffix activeStyle; + bool warningPosted_; /// - typedef std::vector ContentsType; - std::map texdata_; + TexFileType activeStyle_; + + /// show contents af a file + void viewFile(QString const & filename) const; + /// show all classoptions + //std::string classOptions(std::string const & filename) const; + + QStringList texdata_[DummyLastType]; }; + } // namespace frontend } // namespace lyx