Page 4 of 11 FirstFirst ... 23456 ... LastLast
Results 61 to 80 of 216

Thread: QCodeEdit

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

    Default Re: QCodeEdit

    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.

  2. #62
    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 Usability View Post
    It doesn't for me. I get a regular selection. It gives you the complete lines that were diagonally dragged over.

    That sounds perfect, its just I don't see it with the current svn checkout.
    Apologies... I forgot committing the latest changes...

    Quote Originally Posted by Usability View Post
    It gives me a trail of cursor mirrors. Is that the same thing?
    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

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

    Default Re: QCodeEdit

    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.

  4. #64
    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 Usability View Post
    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!
    Fixed. I also made dragging more consistent and natural : dragging back does not leave unwanted cursors/selection anymore

    Quote Originally Posted by Usability View Post
    I noticed another thing about clicking the start of a block and shift clicking the end.
    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

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

    Usability (5th November 2007)

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

    Default Re: QCodeEdit

    We have a working column editor now.

    This is an impressive software component. You should be proud.

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

    Default Re: QCodeEdit

    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.

  8. #67
    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 Usability View Post
    Here is a thought.
    With your cursor mirrors, could you allow the cursor movement keys to operate on all the cursors?
    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.

    Quote Originally Posted by Usability View Post
    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.
    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

  9. #68
    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 Usability View Post
    After rectanguar cut/paste the only other important omission would be commenting in/out a block of text. You could convert to comment by prepending what ever the language template identified with context id="comment/single", and convert from comment by removing that.

    This is important for languages like VHDL and TCL that only have the type of comment character stops at the end of the line.
    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

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

    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.

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

    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.

  12. #71
    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 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

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

    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.

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

    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.

  15. #74
    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 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

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

    Usability (6th November 2007)

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

    Default Re: QCodeEdit

    Sorted, thanks!

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

    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?

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

    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

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

    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

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

    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

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

    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.

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.