2 * \file InsetDialog.cpp
\r
3 * This file is part of LyX, the document processor.
\r
4 * Licence details can be found in the file COPYING.
\r
6 * \author Abdelrazak Younes
\r
8 * Full author contact details are available in file CREDITS.
\r
13 #include "InsetDialog.h"
\r
15 #include "qt_helpers.h"
\r
18 #include "buffer_funcs.h"
\r
19 #include "BufferParams.h"
\r
20 #include "BufferView.h"
\r
22 #include "FuncRequest.h"
\r
24 #include "support/debug.h"
\r
25 #include "support/lstrings.h"
\r
28 using namespace std;
\r
29 using namespace lyx::support;
\r
32 namespace frontend {
\r
34 /////////////////////////////////////////////////////////////////
\r
38 /////////////////////////////////////////////////////////////////
\r
41 InsetDialog::InsetDialog(GuiView & lv, InsetCode code,
\r
42 QString const & name, QString const & title)
\r
43 : DialogView(lv, name, title), code_(code)
\r
48 void InsetDialog::on_closePB_clicked()
\r
54 void InsetDialog::applyView()
\r
56 Inset const * i = inset(code_);
\r
60 docstring const argument = dialogToParams();
\r
61 if (!i->validateModifyArgument(argument))
\r
64 dispatch(FuncRequest(LFUN_INSET_MODIFY, argument));
\r
68 void InsetDialog::updateView()
\r
70 Inset const * i = inset(code_);
\r
77 } // namespace frontend
\r
80 #include "moc_InsetDialog.cpp"
\r