Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Location
    the Netherlands
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    I'd like to be able to insert some text and let it auto indent, similar as what Kate does when pasting some text.

    After I got the impression that it isn't possible yet I noticed some commented code about it. Do you have any plans to finalize this somewhat soon or is this an item more below on your TODO list? Just wondering before I try to handcraft something myself
    Last edited by -Rick-; 20th May 2009 at 20:56.
    Nixstaller - Installers for *nix

  2. #2
    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

    It was possible at some point but the code was broken and I had little time to fix it back then so I disabled it. I'll give it a try ASAP and let you know if I come to something usable.

    The main issue here is that I don't know if I should just adjust the indentation or completely reindent the block of text being pasted...
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    May 2009
    Location
    the Netherlands
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    Thanks for your reply.

    It seems kdevelop (and I assume Kate) seems to 'fix' the text pasted, so reindenting everything. Although more work I guess it has the benefit that you can automagicly convert someone else's code indenting to yours.

    Something else which is somewhat related: when inserting text tabs are not replaced when QEditor::ReplaceTabs is set. The same goes for automatic indention.

    Anyway hopefully soon Nixstaller will be another happy user of your widget
    Nixstaller - Installers for *nix

  4. #4
    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

    Thanks for the report. I've made the ReplaceTabs mode more consistent (though there are probably some corner cases remaining).

    As for the indent adjustment upon paste it is now enabled in trunk but might still require a little more testing.

    I'll try to release new packages soon but exams may induce delays...
    Current Qt projects : QCodeEdit, RotiDeCode

  5. #5
    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

    QCodeEdit 2.2.3 is out.

    It brings code snippets and session managment (and a bunch of bugfixes as well).

    Feedback much welcome as always.

    From now on development will focus on the 2.3 branch (2.2 is feature frozen as far as I'm concerned) which will be awesome so stay tuned.
    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.