X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiNote.cpp;h=adbb6e7425f09bbd3893116d2cc3cc34fcbe03cc;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=4f152947558f7611f93ea6128665aab45e9576f0;hpb=9383f4c3c6f9cfab2d658701ba66e2b54cd68bea;p=lyx.git diff --git a/src/frontends/qt4/GuiNote.cpp b/src/frontends/qt4/GuiNote.cpp index 4f15294755..adbb6e7425 100644 --- a/src/frontends/qt4/GuiNote.cpp +++ b/src/frontends/qt4/GuiNote.cpp @@ -4,7 +4,7 @@ * Licence details can be found in the file COPYING. * * \author Angus Leeming - * \author Jürgen Spitzmüller + * \author Jürgen Spitzmüller * * Full author contact details are available in file CREDITS. */ @@ -17,18 +17,15 @@ #include "insets/InsetNote.h" -#include - using namespace std; namespace lyx { namespace frontend { GuiNote::GuiNote(GuiView & lv) - : GuiDialog(lv, "note") + : GuiDialog(lv, "note", qt_("Note Settings")) { setupUi(this); - setViewTitle(_("Note Settings")); connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose())); @@ -43,13 +40,6 @@ GuiNote::GuiNote(GuiView & lv) } -void GuiNote::closeEvent(QCloseEvent * e) -{ - slotClose(); - e->accept(); -} - - void GuiNote::change_adaptor() { changed(); @@ -85,7 +75,7 @@ void GuiNote::applyView() bool GuiNote::initialiseParams(string const & data) { - InsetNoteMailer::string2params(data, params_); + InsetNote::string2params(data, params_); return true; } @@ -98,7 +88,7 @@ void GuiNote::clearParams() void GuiNote::dispatchParams() { - dispatch(FuncRequest(getLfun(), InsetNoteMailer::params2string(params_))); + dispatch(FuncRequest(getLfun(), InsetNote::params2string(params_))); } @@ -108,4 +98,4 @@ Dialog * createGuiNote(GuiView & lv) { return new GuiNote(lv); } } // namespace frontend } // namespace lyx -#include "GuiNote_moc.cpp" +#include "moc_GuiNote.cpp"