Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Artistic Style Plugin

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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 5 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013), Olivia (27th April 2011)

  3. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  5. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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

  6. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  7. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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.

  8. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  9. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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

  10. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  11. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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!

  12. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  13. #7
    Join Date
    Apr 2011
    Location
    Poland
    Posts
    10
    Thanks
    2
    Thanked 4 Times in 1 Post
    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?

  14. The following 4 users say thank you to Olivia for this useful post:

    ebirdseystew (18th December 2013)

  15. #8
    Join Date
    Apr 2006
    Posts
    7
    Thanked 4 Times in 1 Post
    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

  16. The following 4 users say thank you to madrich for this useful post:

    ebirdseystew (18th December 2013)

  17. #9
    Join Date
    Oct 2011
    Posts
    35
    Thanked 9 Times in 3 Posts
    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?

  18. The following 4 users say thank you to fonzi337 for this useful post:

    ebirdseystew (18th December 2013)

  19. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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.


  20. The following 4 users say thank you to wysota for this useful post:

    ebirdseystew (18th December 2013)

  21. #11
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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.

  22. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  23. #12
    Join Date
    Oct 2011
    Posts
    35
    Thanked 9 Times in 3 Posts
    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.

  24. The following 4 users say thank you to fonzi337 for this useful post:

    ebirdseystew (18th December 2013)

  25. #13
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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...

  26. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  27. #14
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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 16:15.

  28. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  29. #15
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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.

  30. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  31. #16
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    1
    Thanked 4 Times in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Artistic Style Plugin

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

  32. The following 4 users say thank you to tahayassen for this useful post:

    ebirdseystew (18th December 2013)

  33. #17
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 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!

  34. The following 4 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  35. #18
    Join Date
    Nov 2013
    Posts
    8
    Thanked 5 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Artistic Style Plugin

    hi thank's for this plugin
    but i have a little problem with it it doesn't recognize the arrow operator (->) so when i try to apply (-pad-ope), it arrange all operators except the arrow

  36. The following 5 users say thank you to ghassenus for this useful post:

    ebirdseystew (18th December 2013)

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

    Default Re: Artistic Style Plugin

    Hi, unfortunately I do not develop artistic style. Have you tried if the problem also exist if you call astyle? If so please post a bug report at http://sourceforge.net/p/astyle/bugs/. Also please do use the latest 2.0.4 release. I noticed my plugin uses an older version...

    Currently I am working on a replacement. It hopefully is available after the Christmas Holidays.

    Best

  38. The following 5 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

  39. #20
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Artistic Style Plugin

    Well, it is not the replacement, but I have uploaded a new version which works with QtC 3.0.0. The plugin now uses Artistic Style 2.04.

    The downloads you'll find at the sourceforge page as usual.

    Best

  40. The following 3 users say thank you to Lykurg for this useful post:

    ebirdseystew (18th December 2013)

Similar Threads

  1. Replies: 7
    Last Post: 11th April 2013, 11:55
  2. Do Qt Style Sheets support List-style-image?
    By daiheitan in forum Qt Programming
    Replies: 6
    Last Post: 12th March 2010, 02: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, 13:48
  4. Replies: 0
    Last Post: 16th September 2009, 03:33
  5. Replies: 7
    Last Post: 16th February 2009, 22: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.