From 82b445649af9e3e49ee0e73c7308e0ef3e2d6faf Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 18 Jul 2003 14:51:13 +0000 Subject: [PATCH] Add a tooltip to the xforms note dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7318 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 6 +++++- src/frontends/xforms/FormNote.C | 12 +++++++++++- src/frontends/xforms/FormNote.h | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 4cf7a60a03..02040d96cf 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,10 +1,14 @@ +2003-07-18 Angus Leeming + + * FormNote.C (build): add a tooltip. + 2003-07-18 Lars Gullik Bjønnes * FormDialogView.h (controller): ditto * FormBase.h (controller): follow C++ rules more closely. -2003-07-16 Angus Leeming +2003-07-16 Angus Leeming * FormDialogView.C (postMessage): remove preprocessor warning. diff --git a/src/frontends/xforms/FormNote.C b/src/frontends/xforms/FormNote.C index aad238f512..6fa17eceee 100644 --- a/src/frontends/xforms/FormNote.C +++ b/src/frontends/xforms/FormNote.C @@ -15,7 +15,7 @@ #include "ControlNote.h" #include "FormNote.h" #include "forms/form_note.h" -#include "xforms_helpers.h" // formatted +#include "Tooltips.h" #include "lyx_forms.h" #include "insets/insetnote.h" #include "debug.h" @@ -27,11 +27,21 @@ FormNote::FormNote(Dialog & parent) {} +string const FormNote::predefineds() const +{ + return _("Note|Comment|Greyedout"); +} + + void FormNote::build() { dialog_.reset(build_note(this)); fl_addto_choice(dialog_->choice_type, predefineds().c_str()); + string str = _("Note: LyX internal only\n" + "Comment: Export to LaTeX but don't print\n" + "Greyedout: Print as grey text"); + tooltips().init(dialog_->choice_type, str); bcview().setOK(dialog_->button_ok); bcview().setApply(dialog_->button_apply); diff --git a/src/frontends/xforms/FormNote.h b/src/frontends/xforms/FormNote.h index 440da3955e..406105dc09 100644 --- a/src/frontends/xforms/FormNote.h +++ b/src/frontends/xforms/FormNote.h @@ -33,7 +33,7 @@ private: /// Update dialog before showing it virtual void update(); /// - string const predefineds() { return "Note|Comment|Greyedout"; } + string const predefineds() const; }; #endif // FORMNOTE_H