mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
remove LFUN_TOOLBAR_PUSH
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4744 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
da2d5f9053
commit
eb28793c05
@ -1,3 +1,9 @@
|
||||
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* LyXAction.C:
|
||||
* commandtags.h:
|
||||
* lyxfunc.C: remove LFUN_TOOLBAR_PUSH
|
||||
|
||||
2002-07-22 Herbert Voss <voss@lyx.org>
|
||||
|
||||
* lengthcommon.C:
|
||||
|
@ -383,7 +383,6 @@ void LyXAction::init()
|
||||
N_("Toggle cursor does/doesn't follow the scrollbar"),
|
||||
ReadOnly },
|
||||
{ LFUN_ADD_TO_TOOLBAR, "toolbar-add-to", "", NoBuffer },
|
||||
{ LFUN_PUSH_TOOLBAR, "toolbar-push", "", NoBuffer },
|
||||
{ LFUN_UNDO, "undo", N_("Undo"), Noop },
|
||||
{ LFUN_UP, "up", "", ReadOnly },
|
||||
{ LFUN_UPSEL, "up-select", "", ReadOnly },
|
||||
|
@ -175,7 +175,6 @@ enum kb_action {
|
||||
LFUN_CAPITALIZE_WORD,
|
||||
LFUN_INSERT_LABEL,
|
||||
LFUN_REF_INSERT,
|
||||
LFUN_PUSH_TOOLBAR,
|
||||
LFUN_ADD_TO_TOOLBAR,
|
||||
LFUN_DEPTH_MIN, // 150 // RVDK_PATCH_5
|
||||
LFUN_DEPTH_PLUS, // RVDK_PATCH_5
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* Toolbar.h:
|
||||
* Toolbar.C: remove ->push()
|
||||
|
||||
2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* LyXView.C: use BufferParams::getLyXTextClass
|
||||
|
@ -92,12 +92,6 @@ void Toolbar::clearLayoutList()
|
||||
}
|
||||
|
||||
|
||||
void Toolbar::push(int nth)
|
||||
{
|
||||
pimpl_->push(nth);
|
||||
}
|
||||
|
||||
|
||||
void Toolbar::add(string const & func, bool doclean)
|
||||
{
|
||||
int const tf = lyxaction.LookupFunc(func);
|
||||
|
@ -46,8 +46,6 @@ public:
|
||||
void add(int , bool doclean = true);
|
||||
/// name of func instead of kb_action
|
||||
void add(string const & , bool doclean = true);
|
||||
/// invokes the n'th icon in the toolbar
|
||||
void push(int);
|
||||
/// update the state of the icons
|
||||
void update();
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* Toolbar_pimpl.h:
|
||||
* Toolbar_pimpl.C: remove ->push()
|
||||
|
||||
2002-07-22 Edwin Leuven <leuven@fee.uva.nl>
|
||||
|
||||
* QCitationDialog.C: fix loop search and info update after selecting
|
||||
|
@ -110,4 +110,3 @@ Toolbar_pimpl
|
||||
|
||||
- mathed symbols (*)
|
||||
- set() ??
|
||||
- push() ??
|
||||
|
@ -269,19 +269,3 @@ void Toolbar::Pimpl::add(int action, bool)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Toolbar::Pimpl::push(int)
|
||||
{
|
||||
#if 0
|
||||
lyxerr[Debug::GUI] << "Toolbar::push: trying to trigger no `"
|
||||
<< nth << '\'' << endl;
|
||||
|
||||
if (nth <= 0 || nth >= int(toollist.size())) {
|
||||
// item nth not found...
|
||||
return;
|
||||
}
|
||||
|
||||
fl_trigger_object(toollist[nth - 1].icon);
|
||||
#endif
|
||||
}
|
||||
|
@ -52,8 +52,6 @@ public:
|
||||
void edit();
|
||||
/// add a new button to the toolbar.
|
||||
void add(int, bool doclean = true);
|
||||
/// invokes the n'th icon in the toolbar
|
||||
void push(int);
|
||||
/// update the state of the icons
|
||||
void update();
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* Toolbar_pimpl.h:
|
||||
* Toolbar_pimpl.C: remove ->push()
|
||||
|
||||
2002-07-22 Herbert Voss <voss@lyx.org>
|
||||
|
||||
* FormGraphics.C: add tooltips, changesize_type to size_kind.
|
||||
|
@ -430,20 +430,6 @@ void Toolbar::Pimpl::clean()
|
||||
}
|
||||
|
||||
|
||||
void Toolbar::Pimpl::push(int nth)
|
||||
{
|
||||
lyxerr[Debug::GUI] << "Toolbar::push: trying to trigger no `"
|
||||
<< nth << '\'' << endl;
|
||||
|
||||
if (nth <= 0 || nth >= int(toollist.size())) {
|
||||
// item nth not found...
|
||||
return;
|
||||
}
|
||||
|
||||
fl_trigger_object(toollist[nth - 1].icon);
|
||||
}
|
||||
|
||||
|
||||
void Toolbar::Pimpl::reset()
|
||||
{
|
||||
//toollist = 0; // what is this supposed to do?
|
||||
|
@ -45,8 +45,6 @@ public:
|
||||
void edit();
|
||||
/// add a new button to the toolbar.
|
||||
void add(int, bool doclean = true);
|
||||
/// invokes the n'th icon in the toolbar
|
||||
void push(int);
|
||||
/// update the state of the icons
|
||||
void update();
|
||||
|
||||
|
@ -1329,18 +1329,6 @@ void LyXFunc::dispatch(kb_action action, string argument, bool verbose)
|
||||
}
|
||||
break;
|
||||
|
||||
// --- toolbar ----------------------------------
|
||||
case LFUN_PUSH_TOOLBAR:
|
||||
{
|
||||
int nth = strToInt(argument);
|
||||
if (nth <= 0) {
|
||||
setErrorMessage(N_("Push-toolbar needs argument > 0"));
|
||||
} else {
|
||||
owner->getToolbar()->push(nth);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case LFUN_ADD_TO_TOOLBAR:
|
||||
{
|
||||
if (lyxerr.debugging(Debug::GUI)) {
|
||||
|
15
src/trans.h
15
src/trans.h
@ -1,6 +1,14 @@
|
||||
// -*- C++ -*-
|
||||
#ifndef Trans_h
|
||||
#define Trans_h
|
||||
/**
|
||||
* \file trans.h
|
||||
* Copyright 2002 the LyX Team
|
||||
* Read the file COPYING
|
||||
*
|
||||
* \author unknown
|
||||
*/
|
||||
|
||||
#ifndef TRANS_H
|
||||
#define TRANS_H
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
@ -19,7 +27,6 @@ class TransManager;
|
||||
/**
|
||||
Trans: holds a .kmap file
|
||||
*/
|
||||
//class Trans : public TransInterface {
|
||||
class Trans {
|
||||
public:
|
||||
///
|
||||
@ -75,4 +82,4 @@ string const & Trans::Match(unsigned char c)
|
||||
return dummy;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // TRANS_H
|
||||
|
Loading…
Reference in New Issue
Block a user