mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
Some comments to the different cursors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2790 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1b6f3b67d3
commit
46295a02f4
@ -239,7 +239,7 @@ public:
|
|||||||
Since the LyXText now has been moved from Buffer to BufferView
|
Since the LyXText now has been moved from Buffer to BufferView
|
||||||
it should not be absolutely needed to move the cursor...
|
it should not be absolutely needed to move the cursor...
|
||||||
*/
|
*/
|
||||||
mutable LyXCursor cursor;
|
mutable LyXCursor cursor; // actual cursor position
|
||||||
|
|
||||||
/** The structrue that keeps track of the selections set. */
|
/** The structrue that keeps track of the selections set. */
|
||||||
struct Selection {
|
struct Selection {
|
||||||
@ -258,9 +258,10 @@ public:
|
|||||||
void mark(bool m) {
|
void mark(bool m) {
|
||||||
mark_ = m;
|
mark_ = m;
|
||||||
}
|
}
|
||||||
LyXCursor cursor;
|
LyXCursor cursor; // temporary cursor to hold a cursor position
|
||||||
LyXCursor start;
|
// until setSelection is called!
|
||||||
LyXCursor end;
|
LyXCursor start; // start of a REAL selection
|
||||||
|
LyXCursor end; // end of a REAL selection
|
||||||
private:
|
private:
|
||||||
bool set_; // former selection
|
bool set_; // former selection
|
||||||
bool mark_; // former mark_set
|
bool mark_; // former mark_set
|
||||||
@ -269,10 +270,10 @@ public:
|
|||||||
mutable Selection selection;
|
mutable Selection selection;
|
||||||
|
|
||||||
/// needed for the toggling
|
/// needed for the toggling
|
||||||
LyXCursor last_sel_cursor;
|
LyXCursor last_sel_cursor; // cursor position on last selection made
|
||||||
///
|
|
||||||
LyXCursor toggle_cursor;
|
|
||||||
///
|
///
|
||||||
|
LyXCursor toggle_cursor; // the following two are needed for toggling
|
||||||
|
/// the selection in screen.C
|
||||||
LyXCursor toggle_end_cursor;
|
LyXCursor toggle_end_cursor;
|
||||||
|
|
||||||
/// need the selection cursor:
|
/// need the selection cursor:
|
||||||
|
Loading…
Reference in New Issue
Block a user