Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    22
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    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

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

    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 11:29.

  4. #4
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    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

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

    Default Re: QCodeEdit

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

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

    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?

  7. #7
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    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

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

    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.

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

    Default Re: QCodeEdit

    well, you gonna hate me aswell , however,

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

  10. #10
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    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

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

    NoobSaibot (18th January 2008)

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

    Default Re: QCodeEdit

    thanks a bunch! i'll recompile and attach the files to the bug report. if you care, i modified qdocument.cpp a little bit, as i find this folding rect ugly as hell (i borrowed some images from textmate)

    /edit: well actually there's nothing to attach to the bug report, as it happens right on the start; there's no file loaded at all. hmmm, might be my system configuration.
    Attached Images Attached Images
    Last edited by NoobSaibot; 18th January 2008 at 22:28. Reason: updated contents

  13. #12
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: QCodeEdit

    Quote Originally Posted by NoobSaibot View Post
    if you care, i modified qdocument.cpp a little bit, as i find this folding rect ugly as hell (i borrowed some images from textmate)
    AFAIK, and I should know quite welll , the drawing of folding rects isn't done in qdocument.cpp but in qfoldpanel.cpp
    Anyway, I think I should add a way to change the look of fold indicators.

    Quote Originally Posted by NoobSaibot View Post
    /edit: well actually there's nothing to attach to the bug report, as it happens right on the start; there's no file loaded at all. hmmm, might be my system configuration.
    This is only a small drawing bug which appears on empty lines in some case. Well, appeared actually for I just fixed it.
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    AFAIK, and I should know quite welll , the drawing of folding rects isn't done in qdocument.cpp but in qfoldpanel.cpp
    Anyway, I think I should add a way to change the look of fold indicators.
    nahh, i mean the dotted rectangle in the text document which appears when you activate the folding. and yes, the +/- rectangles are drawn in the foldpanel -- i wrote my own fold panel ( which is actually a copy of your qfoldpanel with minor modifications ).

    thanks for fixing!! continue the great work.

    if you could provide me the information where i get the current syntax used. i don't seem to be able to figure that one out

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.