I'd like to support both but I can't test Qt 4.4
As for your compile troubles could provide me the following informations :
- OS
- Qt version
- compiler
- QCodeEdit version (i.e package or SVN rev)
- full compile log (do a make distclean first if you are using a SVN copy)
The QAtomic and QBasicAtomic class are not documented but they are accessible (i.e. not located somewhere in "private" headers) and as they are widely used throughout Qt and the only way to achieve atomic ref counting I assumed they would not be a source of troubles and used them...They weren't part of the public API, were they?
Current Qt projects : QCodeEdit, RotiDeCode
i hope the development of QCodeEdit continues, as i have a few reports/requests
Issues
==========================
- while scrolling the linenumber column changes width while scrolling (becomes wider) as the digit of current visible line grows down the file. this "dynamic" grow is quite unusual. why don't you make the width of the linenumber column "static" and change the width only if the row count changes ( e. g. from 99 to 100 or from 999 to 1000 )?
- column selection: i see that i can select columns wise. what i don't see is the actual selection.
Features
===========================
for convenience sake i declare here an entity: ( current line/lines of current selection ) = current content
- make it possible to delete current content along with the corresponding lines. ( e. g. CTRL + D in Eclipse )
- make it possible to move current content inside the editor. ( e. g. ALT + UP, ALT + DOWN )
- make it possible to duplicate current content inside the editor. ( e. g. CTRL + ALT + UP, CTRL + ALT + DOWN )
- tab ( or user defined key ) triggered snippets. ( e. g. textmate )
that's all for nowgreat work so far
Last edited by NoobSaibot; 12th January 2008 at 07:50.
It does, even though it's slower than it used to because I haven't got much spare time lately... Comments and requests are welcome anyway
- the variable width of line number panel is quite nice IMO when you have some files with more than 1k lines since it avoid space waste when you are at the beginning but making it "static" won't be complicated hopefully
- I don't understand this one I'm afraid...
- If I understand well the content is ALWAYS a set of LINES right? Then adding a couple of actions won't be difficult
- code snippets are not planned ATM. IMO such a functionnality should be handled by the application, not QCodeEdit
Current Qt projects : QCodeEdit, RotiDeCode
Nooo, just imagine. One xml configuration file for the whole language. folding, syntax, indentation, snippets, ... everything in one config file.
as the snippets should be context aware either, the only appropriate place for them should be in the qnfa file. so the same snippet ( say "main" ) could be defined for several languages/context.
i suggest you take a closer look at textmate. which is unfortunatelly Mac only. the bundle system is great.
is it possible to
- define the indentation width ( 2, 4, 8 ) in the xml config?
- find out which syntax is used at the moment ( C++, PHP, ... )?
- find out in which context the cursor is at the moment?
Last edited by NoobSaibot; 13th January 2008 at 10:29.
Well, currently the indentation is shared by all documents (this may change in the future though) which make it impossible to add such a feature to language syntax files...
As for the used syntax it won't be difficult, just depends on where you need to get that information. The context is currently a bit trickier but I'll be working on this soon.
Current Qt projects : QCodeEdit, RotiDeCode
i'd like to show the current syntax used in the status panel
for some reason the first -- and empty -- line is always selected when i start the example.
btw. do you have a issue tracker?
As QCodeEdit is developed as part of Edyuk you should use Edyuk issue tracker on Sf.net or the WebIssues server (http://edyuk.org/webissues/ login : anonymous, pwd : anonymous)
Current Qt projects : QCodeEdit, RotiDeCode
some minor bug in the column selection:
- start column selection in the first column down to the last line of the file
- now hold shift and try to select the text to the right with the arrow key
the result is that all but the last cursor mirrors do what they should. the last -- down most -- cursor mirror does not move along with the others.
Bookmarks