mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
remove LFUN_TOOLTIPS_TOGGLE and associated Dialog::tooltipsEnabled() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
238b880c22
commit
f2ca75b3ac
@ -312,7 +312,6 @@ void LyXAction::init()
|
||||
{ LFUN_CHARS_TRANSPOSE, "chars-transpose", Noop },
|
||||
{ LFUN_FLOAT_LIST, "float-list", Noop },
|
||||
{ LFUN_ESCAPE, "escape", ReadOnly },
|
||||
{ LFUN_TOOLTIPS_TOGGLE, "tooltips-toggle", NoBuffer },
|
||||
{ LFUN_CHANGES_TRACK, "changes-track", Noop },
|
||||
{ LFUN_CHANGES_OUTPUT, "changes-output", Noop },
|
||||
{ LFUN_CHANGE_NEXT, "change-next", ReadOnly },
|
||||
|
@ -43,9 +43,6 @@ public:
|
||||
*/
|
||||
void checkStatus();
|
||||
|
||||
/// Toggle tooltips on/off in all dialogs.
|
||||
static void toggleTooltips();
|
||||
|
||||
/// Are the tooltips on or off?
|
||||
static bool tooltipsEnabled();
|
||||
|
||||
|
@ -567,14 +567,6 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::toggleTooltips()
|
||||
{
|
||||
// Turning off tooltips is not necessary and will
|
||||
// not be implemented by me - jcs
|
||||
//Tooltips::toggleEnabled();
|
||||
}
|
||||
|
||||
|
||||
/// Are the tooltips on or off?
|
||||
bool Dialogs::tooltipsEnabled()
|
||||
{
|
||||
|
@ -313,10 +313,6 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::toggleTooltips()
|
||||
{}
|
||||
|
||||
|
||||
/// Are the tooltips on or off?
|
||||
bool Dialogs::tooltipsEnabled()
|
||||
{
|
||||
|
@ -312,10 +312,6 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
|
||||
}
|
||||
|
||||
|
||||
void Dialogs::toggleTooltips()
|
||||
{}
|
||||
|
||||
|
||||
/// Are the tooltips on or off?
|
||||
bool Dialogs::tooltipsEnabled()
|
||||
{
|
||||
|
@ -283,7 +283,6 @@ enum kb_action {
|
||||
// 210
|
||||
LFUN_ESCAPE, // Lgb 20010517
|
||||
LFUN_THESAURUS_ENTRY, // Levon 20010720
|
||||
LFUN_TOOLTIPS_TOGGLE, // Angus 8 Mar 2002
|
||||
LFUN_OPTIONAL_INSERT, // Martin 12 Aug 2002
|
||||
LFUN_MOUSE_PRESS, // André 9 Aug 2002
|
||||
// 215
|
||||
|
@ -369,10 +369,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
flag.enabled(false);
|
||||
break;
|
||||
|
||||
case LFUN_TOOLTIPS_TOGGLE:
|
||||
flag.unknown(true);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -403,10 +399,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
// to handle (Andre')
|
||||
bool enable = true;
|
||||
switch (cmd.action) {
|
||||
case LFUN_TOOLTIPS_TOGGLE:
|
||||
flag.setOnOff(owner->getDialogs().tooltipsEnabled());
|
||||
break;
|
||||
|
||||
case LFUN_BUFFER_TOGGLE_READ_ONLY:
|
||||
flag.setOnOff(buf->isReadonly());
|
||||
break;
|
||||
@ -1401,10 +1393,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
owner->message(lyx::from_utf8(argument));
|
||||
break;
|
||||
|
||||
case LFUN_TOOLTIPS_TOGGLE:
|
||||
owner->getDialogs().toggleTooltips();
|
||||
break;
|
||||
|
||||
case LFUN_EXTERNAL_EDIT: {
|
||||
FuncRequest fr(action, argument);
|
||||
InsetExternal().dispatch(view()->cursor(), fr);
|
||||
|
Loading…
Reference in New Issue
Block a user