* configure.in: remove test for -lpt on SCO. Hopefully it is not
needed anymore. This fixes bug #137
-2001-11-29 Ben Stanley <bds02@uow.edu.au>
-
- * src/LaTeX.C
- * src/LaTeX.h Fixed bug in LaTeX class where it would not
- re-run latex if no depfiles were changed, but the .dvi was removed.
-
2001-11-28 John Levon <moz@compsoc.man.ac.uk>
* README: fix ghostscript comment
+2002-01-12 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * configure.m4: try to fix problem with groff detection
+
2002-01-10 Angus Leeming <a.leeming@ic.ac.uk>
* lyxrc.example: change the names of some variables in line with lyxrc.C
if test -n "$prog"; then
ac_result=yes
- test $prog = "nroff" && prog='tbl $$FName | nroff'
+ test "$prog" = "nroff" && prog='tbl $$FName | nroff'
else
ac_result=no
fi
# Search a *roff program (used to translate tables in ASCII export)
LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl
'groff -t -Tlatin1 $$FName' nroff,dnl
- test $prog = "nroff" && prog='tbl $$FName | nroff')
+ test "$prog" = "nroff" && prog='tbl $$FName | nroff')
# Search the ChkTeX program
LYXRC_PROG([for ChkTeX], \chktex_command,dnl
setState();
owner_->showState();
+ owner_->updateMenubar();
+ owner_->updateToolbar();
// Did we hit an editable inset?
if (inset_hit) {
return;
}
-#ifdef WITH_WARNINGS
-#warning variable c is set but never used. What is it good for?? (JMarc)
-#warning isnt this code dead ?? "open a float" ??? (jbl)
-#endif
- // check whether we want to open a float
- if (bv_->text) {
- bool hit = false;
- char c = ' ';
- if (bv_->text->cursor.pos() <
- bv_->text->cursor.par()->size()) {
- c = bv_->text->cursor.par()->
- getChar(bv_->text->cursor.pos());
- }
- if (bv_->text->cursor.pos() - 1 >= 0) {
- c = bv_->text->cursor.par()->
- getChar(bv_->text->cursor.pos() - 1);
- }
- if (hit == true) {
- selection_possible = false;
- return;
- }
- }
-
// Maybe we want to edit a bibitem ale970302
if (bv_->text->cursor.par()->bibkey && x < 20 +
bibitemMaxWidth(bv_, textclasslist.
+2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * BufferView_pimpl.C (workAreaButtonRelease): remove dead code (to
+ open a float)
+
+ * lyxfunc.C (setStatusMessage):
+ (getStatusMessage): new methods
+ (getStatus):use setStatusMessage instead of setErrorMessage
+ (dispatch): when function is disabled, set error message here
+ [instead of in getStatus previously]
+
+ * BufferView_pimpl.C (workAreaButtonRelease): update
+ toolbar/menubar here too.
+
2002-01-13 Allan Rae <rae@lyx.org>
* BufferView2.C (removeAutoInsets): finished off earlier fix.
2002-01-12 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+ * lyxfunc.C (dispatch): update toolbar/menubar after dispatching.
+
+ * LyXView.C (updateMenubar): call MenuBar::update here
+ (updateToolbar): but not here
+ (showState): do not update toolbar/menubar
+
* LyXAction.[Ch]: move isPseudoAction to the C file, since nobody
should need to care about that.
(simpleDocBookOnePar): changed a PAR::META_INSET to isInset().
Fixed a double write of labels.
+2001-11-29 Ben Stanley <bds02@uow.edu.au>
+
+ * LaTeX.C:
+ * LaTeX.h Fixed bug in LaTeX class where it would not
+ re-run latex if no depfiles were changed, but the .dvi was removed.
+
2001-11-28 André Pönitz <poenitz@gmx.net>
* all the files from the change on 2001/11/26:
void LyXView::updateToolbar()
{
toolbar->update();
- menubar->update();
}
menubar->set("main_nobuffer");
else
menubar->set("main");
+ menubar->update();
}
void LyXView::showState()
{
message(currentState(view()));
- getToolbar()->update();
- menubar->update();
}
+2002-01-12 Michael A. Koziarski <michael@koziarski.com>
+
+ * Menubar_pimpl.C
+ * Menubar_pimpl.h
+ * mainapp.h
+ * mainapp.C: Removed, We should behave similarly to the qt2
+ frontend, so I've removed the LyXGnomified and menubar code. The
+ menubar wasn't working properly anyway.
+
2002-01-08 Martin Vermeer <martin.vermeer@hut.fi>
* Menubar_pimpl.C (composeUIInfo):
+2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * insettext.C (updateLocal): update menubar and toolbar here too.
+
2002-01-13 Allan Rae <rae@lyx.org>
* insettabular.C (InsetTabular): Both constructors now initialise
if (need_update == CURSOR)
need_update = NONE;
bv->owner()->showState();
+ bv->owner()->updateMenubar();
+ bv->owner()->updateToolbar();
if (old_par != cpar(bv)) {
bv->owner()->setLayout(cpar(bv)->getLayout());
old_par = cpar(bv);
Buffer * buf = owner->buffer();
if (action == LFUN_UNKNOWN_ACTION) {
- setErrorMessage(N_("Unknown action"));
+ setStatusMessage(N_("Unknown action"));
return flag.unknown(true);
}
!lyxaction.funcHasFlag(action,
LyXAction::ReadOnly)) {
// no
- setErrorMessage(N_("Document is read-only"));
+ setStatusMessage(N_("Document is read-only"));
flag.disabled(true);
}
} else {
// no
- setErrorMessage(N_("Command not allowed with"
+ setStatusMessage(N_("Command not allowed with"
"out any document open"));
return flag.disabled(true);
}
<< lyxaction.getActionName(action)
<< " [" << action << "] is disabled at this location"
<< endl;
+ setErrorMessage(getStatusMessage());
goto exit_with_message;
}
// Undo/Redo is a bit tricky for insets.
if (action == LFUN_UNDO) {
owner->view()->menuUndo();
- return string();
+ goto exit_with_message;
} else if (action == LFUN_REDO) {
owner->view()->menuRedo();
- return string();
+ goto exit_with_message;
} else if (((result=owner->view()->theLockingInset()->
localDispatch(owner->view(), action, argument)) ==
UpdatableInset::DISPATCHED) ||
(result == UpdatableInset::DISPATCHED_NOUPDATE))
- return string();
+ goto exit_with_message;
else if (result == UpdatableInset::FINISHED) {
if (TEXT()->cursor.par()->isRightToLeftPar(owner->buffer()->params)) {
TEXT()->cursorRight(owner->view());
moveCursorUpdate(true, false);
owner->showState();
}
- return string();
+ goto exit_with_message;
} else if (result == UpdatableInset::FINISHED_RIGHT) {
if (!TEXT()->cursor.par()->isRightToLeftPar(owner->buffer()->params)) {
TEXT()->cursorRight(owner->view());
moveCursorUpdate(true, false);
owner->showState();
}
- return string();
+ goto exit_with_message;
} else if (result == UpdatableInset::FINISHED_UP) {
if (TEXT()->cursor.row()->previous()) {
TEXT()->cursorUp(owner->view());
moveCursorUpdate(true, false);
owner->showState();
}
- return string();
+ goto exit_with_message;
} else if (result == UpdatableInset::FINISHED_DOWN) {
if (TEXT()->cursor.row()->next())
TEXT()->cursorDown(owner->view());
TEXT()->cursorRight(owner->view());
moveCursorUpdate(true, false);
owner->showState();
- return string();
+ goto exit_with_message;
} else {
//setMessage(N_("Text mode"));
switch (action) {
moveCursorUpdate(true, false);
owner->showState();
}
- return string();
+ goto exit_with_message;
case LFUN_LEFT:
if (TEXT()->cursor.par()->isRightToLeftPar(owner->buffer()->params)) {
TEXT()->cursorRight(owner->view());
moveCursorUpdate(true, false);
owner->showState();
}
- return string();
+ goto exit_with_message;
case LFUN_DOWN:
if (TEXT()->cursor.row()->next())
TEXT()->cursorDown(owner->view());
TEXT()->cursorRight(owner->view());
moveCursorUpdate(true, false);
owner->showState();
- return string();
+ goto exit_with_message;
default:
break;
}
if (!res.empty())
owner->message(_(res));
-
+ owner->updateMenubar();
+ owner->updateToolbar();
+
return res;
}
}
-void LyXFunc::setMessage(string const & m)
+void LyXFunc::setMessage(string const & m) const
{
dispatch_buffer = m;
}
+void LyXFunc::setStatusMessage(string const & m) const
+{
+ status_buffer = m;
+}
+
+
void LyXFunc::initMiniBuffer()
{
string text = _("Welcome to LyX!");
/// True if lyxfunc reports an error
bool errorStat() const { return errorstat; }
/// Buffer to store result messages
- void setMessage(string const & m);
+ void setMessage(string const & m) const;
/// Buffer to store result messages
void setErrorMessage(string const &) const;
+ /// Buffer to store result messages from getStatus
+ void setStatusMessage(string const &) const;
/// Buffer to store result messages
string const getMessage() const { return dispatch_buffer; }
+ /// Buffer to store result messages
+ string const getStatusMessage() const { return status_buffer; }
/// Handle a accented char keysequenze
void handleKeyFunc(kb_action action);
good reason to have this one as static in Dispatch? (Ale)
*/
mutable string dispatch_buffer;
+ /** Buffer to store messages and result data from getStatus
+ */
+ mutable string status_buffer;
/// Command name and shortcut information
string commandshortcut;