Results 1 to 20 of 216

Thread: QCodeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2006
    Posts
    339
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 21 Times in 16 Posts

    Default Re: QCodeEdit

    Lots of errors in "qcodeedit-1.0".

    What I did on windows (qt4.2)?
    1. Unzipped the file
    2. Loaded the example.pro
    3. Loaded the qcodeedit.pro
    4. Loaded the standalone.pro
    5. made example.pro dependent on qcodeedit and standalone
    6. Build
    7. Lots of errors
    Qt Code:
    1. c:\Qt\4.2.2\include\QtCore\../../src\corelib\global\qglobal.h(1464) : error C2027: use of undefined type 'QMargin'
    2. src\editor\qeditor.h(34) : see declaration of 'QMargin'
    3. c:\Qt\4.2.2\include\QtCore\../../src\corelib\tools\qlist.h(327) : see reference to class template instantiation 'QTypeInfo<T>' being compiled
    4. with
    5. [
    6. T=QMargin
    7. ]
    8. D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(521) : while compiling class-template member function 'void QList<T>::node_copy(QList<T>::Node *,QList<T>::Node *,QList<T>::Node *)'
    9. with
    10. [
    11. T=QMargin
    12. ]
    13. D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(136) : while compiling class-template member function 'QList<T>::~QList(void)'
    14. with
    15. [
    16. T=QMargin
    17. ]
    18. src\editor\qeditor.h(134) : see reference to class template instantiation 'QList<T>' being compiled
    19. with
    20. [
    21. T=QMargin
    22. ]
    23. c:\Qt\4.2.2\include\QtCore\../../src\corelib\tools\qlist.h(329) : error C2514: 'QMargin' : class has no constructors
    24. src\editor\qeditor.h(34) : see declaration of 'QMargin'
    25. c:\Qt\4.2.2\include\QtCore\../../src\corelib\tools\qlist.h(332) : error C2514: 'QMargin' : class has no constructors
    26. src\editor\qeditor.h(34) : see declaration of 'QMargin'
    27. qplaintextedit.cpp ..... (and many more.......)
    To copy to clipboard, switch view to plain text mode 
    Any idea??
    I wonder how others are able to compile.

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

    Default Re: QCodeEdit

    This means that the UI files are generated by QtDesigner4.3, and are not compatible with Qt4.2.

    You have to install Qt4.3 or fix the UI files by loading them into Qtdesigner4.2 and then saving them back. There will be some information loose (the margins etc), but it will be easy to fix.

  3. #3
    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 vermarajeev View Post
    I wonder how others are able to compile.
    They are using the code from SVN trunk... The code you downloaded is really old and hardly worth testing considering all the bugfixes and improvements that have been done since then...
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Default Re: QCodeEdit

    Quote Originally Posted by vermarajeev View Post
    I wonder how others are able to compile.
    Sure, its confusing with that obsolete qcodeedit directory sitting there.
    The thing you need to know is that the working version of qcodeedit is the one inside Edyuk. You can get it like this:

    Qt Code:
    1. svn checkout http://edyuk.svn.sourceforge.net/svnroot/edyuk/trunk/3rdparty/qcodeedit2
    To copy to clipboard, switch view to plain text mode 

    We need a FAQ on this.

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

    Default Re: QCodeEdit

    Is there any way of making the editor save its contents under a new name?

    pEditor->setFileName(qsNewFileName);
    pEditor->save();

    Looked tempting, but setFileName is protected. This would seem like basic functionality I would expect to be able to do without subclassing.

  6. #6
    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 Usability View Post
    Is there any way of making the editor save its contents under a new name?

    pEditor->setFileName(qsNewFileName);
    pEditor->save();

    Looked tempting, but setFileName is protected. This would seem like basic functionality I would expect to be able to do without subclassing.
    The "protected" visibility of this method stems from early genesis of QCodeEdit when it was not yet fully separated from Edyuk and thus dependent on qmdilib... Fixed.
    Current Qt projects : QCodeEdit, RotiDeCode

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

    Usability (6th November 2007)

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

    Default Re: QCodeEdit

    Sorted, thanks!

  9. #8
    Join Date
    Sep 2006
    Posts
    339
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 21 Times in 16 Posts

    Default Re: QCodeEdit

    Very confusing
    I go to edyuk.svn.sourceforge.net/svnroot/edyuk/trunk/3rdparty/qcodeedit2 and then how do I download the code. I get a link
    1. "Revision 365: /trunk/3rdparty"
    2. Click on "codeedit2"
    3. another tab appears.

    Is there a way I can download the new version of codeedit?

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

    Default Re: QCodeEdit

    Quote Originally Posted by vermarajeev View Post
    Very confusing
    Is there a way I can download the new version of codeedit?
    Is there a reason you cannot just run the svn command I posed further up this page? That will create a qcodeedit2 directory containing all the source.
    You do not need a login account or anything, which is something that surprised me the first time I did it.

    This is all you need to download the editor, build the editor and its example program, and run the demo

    Qt Code:
    1. svn checkout http://edyuk.svn.sourceforge.net/svnroot/edyuk/trunk/3rdparty/qcodeedit2
    2. cd qcodeedit2
    3. qmake
    4. make
    5. example/example lib/qcodeedit.cpp
    To copy to clipboard, switch view to plain text mode 

    I think the speed with which this editor is being developed means you have to get into svn.

    The demo is no use as an editor, no save menu for example, its just there to show you how to call the editor from your own code. And its handy for logging bugs

  11. #10
    Join Date
    Sep 2006
    Posts
    339
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    15
    Thanked 21 Times in 16 Posts

    Default Re: QCodeEdit

    See the attached file.
    I copy the path "http://edyuk.svn.sourceforge.net/svnroot/edyuk/trunk/3rdparty/qcodeedit2" in Mozilla and I get the page as shown in the image attached.
    Attached Images Attached Images

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

    Default Re: QCodeEdit

    Go grab yourself a subversion client: http://subversion.tigris.org/ (svn-1.4.5-setup.exe is a good choice for Windows).
    J-P Nurmi

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

    Default Re: QCodeEdit

    I get the page as shown in the image attached.
    Thats the place. You want all of those files, directories, contents of the directories etc. Download them from the browser if you must.

    Or there is always the single svn command.

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

    Question Re: QCodeEdit

    I think we had a regression in the find feature in the last build. I notice now that if I do

    example/example lib/qcodeedit.cpp

    then ctrl-f to get the find dialog, then search for "this", it finds the first hit but refuses to find any of the others. Both the next icon, and the return key fail to repeat the find.

  15. #14
    Join Date
    Jun 2007
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Question Re: QCodeEdit

    The QCodeEdit is amazing.
    I would like to use it in my project. I am able to compile it only dynamicly/shared, but I when compiling statically on windows using mingw i get error, because it links -lqtmaind -lqtcored -lqtguid , but in the static-Qt, there are only theese libraries without the "d" at the end of the library names.

    Thanks for help.

  16. #15
    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 allstar View Post
    The QCodeEdit is amazing.
    I would like to use it in my project. I am able to compile it only dynamicly/shared, but I when compiling statically on windows using mingw i get error, because it links -lqtmaind -lqtcored -lqtguid , but in the static-Qt, there are only theese libraries without the "d" at the end of the library names.

    Thanks for help.
    Trying running "make release" (or "mingw32-make release") instead of just "make"... If it does not work open the project files and make sure the build mode is set to "release" (CONFIG += release)...

    Quote Originally Posted by Usability
    I think we had a regression in the find feature in the last build. I notice now that if I do

    example/example lib/qcodeedit.cpp

    then ctrl-f to get the find dialog, then search for "this", it finds the first hit but refuses to find any of the others. Both the next icon, and the return key fail to repeat the find.
    Right. It comes from the new behavior of QDocumentCursor::clearSelection() which used to leave the column number unchanged while it now sets it back to anchor column (introduced to make column selection consistent...). The fix is fortunately a one-liner and should be committed by the time you read this
    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.