From f64d7de0bf4b04a9d869b529992d0f39fc7bc8a3 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 15 Jul 2003 23:52:05 +0000 Subject: [PATCH] showInsetDialog() for note git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7287 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 3 +++ src/insets/ChangeLog | 4 ++++ src/insets/insetnote.C | 7 +++++++ src/insets/insetnote.h | 2 ++ src/lyxfunc.C | 3 +++ 5 files changed, 19 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index b3f164e174..acdf4d48c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2003-07-16 John Levon + + * lyxfunc.C: support LFUN_INSET_SETTINGS for Note 2003-07-15 André Pönitz diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 6844e939d0..bfe7afbfc6 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-07-16 John Levon + + * insetnote.h: + * insetnote.C: implement showInsetDialog() 2003-07-15 André Pönitz diff --git a/src/insets/insetnote.C b/src/insets/insetnote.C index e7536783bf..334c23aa1a 100644 --- a/src/insets/insetnote.C +++ b/src/insets/insetnote.C @@ -102,6 +102,13 @@ void InsetNote::setButtonLabel() } +bool InsetNote::showInsetDialog(BufferView * bv) const +{ + InsetNoteMailer("note", const_cast(*this)).showDialog(bv); + return true; +} + + dispatch_result InsetNote::localDispatch(FuncRequest const & cmd) { BufferView * bv = cmd.view(); diff --git a/src/insets/insetnote.h b/src/insets/insetnote.h index 03261e7862..c531a6a5d4 100644 --- a/src/insets/insetnote.h +++ b/src/insets/insetnote.h @@ -53,6 +53,8 @@ public: void setButtonLabel(); /// dispatch_result InsetNote::localDispatch(FuncRequest const &); + /// show the note dialog + bool showInsetDialog(BufferView * bv) const; /// int latex(Buffer const *, std::ostream &, LatexRunParams const &) const; diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 96e6e86acd..1c98cbdc93 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -515,6 +515,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const case Inset::WRAP_CODE: disable = ev.argument != "wrap"; break; + case Inset::NOTE_CODE: + disable = ev.argument != "note"; + break; default: break; } -- 2.39.2