#include "GuiDialog.h"
#include "ui_TexinfoUi.h"
-#include "frontend_helpers.h"
-
-#include <map>
-#include <vector>
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,
+ BibType,
+ BbxType,
+ CbxType,
+ DummyLastType
+ };
public 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; }
///
///
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];
};