+ Reply to Thread
Results 1 to 17 of 17

Thread: Artistic Style Plugin

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Artistic Style Plugin

    Hi there!

    Finally I did it myself since I waited long enough... I have created a plugin for creator that formats your code with the great tool Artistic Style. Such a plugin was terrible missing by me, since I am so lazy to keep a consistent structure in my files.

    Right now the plugin is very basic and only have a poor looking configure page. But I will work on it. Also binary versions for the Qt sdk's creator will follow. For now, you have to compile it yourself, but if you want to have a look at it: http://astyleplugin.berlios.de

    Enjoy,

    Lykurg

  2. The following user says thank you to Lykurg for this useful post:

    Olivia (27th April 2011)

  3. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    Hey,

    just release version 0.2! New Stuff:
    • The cursor stays now at the same row after formating and is not jumping around.
    • I have created a new settings page which is now readable...
    • Binaries for Linux SDK and Windows SDK (32 bit): Now you can easily use Artistic Style Plugin with the creator which is bundled in the SDK's. Just extract the downloaded archive in the root directory.



    Lykurg

  4. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    So, here we go again. Version 0.3 is out. I fixed two bugs and do some small enhancements.

    http://astyleplugin.berlios.de

    Lykurg

  5. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    Ok, release 0.4 with one speed and one convenience improvement is out!

    Lykurg

    P.s.: Since I had get my first MacBook Pro that week, I have planed also to release a binary for OS X. Unfortunately mac development is not so easy as thought The next weeks I also wont have time to take care about. So if any of you are familiar with creating a creator plugin for OS X, it would be nice if you could post a minimalistic howto... That would speed up things.
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  6. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    Hi,

    recently I released 0.5.1 with some bugfixes and improvements. Qt Creator 2.0.0 is now also supported.

    Download the Binary for creator 2.0.0 and windows.

    Lykurg
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  7. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    So finally I managed to spend some more time on the plugin. Thus it works now with the new creator version 2.1.0 and it works properly when the code is folded. So check out the new version 0.6!
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  8. #7
    Join Date
    Apr 2011
    Location
    Poland
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Artistic Style Plugin

    Quote Originally Posted by Lykurg View Post
    Ok, release 0.4 with one speed and one convenience improvement is out!

    Lykurg

    P.s.: Since I had get my first MacBook Pro that week, I have planed also to release a binary for OS X. Unfortunately mac development is not so easy as thought The next weeks I also wont have time to take care about. So if any of you are familiar with creating a creator plugin for OS X, it would be nice if you could post a minimalistic howto... That would speed up things.
    Any news about Mac OS X version?

  9. #8
    Join Date
    Apr 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Artistic Style Plugin

    Hi,

    the PlugIn is realy great. But, after updateing to QtC 2.2 it isn't working anymore.
    Is there any plan to port for the latest QtCreator version?

    Best, Richard

  10. #9
    Join Date
    Oct 2011
    Posts
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Artistic Style Plugin

    I know this is an old thread, but I'm interested in this as well. Having a Qt Creator plugin for automatic code style checking seems the best way to go. Has any progress been made on this? Are there other tools/plugins out there that are recommended for Qt/C++ style checking?

  11. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    29,628
    Thanks
    3
    Thanked 4,344 Times in 4,175 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: Artistic Style Plugin

    As far as I know Lorenz is currently working on a new version of the plugin.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #11
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    I doooooooo (http://www.youtube.com/watch?v=o9ItbbkHl5Q, 0:13)! But the goals are so high.... I guess I will need some weeks. So I will hurry up to release a beta, which should do the basic stuff.
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  13. #12
    Join Date
    Oct 2011
    Posts
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Artistic Style Plugin

    I'm glad to hear this project is still alive. I have a few questions though. I'm mainly wondering how extensive the styling options are. The screenshots at the Artistic Style Plugin website seem to indicate that indentation is, for the most part, all the formatting the plugin does. Is this indeed the case? What about enforcing CamelCase for variables? The "m_" prefix for private data members? Ensuring pointer declarations are written as "int* myType" vs. "int * myType" or "int *myType"? The placement of curly braces? These are just some examples of the auto-formatting capabilities I am looking for. It would be fantastic if all these coding styles could be specified with this plugin.

  14. #13
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    It is just a wrapper around Artistic Style. For its options see http://astyle.sourceforge.net/astyle.html.

    CamelCase and "m_" are not supported, since it is too dangerous and you can't be sure that all occurrences get updated. Unless you program a real compiler...
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  15. #14
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin




    Ehm, almost a year later... BUT after a week of pure developing it is ready! Version 1.0.0 - because is sounds nicer then 0.7

    Almost an entire rewrite. Now supports astylerc files defind by OTHER_FILES in the pro file. Looks for astylerc file in the users home directory. It can format a whole (Qt based) project, etc. etc.

    Visit astyleplugin.sourceforge.net! (A git repository will follow.)
    Last edited by Lykurg; 18th February 2013 at 15:15.
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  16. #15
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    Hi,

    just updated to version 1.0.1 and uploaded binary packages to work with the new Qt Creator 2.7.0.
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

  17. #16
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Artistic Style Plugin

    Thank you!!! This application is perfect.
    Last edited by tahayassen; 27th April 2013 at 03:01.

  18. #17
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,337
    Thanks
    19
    Thanked 927 Times in 882 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    Just uploaded a new version which uses Artistic Style 2.03. Enjoy!
    New version of Artistic Style Plugin (1.1.0) for Qt Creator 2.7.0. Check it out: http://astyleplugin.sourceforge.net.

+ Reply to Thread

Similar Threads

  1. Replies: 7
    Last Post: 11th April 2013, 10:55
  2. Do Qt Style Sheets support List-style-image?
    By daiheitan in forum Qt Programming
    Replies: 6
    Last Post: 12th March 2010, 01:41
  3. Problems with Gradient style used through Style sheet on ARM platform
    By puneet.narsapur in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th January 2010, 12:48
  4. Replies: 0
    Last Post: 16th September 2009, 02:33
  5. Replies: 7
    Last Post: 16th February 2009, 21:59

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