allow extending a double/triple click + whitespace + correct a comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8112 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-21 11:16:37 +00:00
parent 43198fcbda
commit 34c34fc02e
6 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-11-21 Alfredo Braunstein <abraunst@lyx.org>
* text3.C (dispatch): make possible to extend a word/row selection
with the mouse
2003-11-21 Alfredo Braunstein <abraunst@lyx.org>
* lyxtext.h: x0_,y0_ -> xo_,yo_

View File

@ -1409,7 +1409,6 @@ void LyXFunc::dispatch(FuncRequest const & func, bool verbose)
if (view()->available()) {
view()->fitCursor();
view()->update();
view()->cursor().updatePos();
// if we executed a mutating lfun, mark the buffer as dirty
if (!getStatus(func).disabled()

View File

@ -1563,7 +1563,7 @@ void LyXText::setCursorFromCoordinates(int x, int y)
deleteEmptyParagraphMechanism(old_cursor);
}
//gets LyXText coordinates
//x,y are coordinates relative to this LyXText
void LyXText::setCursorFromCoordinates(LyXCursor & cur, int x, int y)
{
// Get the row first.

View File

@ -1203,6 +1203,7 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
if (!bv->buffer())
break;
if (cmd.button() == mouse_button::button1) {
selection_possible = true;
cursorHome();
selection.cursor = cursor;
cursorEnd();
@ -1215,6 +1216,7 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
if (!bv->buffer())
break;
if (cmd.button() == mouse_button::button1) {
selection_possible = true;
selectWord(lyx::WHOLE_WORD_STRICT);
bv->haveSelection(selection.set());
}