Results 1 to 20 of 216

Thread: QCodeEdit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #22
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by Usability View Post
    Here is a thought.
    With your cursor mirrors, could you allow the cursor movement keys to operate on all the cursors?
    I added the possiblity to move aligned cursors (including but not limited to column edit) as long as the "real" cursor remains on the same line. This moves support Shift-based selection so it is possible to turn a column edit into column selection or to extend a column selection through the keyboard.

    Quote Originally Posted by Usability View Post
    I just wanted to add some characters to the end of a 100 or so lines of different length. It would have been really nice to drop a cursor mirror on all the lines, push the end of line key, and start typing.
    Support for such "extended" key bindings is more controversial (and currently trickier to implement) for it would break column edit but I guess I can always add a workaround for the end of line key since I admit this one would be handy...

    Edit : after reviewing the changes with a more critical eye it appeared to be less consistent than I expected so I instead implemented a proper full "cursor move mirroring". Mirrors disappear as soon as any cursor (real or mirror) leave the line it was on and the alignment can always be restored (as long as there are cursor mirrors of course...) thorugh the start key.
    Last edited by fullmetalcoder; 5th November 2007 at 16:20.
    Current Qt projects : QCodeEdit, RotiDeCode

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.