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
This commit is contained in:
Angus Leeming 2003-07-18 14:51:13 +00:00
parent b6eefddb85
commit 82b445649a
3 changed files with 17 additions and 3 deletions

View File

@ -1,10 +1,14 @@
2003-07-18 Angus Leeming <leeming@lyx.org>
* FormNote.C (build): add a tooltip.
2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
* FormDialogView.h (controller): ditto
* FormBase.h (controller): follow C++ rules more closely.
2003-07-16 Angus Leeming <angus@localhost.localdomain>
2003-07-16 Angus Leeming <leeming@lyx.org>
* FormDialogView.C (postMessage): remove preprocessor warning.

View File

@ -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);

View File

@ -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