Page 11 of 11 FirstFirst ... 91011
Results 201 to 216 of 216

Thread: QCodeEdit

  1. #201
    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

    This is a problem I've been struggling with for quite some time. It appears that some versions off Qt need the position of the widgets placed inside viewport margins to be offsetted when scrollbars are visible and some don't. The issue being that I have not yet managed to determine how each version (and platform?) behave so as to use some macro tricks to get rid of that annoyance.
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Default Re: QCodeEdit

    More seriously, when I move the horizontal scroll bar with the latest version of qcodeedit2, the application freezes. Have you seen anything like this before?

    It doesn't seem to affect the example editor, just my app. However when I switch back to the last bulid of qcodeedit2 I was using the problem goes away.

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

    Default Re: QCodeEdit

    Contrary to my earlier post, the example application of the editor does show the scroll lockup. Try this

    example/example example/window.cpp
    right click in the C code, select goto line, and goto line 10.
    Now try and scroll horizontally to the right and side and back again.

    Kills it for me every time.

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

    I'm unable to reproduce this issue with SVN HEAD. It has most likely been fixed by one of the commits I made yesterday, please confirm (or infirm).
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Default Re: QCodeEdit

    Your right, the current build (774) fixed the scroll lockup problem :-)
    Thank you for that. We always want problems fixed yesterday, but its not often it actually happens!

  6. #206
    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 recently gained proper encodings support and improved Bidi support (there where bugs in QTextLayout based rendering) so I am looking for people interested in stress-testing these new features : as I only use utf-8 or latin1 to type in english/french I can hardly make sure everything is working as expected.

    On a completely different side, the example application has become a trimmed-down but fully functionnal text editor.

    Next items on my TODO list :

    • improved printing support (which boils down to temporarily wrapping the text to fit in the page size and creating a custom print dialog more adapted to my use case)
    • session save/restore : ideally sessions would hold information about open files, cursor position(s) and the command stack so that the editor could periodically save the state of a session and recover in case of crash
    • documentation... it is rather lacking atm

    If you have any requests, feel free to tell me, either here or on the task tracker.
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Despite my busy time table I've been able to hack a little on QCE lately and I have finally implemented a 1-year old feature request : code snippets. The UI is rough but the infrastructure works perfectly. Stay tuned.

    By the way, API docs have grown lately and review/comments would be welcome.
    Current Qt projects : QCodeEdit, RotiDeCode

  8. #208
    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



    At last... QCodeEdit 2.2 is finally available for download.

    The docs are now available online, comments on them (and also on QCE itself of course) would be extremely welcome.

    Good night (eh, I might be able to get some sleep now ).
    Current Qt projects : QCodeEdit, RotiDeCode

  9. #209
    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 to testers, the platform-specific regressions introduced by late fixes in QCodeEdit 2.2 have been fixed and new packages (2.2.1) are now availables.
    Current Qt projects : QCodeEdit, RotiDeCode

  10. #210
    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

    I am happy to announce the immediate availability of QCodeEdit 2.2.2

    This release mostly focused on bugfixes and polishing but it also brings several new features, such as configuration UI for the various formatting options, a designer plugin to make it easier to build your app around QCodeEdit and a few other niceties.

    By the way, let me introduce two new open source projects using QCodeEdit :

    • TexMakerX : LaTex editor
    • Xinx : XSL editor (first QCE-based release due in a couple of days)

    Hoping you'll like it.
    Current Qt projects : QCodeEdit, RotiDeCode

  11. #211
    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 21:56.
    Nixstaller - Installers for *nix

  12. #212
    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

  13. #213
    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

  14. #214
    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

  15. #215
    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

  16. #216
    Join Date
    Jul 2010
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QCodeEdit

    Comment, but's not qt lib

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.