-
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.
-
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.
-
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.
-
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).
-
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!
-
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.
-
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.
-
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 ;)).
-
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.
-
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.
-
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 :)
-
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...
-
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 :)
-
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...
-
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.
-
Re: QCodeEdit
Comment, but's not qt lib