mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
43c09d7234
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40351 a592a061-630c-0410-9148-cb99ea01b6c8
82 lines
1.5 KiB
C++
82 lines
1.5 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \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.
|
|
*/
|
|
|
|
#ifndef GUITEXINFO_H
|
|
#define GUITEXINFO_H
|
|
|
|
#include "GuiDialog.h"
|
|
#include "ui_TexinfoUi.h"
|
|
#include "qt_helpers.h"
|
|
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
///
|
|
GuiTexInfo(GuiView & lv);
|
|
/// the file extensions. order matters in GuiTexInfo::fileType()
|
|
enum TexFileType { ClsType = 0, StyType, BstType, BibType, 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 clearParams() {}
|
|
///
|
|
void dispatchParams() {}
|
|
///
|
|
bool isBufferDependent() const { return false; }
|
|
///
|
|
void apply() {}
|
|
|
|
///
|
|
void updateStyles(TexFileType);
|
|
///
|
|
void updateStyles();
|
|
///
|
|
bool warningPosted_;
|
|
///
|
|
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
|
|
|
|
#endif // GUITEXINFO_H
|