mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
b6eefddb85
commit
82b445649a
@ -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>
|
2003-07-18 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* FormDialogView.h (controller): ditto
|
* FormDialogView.h (controller): ditto
|
||||||
|
|
||||||
* FormBase.h (controller): follow C++ rules more closely.
|
* 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.
|
* FormDialogView.C (postMessage): remove preprocessor warning.
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "ControlNote.h"
|
#include "ControlNote.h"
|
||||||
#include "FormNote.h"
|
#include "FormNote.h"
|
||||||
#include "forms/form_note.h"
|
#include "forms/form_note.h"
|
||||||
#include "xforms_helpers.h" // formatted
|
#include "Tooltips.h"
|
||||||
#include "lyx_forms.h"
|
#include "lyx_forms.h"
|
||||||
#include "insets/insetnote.h"
|
#include "insets/insetnote.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
@ -27,11 +27,21 @@ FormNote::FormNote(Dialog & parent)
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
string const FormNote::predefineds() const
|
||||||
|
{
|
||||||
|
return _("Note|Comment|Greyedout");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void FormNote::build()
|
void FormNote::build()
|
||||||
{
|
{
|
||||||
dialog_.reset(build_note(this));
|
dialog_.reset(build_note(this));
|
||||||
|
|
||||||
fl_addto_choice(dialog_->choice_type, predefineds().c_str());
|
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().setOK(dialog_->button_ok);
|
||||||
bcview().setApply(dialog_->button_apply);
|
bcview().setApply(dialog_->button_apply);
|
||||||
|
@ -33,7 +33,7 @@ private:
|
|||||||
/// Update dialog before showing it
|
/// Update dialog before showing it
|
||||||
virtual void update();
|
virtual void update();
|
||||||
///
|
///
|
||||||
string const predefineds() { return "Note|Comment|Greyedout"; }
|
string const predefineds() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FORMNOTE_H
|
#endif // FORMNOTE_H
|
||||||
|
Loading…
Reference in New Issue
Block a user