Usability (6th November 2007)
Sorted, thanks!
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?
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:
svn checkout http://edyuk.svn.sourceforge.net/svnroot/edyuk/trunk/3rdparty/qcodeedit2 cd qcodeedit2 qmake make example/example lib/qcodeedit.cppTo 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![]()
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.
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
Thats the place. You want all of those files, directories, contents of the directories etc. Download them from the browser if you must.I get the page as shown in the image attached.
Or there is always the single svn command.
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.
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)...
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 thisOriginally Posted by Usability
![]()
Current Qt projects : QCodeEdit, RotiDeCode
Yes, the primary problem was solved, but then I got undefined references to DOM, so I added QT += xml that helped with the xml, but then I got another error:
Qt Code:
C:\qcodeedit2\example>make release make -f Makefile.Release make[1]: Entering directory `C:/qcodeedit2/example' g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-ps eudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o "release\example.exe" .build\main.o -L"d:\build\qt-win-opensource-src-4.3.2\lib" -lmingw32 -lqtmain - L.. -lqcodeedit -lQtXml -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -l winspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvap i32 -lws2_32 d:\build\qt-win-opensource-src-4.3.2\lib\libQtGui.a(qcompleter.o):qcompleter.cpp :(.text$_ZN17QCompletionEngineD0Ev[QCompletionEngine::~QCompletionEngine()]+0x0) : multiple definition of `QCompletionEngine::~QCompletionEngine()' ..\libqcodeedit.a(qcompletionengine.o):c:/qcodeedit2/lib/language/qcompletioneng ine.cpp:50: first defined here d:\build\qt-win-opensource-src-4.3.2\lib\libQtGui.a(qcompleter.o):qcompleter.cpp :(.text$_ZN17QCompletionEngineD1Ev[QCompletionEngine::~QCompletionEngine()]+0x0) : multiple definition of `QCompletionEngine::~QCompletionEngine()' ..\libqcodeedit.a(qcompletionengine.o):c:/qcodeedit2/lib/language/qcompletioneng ine.cpp:50: first defined here .build\main.o:main.cpp:(.text+0x51b): undefined reference to `_imp___ZN14QFormat FactoryC1ERK7QStringP7QObject' .build\main.o:main.cpp:(.text+0x564): undefined reference to `_imp___ZN9QDocumen t16setFormatFactoryEP14QFormatFactory' .build\main.o:main.cpp:(.text+0x58e): undefined reference to `_imp___ZN20QLineMa rksInfoCenter8instanceEv' .build\main.o:main.cpp:(.text+0x5a6): undefined reference to `_imp___ZN20QLineMa rksInfoCenter13loadMarkTypesERK7QString' .build\main.o:main.cpp:(.text+0x5ef): undefined reference to `_imp___ZN16QLangua geFactoryC1EP14QFormatFactoryP7QObject' .build\main.o:main.cpp:(.text+0x638): undefined reference to `_imp___ZN16QLangua geFactory17addDefinitionPathERK7QString' .build\main.o:main.cpp:(.text+0x698): undefined reference to `_imp___ZN9QCodeEdi tC1EP7QWidget' .build\main.o:main.cpp:(.text+0x6c4): undefined reference to `_imp___ZN14QLineMa rkPanelC1EP7QWidget' .build\main.o:main.cpp:(.text+0x6f9): undefined reference to `_imp___ZN9QCodeEdi t8addPanelEP6QPanelNS_8PositionE' .build\main.o:main.cpp:(.text+0x71c): undefined reference to `_imp___ZN16QLineNu mberPanelC1EP7QWidget' .build\main.o:main.cpp:(.text+0x751): undefined reference to `_imp___ZN9QCodeEdi t8addPanelEP6QPanelNS_8PositionE' .build\main.o:main.cpp:(.text+0x774): undefined reference to `_imp___ZN10QFoldPa nelC1EP7QWidget' .build\main.o:main.cpp:(.text+0x7a9): undefined reference to `_imp___ZN9QCodeEdi t8addPanelEP6QPanelNS_8PositionE' .build\main.o:main.cpp:(.text+0x7cc): undefined reference to `_imp___ZN12QStatus PanelC1EP7QWidget' .build\main.o:main.cpp:(.text+0x804): undefined reference to `_imp___ZN9QCodeEdi t8addPanelEP6QPanelNS_8PositionE' .build\main.o:main.cpp:(.text+0x827): undefined reference to `_imp___ZN19QSearch ReplacePanelC1EP7QWidget' .build\main.o:main.cpp:(.text+0x85f): undefined reference to `_imp___ZN9QCodeEdi t8addPanelEP6QPanelNS_8PositionE' .build\main.o:main.cpp:(.text+0x870): undefined reference to `_imp___ZNK9QCodeEd it6editorEv' .build\main.o:main.cpp:(.text+0x898): undefined reference to `_imp___ZNK9QCodeEd it6editorEv' .build\main.o:main.cpp:(.text+0x8a8): undefined reference to `_imp___ZN7QEditor7 setTextERK7QString' .build\main.o:main.cpp:(.text+0x8d5): undefined reference to `_imp___ZNK9QCodeEd it6editorEv' collect2: ld returned 1 exit status make[1]: *** [release\example.exe] Error 1 make[1]: Leaving directory `C:/qcodeedit2/example' make: *** [release] Error 2To copy to clipboard, switch view to plain text mode
Please help, if you can.
All the linking errors (which presumably includes QtXml related ones) come from the fact that you are trying to build QCodeEdit as a static lib... The simplest way to work around this is to add the following line to your project file :
Qt Code:
DEFINES += _QCODE_EDIT_BUILD_To copy to clipboard, switch view to plain text mode
Note : the use of this macro was usually intended as a way to allow direct embedding of the sources but AFAIK it should work just as well with static libs...![]()
Current Qt projects : QCodeEdit, RotiDeCode
Thanks FullMetalCoder, I confirm find is working again.
Thanks. Finally I added it dircetly without the lib and its working. But it was needed to comment QCompletionEngine::~QCompletionEngine() - empty destructor in qcompletionengine.cpp -there was a conflict,( see above).
Otherwise. There is a problem, that you cannot scroll with mousewheel when the cursor is on linenumberbar.
Last edited by allstar; 10th November 2007 at 11:21.
Bookmarks