Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

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

    Default Re: QCodeEdit

    Quote Originally Posted by Usability View Post
    It doesn't for me. I get a regular selection. It gives you the complete lines that were diagonally dragged over.

    That sounds perfect, its just I don't see it with the current svn checkout.
    Apologies... I forgot committing the latest changes...

    Quote Originally Posted by Usability View Post
    It gives me a trail of cursor mirrors. Is that the same thing?
    It is. But your working copy lacks a restriction so the "trail" may not be as usable as it should...

    I've finally dealt with the drag and drop issue and the code (for ALL these neat features) is at last available on SVN. Have fun!
    Current Qt projects : QCodeEdit, RotiDeCode

  2. #2
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QCodeEdit

    That is definitely better. I get a rectangular selection now, provided I use ctrl-shift and drag the mouse gently down the screen. If I move the mouse too fast, it skips some lines. So my rectangular selection has gaps in it!

    I noticed another thing about clicking the start of a block and shift clicking the end. The first time I try this after invocation, it works and I get the range selected. All subsequent attempts fail. Do you see this?

    If this worked it would provide a workaround to the drag speed restriction.

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

    Default Re: QCodeEdit

    Quote Originally Posted by Usability View Post
    That is definitely better. I get a rectangular selection now, provided I use ctrl-shift and drag the mouse gently down the screen. If I move the mouse too fast, it skips some lines. So my rectangular selection has gaps in it!
    Fixed. I also made dragging more consistent and natural : dragging back does not leave unwanted cursors/selection anymore

    Quote Originally Posted by Usability View Post
    I noticed another thing about clicking the start of a block and shift clicking the end.
    As far as I understand the code , this action shouldn't even have lead to a selection but I fixed this... I also added the possibility to column select without dragging : click somewhere and then click somewhere else while holding down shift and control.

    The only downside of having such functionnalities is that I'll have to write a maual if I want users to take advantage of them... Anybody willing to help with this?
    Current Qt projects : QCodeEdit, RotiDeCode

  4. The following user says thank you to fullmetalcoder for this useful post:

    Usability (5th November 2007)

  5. #4
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QCodeEdit

    We have a working column editor now.

    This is an impressive software component. You should be proud.

  6. #5
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QCodeEdit

    Here is a thought.
    With your cursor mirrors, could you allow the cursor movement keys to operate on all the cursors?

    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.

    Then you could do other useful edits with a column of cursors, for example left arrow back a few characters and insert something.

    You would kill of the cursor mirrors and return to a single cursor with a mouse click.

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

    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 17: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.