Plugin for Qt-Creator

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin for Qt-Creator

mail.aroessler
Hi folks,

I recently sent you a mail because of syntax highlighting. Well that should'nt
be a problem. However something else came into my mind. As the editor
functionallity of openSCAD ist not that good at all, why don't we use an
exterenal code editor? For example a Qt-Creator plugin could be great, or a
Kate plugin. The problem I see, is the viewer part of openSCAD. How is that
implemented? I guess it is some kind of 3D Viewer, Qt3D or something, that
just opens a rendered file.

Regards
Alexander

Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Qt-Creator

Joel Bodenmann
Hey Alexander,

One of the reasons why I like OpenSCAD is because I don't need 500MB of
libraries to run it (which I would need for qtc or kate).
OpenSCAD... just download the binary and it will work (at least for me).
I never run into any trouble.
Adding features like actual hilighting and I don't know what ever for
basic concepts should be a big problem in my point of view.
Maybe a vim integration could be the way to go \o/ (fanboy).
Also, I am not quite sure why you would need features like
autocompletion etc. When you have so big projects that you cannot
remember your variable names, I guess you need some serious CAD software
like solidworks.

But just to be clear at this poin: This is just my personal opinion. I
only use OpenSCAD once a month for a couple of days and then never for a
week or two again.
I'm also not a professional designer or anyone else who could say that I
know about this stuff.


Kind regards,

~ Joel Bodenmann

On 01/06/2013 12:13 PM, Alexander Rössler wrote:

> Hi folks,
>
> I recently sent you a mail because of syntax highlighting. Well that should'nt
> be a problem. However something else came into my mind. As the editor
> functionallity of openSCAD ist not that good at all, why don't we use an
> exterenal code editor? For example a Qt-Creator plugin could be great, or a
> Kate plugin. The problem I see, is the viewer part of openSCAD. How is that
> implemented? I guess it is some kind of 3D Viewer, Qt3D or something, that
> just opens a rendered file.
>
> Regards
> Alexander
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566


Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Qt-Creator

rduarte
> One of the reasons why I like OpenSCAD is because I don't need 500MB of
> libraries to run it (which I would need for qtc or kate).
> OpenSCAD... just download the binary and it will work (at least for me).
> I never run into any trouble.

This is the most important feature for me as well.  I'm using openscad in a course that I'm teaching and it is perfect that students can just download the binary and be done with it.  I wish I could have them use some of the other offshoots of openscad, but it's not realistic for me to ask them to download and compile a bunch of dependencies (oh, and a compiler).  The best feature (and of course as everyone mentions, its worst feature - re: variables) is its simplicity.

rob

Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Qt-Creator

Peter Shenkin
And of course the existing external editor facility works well. I use
it with vim all the time,

-P.

On Sun, Jan 6, 2013 at 11:32 AM, rduarte <[hidden email]> wrote:

>> One of the reasons why I like OpenSCAD is because I don't need 500MB of
>> libraries to run it (which I would need for qtc or kate).
>> OpenSCAD... just download the binary and it will work (at least for me).
>> I never run into any trouble.
>
> This is the most important feature for me as well.  I'm using openscad in a course that I'm teaching and it is perfect that students can just download the binary and be done with it.  I wish I could have them use some of the other offshoots of openscad, but it's not realistic for me to ask them to download and compile a bunch of dependencies (oh, and a compiler).  The best feature (and of course as everyone mentions, its worst feature - re: variables) is its simplicity.
>
> rob
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566

Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Qt-Creator

Joel Bodenmann
That's correct. You can use vim or any other editor of your choice to write your code and disable the code and compile view of openscad. Then you can configure openscad that it does automatically re-render the view whenever the file has been saved.


~ Joel Bodenmann

Peter Shenkin <[hidden email]> wrote:
And of course the existing external editor facility works well. I use
it with vim all the time,

-P.

On Sun, Jan 6, 2013 at 11:32 AM, rduarte <[hidden email]> wrote:
One of the reasons why I like OpenSCAD is because I don't need 500MB of
libraries to run it (which I would need for qtc or kate).
OpenSCAD... just download the binary and it will work (at least for me).
I never run into any trouble.

This is the most important feature for me as well. I'm using openscad in a course that I'm teaching and it is perfect that students can just download the binary and be done with it. I wish I could have them use some of the other offshoots of openscad, but it's not realistic for me to ask them to download and compile a bunch of dependencies (oh, and a compiler). The best feature (and of course as everyone mentions, its worst feature - re: variables) is its simplicity.

rob


OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Qt-Creator

kintel
Administrator
In reply to this post by mail.aroessler
On 2013-01-06, at 06:13 , Alexander Rössler wrote:

> As the editor
> functionallity of openSCAD ist not that good at all, why don't we use an
> exterenal code editor? For example a Qt-Creator plugin could be great, or a
> Kate plugin.

A long while ago, we tried to transition into using QCodeEdit (http://qcodeedit.org), but development of that editor kind of died, so we disabled that code (it's still in there though). Now that QCodeEdit appears to perhaps be revived, it could be interesting to look at it again.
This wouldn't affect binary sizes or installation dependencies.

 -Marius


Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Qt-Creator

Giles Bathgate-2
Having developed the QCodeEdit syntax highligher I wouldn't recommend reviving that code. Christopher Colah wrote a syntax highligher that doesn't use any additional dependencies. I recommend merging that code in:


(There will be some work involved in cherrypicking in the bits you want)

Regards,
Giles