mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Enable "proper" tooltips in xforms browser widgets if your version of the
xforms library is recent enough. (I.e., today's cvs!) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6742 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0408f69287
commit
849a5bf74c
@ -1,3 +1,18 @@
|
||||
2003-04-09 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
Enable "proper" tooltips in browser widgets if your version of
|
||||
the xforms library is recent enough.
|
||||
|
||||
* FormBase.C (PrehandlerCB):
|
||||
* FormDialogView.C (PrehandlerCB): Conditional compilation of
|
||||
"tooltips in browser widgets work-around".
|
||||
|
||||
* FormBibtex.C (build):
|
||||
* FormCitation.C (build):
|
||||
* FormForks.C (build):
|
||||
* FormTexinfo.C (build): only set the prehandler for browser widgets
|
||||
if xforms does not support tooltips for same.
|
||||
|
||||
2003-04-08 John Levon <levon@movementarian.org>
|
||||
|
||||
* Toolbar_pimpl.C: remove setPixmap, use the backend
|
||||
|
@ -30,10 +30,11 @@
|
||||
|
||||
extern "C" {
|
||||
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// These should be in forms.h but aren't
|
||||
void fl_show_tooltip(const char *, int, int);
|
||||
|
||||
void fl_hide_tooltip();
|
||||
#endif
|
||||
|
||||
// Callback function invoked by xforms when the dialog is closed by the
|
||||
// window manager.
|
||||
@ -263,8 +264,8 @@ void FormBase::PrehandlerCB(FL_OBJECT * ob, int event, int key)
|
||||
}
|
||||
}
|
||||
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Tooltips are not displayed on browser widgets due to an xforms' bug.
|
||||
// I have a fix, but it's not yet in the xforms sources.
|
||||
// This is a work-around:
|
||||
if (ob->objclass == FL_BROWSER) {
|
||||
switch (event) {
|
||||
@ -282,6 +283,7 @@ void FormBase::PrehandlerCB(FL_OBJECT * ob, int event, int key)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -87,8 +87,11 @@ void FormBibtex::build()
|
||||
|
||||
str = _("Double click to choose a BibTeX style from the list.");
|
||||
tooltips().init(dialog_->browser_styles, str);
|
||||
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser_styles);
|
||||
#endif
|
||||
|
||||
str = _("Updates your TeX system for a new bibstyle list. Only "
|
||||
"the styles which are in directories where TeX finds them "
|
||||
|
@ -174,18 +174,24 @@ void FormCitation::build()
|
||||
|
||||
str = _("The entries which will be cited. Select them with the arrow buttons from the right browser window.");
|
||||
tooltips().init(dialog_->browser_cite, str);
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser_cite);
|
||||
#endif
|
||||
|
||||
str = _("All entries in the database you have loaded (via \"Insert->Lists&TOC->BibTex Reference\"). Move the ones you want to cite with the arrow buttons into the left browser window.");
|
||||
tooltips().init(dialog_->browser_bib, str);
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser_bib);
|
||||
#endif
|
||||
|
||||
str = _("Information about the selected entry");
|
||||
tooltips().init(dialog_->browser_info, str);
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser_info);
|
||||
#endif
|
||||
|
||||
str = _("Here you may select how the citation label should look inside the text (Natbib).");
|
||||
tooltips().init(dialog_->choice_style, str);
|
||||
|
@ -31,10 +31,11 @@
|
||||
|
||||
extern "C" {
|
||||
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// These should be in forms.h but aren't
|
||||
void fl_show_tooltip(const char *, int, int);
|
||||
|
||||
void fl_hide_tooltip();
|
||||
#endif
|
||||
|
||||
// Callback function invoked by xforms when the dialog is closed by the
|
||||
// window manager.
|
||||
@ -265,8 +266,8 @@ void FormDialogView::PrehandlerCB(FL_OBJECT * ob, int event, int key)
|
||||
}
|
||||
}
|
||||
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Tooltips are not displayed on browser widgets due to an xforms' bug.
|
||||
// I have a fix, but it's not yet in the xforms sources.
|
||||
// This is a work-around:
|
||||
if (ob->objclass == FL_BROWSER) {
|
||||
switch (event) {
|
||||
@ -284,6 +285,7 @@ void FormDialogView::PrehandlerCB(FL_OBJECT * ob, int event, int key)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -54,13 +54,17 @@ void FormForks::build() {
|
||||
// Set up the tooltip mechanism
|
||||
string str = _("All currently running child processes forked by LyX.");
|
||||
tooltips().init(dialog_->browser_children, str);
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser_children);
|
||||
#endif
|
||||
|
||||
str = _("A list of all child processes to kill.");
|
||||
tooltips().init(dialog_->browser_kill, str);
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser_kill);
|
||||
#endif
|
||||
|
||||
str = _("Add all processes to the list of processes to kill.");
|
||||
tooltips().init(dialog_->button_all, str);
|
||||
|
@ -57,8 +57,10 @@ void FormTexinfo::build() {
|
||||
|
||||
str = _("Double click to view contents of file.");
|
||||
tooltips().init(dialog_->browser, str);
|
||||
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL == 0)
|
||||
// Work-around xforms' bug; enable tooltips for browser widgets.
|
||||
setPrehandler(dialog_->browser);
|
||||
#endif
|
||||
|
||||
str = _("Runs the script \"texhash\" which builds a new LaTeX tree. "
|
||||
"Needed if you install a new TeX class or style. You need write "
|
||||
|
Loading…
Reference in New Issue
Block a user