]> git.lyx.org Git - features.git/commitdiff
Some comments to the different cursors.
authorJürgen Vigna <jug@sad.it>
Mon, 24 Sep 2001 08:59:31 +0000 (08:59 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 24 Sep 2001 08:59:31 +0000 (08:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2790 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxtext.h

index e95f3079ff169e5da6c5bd83f6de2ad937139e36..5ed0732a65aca129bd0ebeb1e689f38020f80e54 100644 (file)
@@ -239,7 +239,7 @@ public:
          Since the LyXText now has been moved from Buffer to BufferView
          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. */
        struct Selection {
@@ -258,9 +258,10 @@ public:
                void mark(bool m) {
                        mark_ = m;
                }
-               LyXCursor cursor;
-               LyXCursor start;
-               LyXCursor end;
+               LyXCursor cursor; // temporary cursor to hold a cursor position
+                                 // until setSelection is called!
+               LyXCursor start;  // start of a REAL selection
+               LyXCursor end;    // end of a REAL selection
        private:
                bool set_; // former selection
                bool mark_; // former mark_set
@@ -269,10 +270,10 @@ public:
        mutable Selection selection;
 
        /// needed for the toggling
-       LyXCursor last_sel_cursor;
-       ///
-       LyXCursor toggle_cursor;
+       LyXCursor last_sel_cursor; // cursor position on last selection made
        ///
+       LyXCursor toggle_cursor;   // the following two are needed for toggling
+       ///                           the selection in screen.C
        LyXCursor toggle_end_cursor;
    
        /// need the selection cursor: