#include "insets/InsetNote.h"
-#include <QCloseEvent>
-
-using std::string;
-
+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()));
}
-void GuiNote::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiNote::change_adaptor()
{
changed();
bool GuiNote::initialiseParams(string const & data)
{
- InsetNoteMailer::string2params(data, params_);
+ InsetNote::string2params(data, params_);
return true;
}
void GuiNote::dispatchParams()
{
- dispatch(FuncRequest(getLfun(), InsetNoteMailer::params2string(params_)));
+ dispatch(FuncRequest(getLfun(), InsetNote::params2string(params_)));
}