Page 8 of 11 FirstFirst ... 678910 ... LastLast
Results 141 to 160 of 216

Thread: QCodeEdit

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

    A couple more good news :
    • caduel has just fixed the code to work with Qt 4.4 (well actually it broke Qt 4.3 backward compat but I fixed that by now so everything is fine regarding this issue
    • I achieved very significant speed improvements when editing veryl arge files (especially near the end where it used to lag...)
    • Fixed cursor auto update mechanism in combination with cursor mirrors (typing enter when using cursor mirrors used to wreck cursor positions in a somewhat weird way.)
    Current Qt projects : QCodeEdit, RotiDeCode

  2. #142
    Join Date
    Jan 2006
    Posts
    371
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    What was the problem with Qt 4.4? it should compile perfectly, since 4.4 is source compatible with 4.3.

  3. #143
    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
    What was the problem with Qt 4.4? it should compile perfectly, since 4.4 is source compatible with 4.3.
    It's described in a previous post... Contrary to what one could expect there's been some, at least one, API changes which happened in the QBasicAtomic class (got hidden since the introduction of QAtomicInt AFAIK). This class is a low level atomic counter used in reference counting (in both text lines and cursors).
    Current Qt projects : QCodeEdit, RotiDeCode

  4. #144
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QCodeEdit

    They weren't part of the public API, were they?
    J-P Nurmi

  5. #145
    Join Date
    Jan 2006
    Posts
    371
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    It's described in a previous post... Contrary to what one could expect there's been some, at least one, API changes which happened in the QBasicAtomic class (got hidden since the introduction of QAtomicInt AFAIK). This class is a low level atomic counter used in reference counting (in both text lines and cursors).
    BTW, I am getting compilation problems on 4.3. What version do you support ...? 4.4? 4.3?

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

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

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

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

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

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

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

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

  14. #154
    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?

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

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

  17. #157
    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?

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

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

    NoobSaibot (18th January 2008)

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

    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 21:28. Reason: updated contents

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

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.