If I click, then somewhere else shift click, I would expect a selection to appear between the two places. This is not working on my machine, which may be relevant to the rectangular selection issues.
If I click, then somewhere else shift click, I would expect a selection to appear between the two places. This is not working on my machine, which may be relevant to the rectangular selection issues.
Apologies... I forgot committing the latest changes...
It is. But your working copy lacks a restriction so the "trail" may not be as usable as it should...
I've finally dealt with the drag and drop issue and the code (for ALL these neat features) is at last available on SVN. Have fun!![]()
Current Qt projects : QCodeEdit, RotiDeCode
That is definitely better. I get a rectangular selection now, provided I use ctrl-shift and drag the mouse gently down the screen. If I move the mouse too fast, it skips some lines. So my rectangular selection has gaps in it!
I noticed another thing about clicking the start of a block and shift clicking the end. The first time I try this after invocation, it works and I get the range selected. All subsequent attempts fail. Do you see this?
If this worked it would provide a workaround to the drag speed restriction.
Fixed. I also made dragging more consistent and natural : dragging back does not leave unwanted cursors/selection anymore
As far as I understand the code, this action shouldn't even have lead to a selection but I fixed this... I also added the possibility to column select without dragging : click somewhere and then click somewhere else while holding down shift and control.
The only downside of having such functionnalities is that I'll have to write a maual if I want users to take advantage of them...Anybody willing to help with this?
Current Qt projects : QCodeEdit, RotiDeCode
Usability (5th November 2007)
We have a working column editor now.
This is an impressive software component. You should be proud.
Here is a thought.
With your cursor mirrors, could you allow the cursor movement keys to operate on all the cursors?
I just wanted to add some characters to the end of a 100 or so lines of different length. It would have been really nice to drop a cursor mirror on all the lines, push the end of line key, and start typing.
Then you could do other useful edits with a column of cursors, for example left arrow back a few characters and insert something.
You would kill of the cursor mirrors and return to a single cursor with a mouse click.
I added the possiblity to move aligned cursors (including but not limited to column edit) as long as the "real" cursor remains on the same line. This moves support Shift-based selection so it is possible to turn a column edit into column selection or to extend a column selection through the keyboard.
Support for such "extended" key bindings is more controversial (and currently trickier to implement) for it would break column edit but I guess I can always add a workaround for the end of line key since I admit this one would be handy...
Edit : after reviewing the changes with a more critical eye it appeared to be less consistent than I expected so I instead implemented a proper full "cursor move mirroring". Mirrors disappear as soon as any cursor (real or mirror) leave the line it was on and the alignment can always be restored (as long as there are cursor mirrors of course...) thorugh the start key.
Last edited by fullmetalcoder; 5th November 2007 at 16:20.
Current Qt projects : QCodeEdit, RotiDeCode
Done.
As you suggested I selected the "comment/single" context (and the content of the first <start> tag so avoid putting regexp here...). The actions are accessible via Ctrl+D and Ctrl+Shift+D, as in Kwrite/Kate but also through the context menu (beware though... they operate on current line(s), not on the one to which mouse cursor points...).
Current Qt projects : QCodeEdit, RotiDeCode
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 errorsAny idea??Qt Code:
c:\Qt\4.2.2\include\QtCore\../../src\corelib\global\qglobal.h(1464) : error C2027: use of undefined type 'QMargin' src\editor\qeditor.h(34) : see declaration of 'QMargin' c:\Qt\4.2.2\include\QtCore\../../src\corelib\tools\qlist.h(327) : see reference to class template instantiation 'QTypeInfo<T>' being compiled with [ T=QMargin ] 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 *)' with [ T=QMargin ] D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(136) : while compiling class-template member function 'QList<T>::~QList(void)' with [ T=QMargin ] src\editor\qeditor.h(134) : see reference to class template instantiation 'QList<T>' being compiled with [ T=QMargin ] c:\Qt\4.2.2\include\QtCore\../../src\corelib\tools\qlist.h(329) : error C2514: 'QMargin' : class has no constructors src\editor\qeditor.h(34) : see declaration of 'QMargin' c:\Qt\4.2.2\include\QtCore\../../src\corelib\tools\qlist.h(332) : error C2514: 'QMargin' : class has no constructors src\editor\qeditor.h(34) : see declaration of 'QMargin' qplaintextedit.cpp ..... (and many more.......)To copy to clipboard, switch view to plain text mode
I wonder how others are able to compile.
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.
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:
svn checkout http://edyuk.svn.sourceforge.net/svnroot/edyuk/trunk/3rdparty/qcodeedit2To copy to clipboard, switch view to plain text mode
We need a FAQ on this.
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.
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.
Bookmarks