2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiTexinfo.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTEXINFO_H
|
|
|
|
#define QTEXINFO_H
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
#include "GuiDialogView.h"
|
2006-03-05 17:24:44 +00:00
|
|
|
#include "ControlTexinfo.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_TexinfoUi.h"
|
2007-04-24 15:10:14 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-08-31 05:53:55 +00:00
|
|
|
class GuiTexinfo;
|
2007-04-24 15:10:14 +00:00
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiTexinfoDialog : public QDialog, public Ui::TexinfoUi
|
|
|
|
{
|
2007-04-24 15:10:14 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiTexinfoDialog(GuiTexinfo * form);
|
2007-04-24 15:10:14 +00:00
|
|
|
public Q_SLOTS:
|
2007-09-03 20:28:26 +00:00
|
|
|
virtual void updateView();
|
2007-04-24 15:10:14 +00:00
|
|
|
protected Q_SLOTS:
|
|
|
|
virtual void change_adaptor();
|
|
|
|
virtual void rescanClicked();
|
|
|
|
virtual void viewClicked();
|
|
|
|
virtual void enableViewPB();
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiTexinfo * form_;
|
2007-04-24 15:10:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2007-08-31 22:16:11 +00:00
|
|
|
class GuiTexinfo : public GuiView<GuiTexinfoDialog>
|
|
|
|
{
|
2006-03-05 17:24:44 +00:00
|
|
|
public:
|
|
|
|
///
|
2007-08-31 05:53:55 +00:00
|
|
|
friend class GuiTexinfoDialog;
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2007-09-03 05:59:32 +00:00
|
|
|
GuiTexinfo(GuiDialog &);
|
2007-08-31 22:16:11 +00:00
|
|
|
/// parent controller
|
|
|
|
ControlTexinfo & controller()
|
|
|
|
{ return static_cast<ControlTexinfo &>(this->getController()); }
|
|
|
|
/// parent controller
|
|
|
|
ControlTexinfo const & controller() const
|
|
|
|
{ return static_cast<ControlTexinfo const &>(this->getController()); }
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
2007-09-03 20:28:26 +00:00
|
|
|
virtual void applyView() {}
|
2006-03-05 17:24:44 +00:00
|
|
|
/// update (do we need this?)
|
|
|
|
virtual void update_contents() {}
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
///
|
|
|
|
void updateStyles(ControlTexinfo::texFileSuffix);
|
|
|
|
///
|
|
|
|
void updateStyles();
|
|
|
|
///
|
|
|
|
bool warningPosted;
|
|
|
|
///
|
|
|
|
ControlTexinfo::texFileSuffix activeStyle;
|
|
|
|
///
|
|
|
|
typedef std::vector<std::string> ContentsType;
|
|
|
|
std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QTEXINFO_H
|