+2002-02-07 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * ui/default.ui: add ... to math panel
+
2002-02-04 Martin Vermeer <martin.vermeer@hut.fi>
* bind/math-bind: keybindings for umlauts and other special chars
Separator
Submenu "Symbols|S" "insert_math_symbol"
Separator
- Item "Math Panel|l" "math-panel"
+ Item "Math Panel...|l" "math-panel"
End
Menu "insert_math_symbol"
src/frontends/xforms/FileDialog.C
src/frontends/xforms/form_aboutlyx.C
src/frontends/xforms/FormAboutlyx.C
+src/frontends/xforms/FormBase.C
src/frontends/xforms/form_bibitem.C
src/frontends/xforms/FormBibitem.C
src/frontends/xforms/form_bibtex.C
.connect(slot(this, &BufferView::Pimpl::workAreaKeyPress));
workarea_.selectionRequested
.connect(slot(this, &BufferView::Pimpl::selectionRequested));
+ workarea_.selectionLost
+ .connect(slot(this, &BufferView::Pimpl::selectionLost));
cursor_timeout.timeout.connect(slot(this,
&BufferView::Pimpl::cursorToggle));
}
+void BufferView::Pimpl::selectionLost()
+{
+ hideCursor();
+ toggleSelection();
+ bv_->getLyXText()->clearSelection();
+ showCursor();
+}
+
+
void BufferView::Pimpl::enterView()
{
if (active() && available()) {
///
void selectionRequested();
///
+ void selectionLost();
+ ///
void enterView();
///
void leaveView();
+2002-02-07 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * lyxfunc.C (dispatch): a few comments from Martin
+
+2002-02-06 John Levon <moz@compsoc.man.ac.uk>
+
+ * WorkArea.h:
+ * WorkArea.C:
+ * BufferView_pimpl.h:
+ * BufferView_pimpl.C: clear our selection when X tells us we've lost
+ the X selection.
+
+2002-02-07 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * vspace.C (inPixels): fix compiler warning
+
2002-02-06 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxfunc.C (getStatus): fix status message for disabled commands.
void WorkArea::event_cb(XEvent * xev)
{
- if (xev->type != SelectionRequest)
- return;
-
- selectionRequested.emit();
- return;
+ switch (xev->type) {
+ case SelectionRequest:
+ lyxerr[Debug::GUI] << "X requested selection." << endl;
+ selectionRequested.emit();
+ break;
+ case SelectionClear:
+ lyxerr[Debug::GUI] << "Lost selection." << endl;
+ selectionLost.emit();
+ break;
+ }
}
SigC::Signal3<void, int, int, unsigned int> workAreaTripleClick;
/// emitted when an X client has requested our selection
SigC::Signal0<void> selectionRequested;
+ /// emitted when another X client has stolen our selection
+ SigC::Signal0<void> selectionLost;
/// handles SelectionRequest X Event, to fill the clipboard
void event_cb(XEvent * xev);
owner->view()->menuRedo();
goto exit_with_message;
} else if (((result=owner->view()->theLockingInset()->
+ // Hand-over to inset's own dispatch:
localDispatch(owner->view(), action, argument)) ==
UpdatableInset::DISPATCHED) ||
(result == UpdatableInset::DISPATCHED_NOUPDATE))
goto exit_with_message;
+ // If UNDISPATCHED, just soldier on
else if (result == UpdatableInset::FINISHED) {
if (TEXT()->cursor.par()->isRightToLeftPar(owner->buffer()->params)) {
TEXT()->cursorRight(owner->view());
default:
// Then if it was none of the above
+ // Trying the BufferView::pimpl dispatch:
if (!owner->view()->Dispatch(action, argument))
lyxerr << "A truly unknown func ["
<< lyxaction.getActionName(action) << "]!"
case LENGTH:
return len_.len().inPixels(default_width, default_height);
}
+ // we cannot go there, but there is a compiler warning...
+ return 0;
}