lyx_mirror/src/frontends/qt4/InsetDialog.h
Abdelrazak Younes 1c188f022c * Dialog:
- transfer ans simplify a bit the CheckedLineEdit class from ButtonController.

* InsetDialog:
- Pimpl private data
- applyView(): now a slot, check widget before applying.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33350 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-07 20:25:53 +00:00

63 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file InsetDialog.h
* 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.
*/
#ifndef INSET_DIALOG_H
#define INSET_DIALOG_H
#include "DialogView.h"
#include "qt_i18n.h"
namespace lyx {
class Inset;
namespace frontend {
class InsetDialog : public DialogView
{
Q_OBJECT
public:
InsetDialog(GuiView & lv, InsetCode code, FuncCode creation_code,
char const * name, char const * display_name);
/// \name DialogView inherited methods
//@{
void updateView();
void dispatchParams() {}
bool isBufferDependent() const { return true; }
bool canApply() const { return true; }
//@}
protected Q_SLOTS:
void applyView();
void on_newPB_clicked();
void on_closePB_clicked();
protected:
///
virtual void paramsToDialog(Inset const *) = 0;
///
virtual docstring dialogToParams() const = 0;
private:
/// pimpl
struct Private;
Private * d;
};
} // namespace frontend
} // namespace lyx
#endif // INSET_DIALOG_H