mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
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:
parent
43198fcbda
commit
34c34fc02e
@ -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>
|
2003-11-21 Alfredo Braunstein <abraunst@lyx.org>
|
||||||
|
|
||||||
* lyxtext.h: x0_,y0_ -> xo_,yo_
|
* lyxtext.h: x0_,y0_ -> xo_,yo_
|
||||||
|
@ -1409,7 +1409,6 @@ void LyXFunc::dispatch(FuncRequest const & func, bool verbose)
|
|||||||
if (view()->available()) {
|
if (view()->available()) {
|
||||||
view()->fitCursor();
|
view()->fitCursor();
|
||||||
view()->update();
|
view()->update();
|
||||||
|
|
||||||
view()->cursor().updatePos();
|
view()->cursor().updatePos();
|
||||||
// if we executed a mutating lfun, mark the buffer as dirty
|
// if we executed a mutating lfun, mark the buffer as dirty
|
||||||
if (!getStatus(func).disabled()
|
if (!getStatus(func).disabled()
|
||||||
|
@ -1563,7 +1563,7 @@ void LyXText::setCursorFromCoordinates(int x, int y)
|
|||||||
deleteEmptyParagraphMechanism(old_cursor);
|
deleteEmptyParagraphMechanism(old_cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
//gets LyXText coordinates
|
//x,y are coordinates relative to this LyXText
|
||||||
void LyXText::setCursorFromCoordinates(LyXCursor & cur, int x, int y)
|
void LyXText::setCursorFromCoordinates(LyXCursor & cur, int x, int y)
|
||||||
{
|
{
|
||||||
// Get the row first.
|
// Get the row first.
|
||||||
|
@ -1203,6 +1203,7 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
|
|||||||
if (!bv->buffer())
|
if (!bv->buffer())
|
||||||
break;
|
break;
|
||||||
if (cmd.button() == mouse_button::button1) {
|
if (cmd.button() == mouse_button::button1) {
|
||||||
|
selection_possible = true;
|
||||||
cursorHome();
|
cursorHome();
|
||||||
selection.cursor = cursor;
|
selection.cursor = cursor;
|
||||||
cursorEnd();
|
cursorEnd();
|
||||||
@ -1215,6 +1216,7 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
|
|||||||
if (!bv->buffer())
|
if (!bv->buffer())
|
||||||
break;
|
break;
|
||||||
if (cmd.button() == mouse_button::button1) {
|
if (cmd.button() == mouse_button::button1) {
|
||||||
|
selection_possible = true;
|
||||||
selectWord(lyx::WHOLE_WORD_STRICT);
|
selectWord(lyx::WHOLE_WORD_STRICT);
|
||||||
bv->haveSelection(selection.set());
|
bv->haveSelection(selection.set());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user