Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: byo on April 13, 2007, 04:10:35 am

Title: Adding extra items to wxSmith - tutorial
Post by: byo on April 13, 2007, 04:10:35 am
Hi,

I've just added tutorial (http://wiki.codeblocks.org/index.php?title=Creating_a_plugin_which_adds_new_item_into_wxSmith) on wiki which show how to add extra widget for wxSmith from external plugin. Since I don't know how to add 7z files into wiki (I'm still wiki newbie ;) ), I post plugin's source here.

Please also note that this tutorial covers only basics of wxSmith extensions and it may be buggy (for example I haven't even tested what will happen when plugin with extensions is loaded and wxSmith is not), but I hope that this tutorial will help you play with wxSmith and find such things.

Any sugestions are welcome :)

Regards
  BYO

[attachment deleted by admin]
Title: Re: Adding extra items to wxSmith - tutorial
Post by: Biplab on April 13, 2007, 05:04:31 am
Cool tutorial. Hopefully users will find this new features very useful.

Kudos, Byo. :D
Title: Re: Adding extra items to wxSmith - tutorial
Post by: mandrav on April 13, 2007, 09:24:57 am
Byo, I have only one word to say:


E X C E L L E N T !!!
Title: Re: Adding extra items to wxSmith - tutorial
Post by: byo on April 14, 2007, 11:28:29 am
I'll try to give some more tutorials in short time (in a week) so stay tuned ;)

Another question especially to Mandrav: can I add new plugin with contrib items into svn source? We could put items provided bu users there and build some bigger contrib items library, what do you think ?

BYO
Title: Re: Adding extra items to wxSmith - tutorial
Post by: mandrav on April 14, 2007, 12:10:06 pm
Another question especially to Mandrav: can I add new plugin with contrib items into svn source? We could put items provided bu users there and build some bigger contrib items library, what do you think ?

Of course we can. Actually I was thinking that maybe you should create a web page (in the wiki maybe) with a list of contrib widgets to create and whether they 're assigned to anyone (i.e. being worked on), so that efforts are not duplicated among developers.
Title: Re: Adding extra items to wxSmith - tutorial
Post by: mike__t on April 16, 2007, 03:23:52 am
Works very nicely.   I moved over a control I had previously added to wxSmith; this method should be easier to maintain going forward. 

I did need to change Makefile.am to get the plugin to load correctly on Linux...looks like the filename for the zip file should be all lowercase to match the case of the shared library name.

Title: Re: Adding extra items to wxSmith - tutorial
Post by: byo on April 21, 2007, 02:51:45 pm
I have added few more tutorials (http://wiki.codeblocks.org/index.php?title=WxSmith_extensions), each one covering other aspect of wxSmith.
I've described there how I added wxChartCtrl control into wxSmith beginning from really easy steps and ending with some adanced features. As soon as berlios is up again, I'll commit sources into svn.

I thied to write gramatically correct text but since I'm not english expert (and my english knowledge is rather self-learning one), so if you find any mistakes, feel free to correct them. Thanks to Dmoore who did this with the first tutorial :)

Regards
  BYO
Title: Re: Adding extra items to wxSmith - tutorial
Post by: dmoore on April 23, 2007, 12:19:18 am
no trouble at all byo. keep the good tutorials coming.