mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
1c188f022c
- 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
63 lines
1.1 KiB
C++
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
|