Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QCodeEdit

    Looks promising... When will QCodeEdit 2 be available for use? I tried downloading from svn using below address but was unable to connect.

  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 magland View Post
    I tried downloading from svn using below address but was unable to connect.
    You can't "download" from SVN but, provided you have a Subversion client installed, you can "checkout" the content of a repository... The code is already available through SVN but no package will be issued before at least a week...
    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

    I have a little trouble getting QCodeEdit2 to compile on Ubuntu Feisty, see this log:
    daehlith@nurse:~/projects/edyuk/edyuk/trunk/3rdparty/qcodeedit2$ qmake -v
    QMake version 2.01a
    Using Qt version 4.3.0 in /usr/lib
    daehlith@nurse:~/projects/edyuk/edyuk/trunk/3rdparty/qcodeedit2$ qmake
    daehlith@nurse:~/projects/edyuk/edyuk/trunk/3rdparty/qcodeedit2$ make
    cd lib/ && make -f Makefile
    make[1]: Betrete Verzeichnis '/home/daehlith/projects/edyuk/edyuk/trunk/3rdparty/qcodeedit2/lib'
    g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQNFA_BUILD -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Idocument -Ilanguage -Iwidgets -Iqxs -Iqnfa -I../../qpluginsystem -I.build -I.build -o .build/qsearchreplacepanel.o widgets/qsearchreplacepanel.cpp
    .build/ui_searchreplace.h: In member function »void Ui_SearchReplace::setupUi(QWidget*)«:
    .build/ui_searchreplace.h:56: Fehler: »class QVBoxLayout« hat kein Element namens »setLeftMargin«
    .build/ui_searchreplace.h:57: Fehler: »class QVBoxLayout« hat kein Element namens »setTopMargin«
    .build/ui_searchreplace.h:58: Fehler: »class QVBoxLayout« hat kein Element namens »setRightMargin«
    .build/ui_searchreplace.h:59: Fehler: »class QVBoxLayout« hat kein Element namens »setBottomMargin«
    .build/ui_searchreplace.h:73: Fehler: »class QHBoxLayout« hat kein Element namens »setLeftMargin«
    .build/ui_searchreplace.h:74: Fehler: »class QHBoxLayout« hat kein Element namens »setTopMargin«
    .build/ui_searchreplace.h:75: Fehler: »class QHBoxLayout« hat kein Element namens »setRightMargin«
    .build/ui_searchreplace.h:76: Fehler: »class QHBoxLayout« hat kein Element namens »setBottomMargin«
    .build/ui_searchreplace.h:169: Fehler: »class QHBoxLayout« hat kein Element namens »setLeftMargin«
    .build/ui_searchreplace.h:170: Fehler: »class QHBoxLayout« hat kein Element namens »setTopMargin«
    .build/ui_searchreplace.h:171: Fehler: »class QHBoxLayout« hat kein Element namens »setRightMargin«
    .build/ui_searchreplace.h:172: Fehler: »class QHBoxLayout« hat kein Element namens »setBottomMargin«
    make[1]: *** [.build/qsearchreplacepanel.o] Fehler 1
    make[1]: Verlasse Verzeichnis '/home/daehlith/projects/edyuk/edyuk/trunk/3rdparty/qcodeedit2/lib'
    make: *** [sub-lib-make_default] Fehler 2
    daehlith@nurse:~/projects/edyuk/edyuk/trunk/3rdparty/qcodeedit2$
    Sorry that these error message are german, but its just the compiler complaining about missing functions. Solution?
    Last edited by jacek; 30th July 2007 at 21:47. Reason: changed [code] to [quote]
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  4. #4
    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
    Sorry that these error message are german, but its just the compiler complaining about missing functions. Solution?
    This has been discussed in Edyuk thread already : Qt Designer from Qt 4.3.0 generates ui files that uic from Qt 4.2 can not turn into proper code since margin managements of layout has changed... There are several ways to get rid of this :
    • switch to Qt 4.3.0 (obvious but not always affordable)
    • modify ui files (either by hand or, possibly, through designer from Qt 4.2) to replace new properties by old, backward compatible ones
    • wait for the Trolls to fix this (I've submitted a bug report, just wait and see...)
    Current Qt projects : QCodeEdit, RotiDeCode

  5. #5
    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
    This has been discussed in Edyuk thread already : Qt Designer from Qt 4.3.0 generates ui files that uic from Qt 4.2 can not turn into proper code since margin managements of layout has changed... There are several ways to get rid of this :
    • switch to Qt 4.3.0 (obvious but not always affordable)
    • modify ui files (either by hand or, possibly, through designer from Qt 4.2) to replace new properties by old, backward compatible ones
    • wait for the Trolls to fix this (I've submitted a bug report, just wait and see...)
    I am using Qt 4.3.0 obviously. Guess I have to edit it by hand then.
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  6. #6
    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 am using Qt 4.3.0 obviously.
    I did not even spot that... It's much weirder then... try out re-generating the header file from the ui (make distclean && qmake && make OR "dummy edit" in the .ui)

    Quote Originally Posted by Methedrine View Post
    Guess I have to edit it by hand then.
    Try a dummy edit first, to see if your uic version still generates a faulty code and feed me back... The bug submitted to TT might prove broader than expected...
    Current Qt projects : QCodeEdit, RotiDeCode

  7. #7
    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
    I did not even spot that... It's much weirder then... try out re-generating the header file from the ui (make distclean && qmake && make OR "dummy edit" in the .ui)
    Thank you, make distclean solved the issue. Should have checked that myself first, actually. Anyway, worked now
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  8. #8
    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
    Anyway, worked now
    Nice to hear! Please feed me back. All suggestions, feelings and bug reports are relevant. QCodeEdit is meant to be usable and useful (i.e. to fulfil both users and coders need )

    Time for fun has just come. Here's the last eye-candy : the generic highlighting definition for XML being displayed to test itself. I'm quite proud of the efficiency of it, especially relatively to its small size and human-readability!

    BTW if you feel like creating new syntax definitions please do it. The 5 existing ones are far from being complete, though sufficient for Edyuk until now (C++, Doxygen, Python, C# and XML)
    Attached Images Attached Images
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Hey,

    is there any update on the QCodeEdit / QCodeModel 2 development? :-)

    The framework looked fairly impressive the last time I checked it out.
    "If you lie to the compiler, it will get its revenge." - Henry Spencer

  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 Methedrine View Post
    is there any update on the QCodeEdit / QCodeModel 2 development? :-)

    The framework looked fairly impressive the last time I checked it out.
    There have loads of improvements since I last talked about it here but since I did not get much feedback I stopped reporting progress.... The code is still available through in Edyuk SVN trunk and be tested both independently (a minimal example is provided) and within Edyuk. QCodeModel 2 is fairly mature (try out Edyuk completion... ) and QCodeEdit 2 works pretty well but it will need more testing/polishing before I can release anything (the search functionnalities are quite limited ATM for instance).
    Current Qt projects : QCodeEdit, RotiDeCode

  11. #11
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    This editor looks like it could be very useful to me. In particular I like the ability to extend the syntax highlighting just with XML, as I have a couple of obscure languages I want to support.

    I have it starting up inside my application, but cannot figure out how to make it go to a chosen line number. I need this for locating items in the source when the user clicks on them in my structure view.

    Is this possible?
    I am using the version from Edyuk beta 3.

    Thanks in advance.

  12. #12
    Join Date
    May 2007
    Location
    England
    Posts
    56
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QCodeEdit

    And another thing...
    Does it work on your machine with a variable width font? Here, unless I go for the default fixed with font, selecting part of a line causes corruption of the text. For example, choose a proportional font, and select a the word in the middle of a line and let me know if the line is still readable for you.

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.