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
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by elcuco View Post
    BTW, I am getting compilation problems on 4.3. What version do you support ...? 4.4? 4.3?
    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)
    They weren't part of the public API, were they?
    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...
    Current Qt projects : QCodeEdit, RotiDeCode

  2. #2
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    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 now great work so far
    Last edited by NoobSaibot; 12th January 2008 at 07:50.

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

    Quote Originally Posted by NoobSaibot View Post
    i hope the development of QCodeEdit continues, as i have a few reports/requests
    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

  4. #4
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    • code snippets are not planned ATM. IMO such a functionnality should be handled by the application, not QCodeEdit
    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.

  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

    Quote Originally Posted by NoobSaibot View Post
    Nooo, just imagine. One xml configuration file for the whole language. folding, syntax, indentation, snippets, ... everything in one config file.
    That would be cool but unfortunately I have no time to invest in snippet support ATM... If someone is interested in creating a snippet engine that could be plugged in QCodeEdit I'd be happy to help by answering all questions but I can't do anything more...
    Current Qt projects : QCodeEdit, RotiDeCode

  6. #6
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    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.

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

    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

  8. #8
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    i'd like to show the current syntax used in the status panel

  9. #9
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    for some reason the first -- and empty -- line is always selected when i start the example.

    btw. do you have a issue tracker?

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

    Quote Originally Posted by NoobSaibot View Post
    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

  11. #11
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    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.

  12. #12
    Join Date
    Jan 2008
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    well, you gonna hate me aswell , however,

    is it possible to enter column selection mode without the mouse?

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

    Quote Originally Posted by NoobSaibot View Post
    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.
    I'm afraid I haven't been able to reproduce this one.Check that you are using last rev. Try rebuilding QCodeEdit (make clean) and send me the files with which it happens in case the problem remains.

    is it possible to enter column selection mode without the mouse?
    It wasn't but it now is. The new binding is : CTRL + ALT + up/down to add a new mirror above the first/under the last cursor mirror.
    Current Qt projects : QCodeEdit, RotiDeCode

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

    NoobSaibot (18th January 2008)

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.