2010-01-30 11:15:05 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2010-02-15 23:17:45 +00:00
|
|
|
* \file InsetParamsDialog.h
|
2010-01-30 11:15:05 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Abdelrazak Younes
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
#ifndef INSET_PARAMS_DIALOG_H
|
|
|
|
#define INSET_PARAMS_DIALOG_H
|
2010-01-30 11:15:05 +00:00
|
|
|
|
|
|
|
#include "DialogView.h"
|
2010-02-15 23:17:45 +00:00
|
|
|
#include "ui_InsetParamsUi.h"
|
2010-01-30 11:15:05 +00:00
|
|
|
|
2010-01-30 15:30:49 +00:00
|
|
|
#include "qt_i18n.h"
|
|
|
|
|
2010-01-30 11:15:05 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
class Inset;
|
|
|
|
|
|
|
|
namespace frontend {
|
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
class InsetParamsWidget;
|
2010-01-30 15:30:49 +00:00
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
class InsetParamsDialog : public DialogView, public Ui::InsetParamsUi
|
2010-01-30 11:15:05 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2010-02-15 23:17:45 +00:00
|
|
|
InsetParamsDialog(GuiView & lv, InsetParamsWidget * widget);
|
|
|
|
~InsetParamsDialog();
|
|
|
|
|
|
|
|
///
|
|
|
|
void setInsetParamsWidget(InsetParamsWidget * widget);
|
2010-01-30 11:15:05 +00:00
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
protected Q_SLOTS:
|
2010-02-16 10:50:06 +00:00
|
|
|
void onWidget_changed();
|
2010-02-15 23:17:45 +00:00
|
|
|
void applyView();
|
|
|
|
void on_restorePB_clicked();
|
2010-02-19 20:44:59 +00:00
|
|
|
void on_newPB_clicked();
|
2010-02-15 23:17:45 +00:00
|
|
|
void on_okPB_clicked();
|
|
|
|
void on_applyPB_clicked();
|
|
|
|
void on_closePB_clicked();
|
|
|
|
void on_synchronizedViewCB_stateChanged(int state);
|
|
|
|
|
|
|
|
private:
|
2010-01-30 11:15:05 +00:00
|
|
|
/// \name DialogView inherited methods
|
|
|
|
//@{
|
|
|
|
void updateView();
|
|
|
|
void dispatchParams() {}
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
bool canApply() const { return true; }
|
2010-02-19 11:17:00 +00:00
|
|
|
bool initialiseParams(std::string const &);
|
2010-01-30 11:15:05 +00:00
|
|
|
//@}
|
2010-02-16 09:39:14 +00:00
|
|
|
///
|
|
|
|
void newInset();
|
2010-02-16 10:50:06 +00:00
|
|
|
///
|
2010-02-19 11:04:15 +00:00
|
|
|
void updateView(bool update_widget);
|
|
|
|
///
|
2010-02-16 10:50:06 +00:00
|
|
|
docstring checkWidgets(bool synchronized_view);
|
2010-02-07 20:25:53 +00:00
|
|
|
/// pimpl
|
|
|
|
struct Private;
|
|
|
|
Private * d;
|
2010-01-30 11:15:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
#endif // INSET_PARAMS_DIALOG_H
|