Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    Fixed. (I've not tested but applied the suggested patch which I hope will be enough...)
    I just checked - you missed line 331 in qdocument_p.h :-)

    Also, I just spotted a problem when compiling on mac:

    Qt Code:
    1. /Users/dominik/Documents/code/edyuk/3rdparty/qcodeedit2/lib/qeditor.cpp: In member function ‘virtual void QEditor::mousePressEvent(QMouseEvent*)’:
    2. /Users/dominik/Documents/code/edyuk/3rdparty/qcodeedit2/lib/qeditor.cpp:1262: error: no match for ‘operator=’ in ‘((QEditor*)this)->QEditor::m_doubleClick = ((QEditor*)this)->QEditor::cursor’
    3. /Users/dominik/Documents/code/edyuk/3rdparty/qcodeedit2/lib/document/qdocumentcursor.h:79: note: candidates are: QDocumentCursor& QDocumentCursor::operator=(const QDocumentCursor&)
    4. /Users/dominik/Documents/code/edyuk/3rdparty/qcodeedit2/lib/qeditor.cpp: In member function ‘virtual bool QEditor::moveKeyEvent(QDocumentCursor&, QKeyEvent*, bool*)’:
    To copy to clipboard, switch view to plain text mode 

    Quote Originally Posted by fullmetalcoder View Post
    What do you mean? That you'd like to use your own syntax engine? Or simply add a hard-coded one? The later is really easy to do but the former is a bit trickier but still doable...
    I mean using a custom syntax engine. Already noticed that it would not be easily doable :-)
    Last edited by Methedrine; 8th December 2007 at 20:16. Reason: added log for mac compiler error
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  2. #2
    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 Methedrine View Post
    I just checked - you missed line 331 in qdocument_p.h :-)

    Also, I just spotted a problem when compiling on mac.

    qeditor.cpp:1262 - you are using an undefined variable there.
    Fixed both.

    Quote Originally Posted by Methedrine View Post
    I mean using a custom syntax engine. Already noticed that it would not be easily doable :-)
    1. Why don't you want to use the default syntax engine? Wouldn't it be simpler and better to extend it rather than creating another one from scratch ?
    2. What exactly do you expect it to do and how much would its internal structure differ from the one of the default syntax engine?
    Answers to these would probably help me to change the syntax engine interface to make room for more than one without changing the existing one...
    Last edited by fullmetalcoder; 8th December 2007 at 20:35.
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    Quote Originally Posted by fullmetalcoder View Post
    Fixed both.
    Thanks again :-)
    Quote Originally Posted by fullmetalcoder View Post
    Fixed both.
    1. Why don't you want to use the default syntax engine? Wouldn't it be simpler and better to extend it rather than creating another one from scratch ?
    2. What exactly do you expect it do do and how much would its internal structure differ from the one of the default syntax engine?
    Answers to these would probably help me to change the syntax engine interface to make room for more than one without changing the existing one...
    We already wrote one from scratch before you came around with this great edit control. It works like a charm, so far (thread-safe, DFA based, result caching). Qtcentre-member kaos can tell you more about it since, he wrote our parser.
    I am also certain that he can give you a better answer to your second question.
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

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.