2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiERT.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 John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIERT_H
|
|
|
|
#define GUIERT_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
#include "InsetParamsWidget.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_ERTUi.h"
|
2007-04-24 13:47:33 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
class GuiERT : public InsetParamsWidget, public Ui::ERTUi
|
2007-08-31 22:16:11 +00:00
|
|
|
{
|
2007-04-24 13:47:33 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:52:35 +00:00
|
|
|
|
2007-04-24 13:47:33 +00:00
|
|
|
public:
|
2010-02-15 23:17:45 +00:00
|
|
|
GuiERT(QWidget * parent = 0);
|
2007-04-24 13:47:33 +00:00
|
|
|
|
2007-10-05 21:06:08 +00:00
|
|
|
private:
|
2010-02-15 23:17:45 +00:00
|
|
|
/// \name InsetParamsWidget inherited methods
|
2010-02-07 21:41:39 +00:00
|
|
|
//@{
|
2010-02-18 07:56:38 +00:00
|
|
|
InsetCode insetCode() const { return ERT_CODE; }
|
|
|
|
FuncCode creationCode() const { return LFUN_INSET_INSERT; }
|
2016-08-26 09:35:12 +00:00
|
|
|
QString dialogTitle() const { return qt_("TeX Mode Inset Settings"); }
|
2010-02-07 21:41:39 +00:00
|
|
|
void paramsToDialog(Inset const *);
|
|
|
|
docstring dialogToParams() const;
|
2015-04-02 15:03:08 +00:00
|
|
|
bool checkWidgets(bool readonly) const;
|
2010-02-07 21:41:39 +00:00
|
|
|
//@}
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIERT_H
|