Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: David Perfors on September 08, 2005, 06:30:24 pm

Title: [wxSmith]Howto edit excist dialog
Post by: David Perfors on September 08, 2005, 06:30:24 pm
I can't find how to edit an excisting dialog. do I miss something?
Title: Re: [wxSmith]Howto edit excist dialog
Post by: cyberkoa on September 15, 2005, 06:21:55 am
since the main developer byo is not around in week, I try to answer your question ,sorry if I am wrong.

In this stage , the saving to xrc format is development in  progress , and the loading of xrc into a wxSmith project is not done yet.

Title: Re: [wxSmith]Howto edit excist dialog
Post by: byo on September 15, 2005, 11:51:48 pm
since the main developer byo is not around in week, I try to answer your question ,sorry if I am wrong.

In this stage , the saving to xrc format is development in  progress , and the loading of xrc into a wxSmith project is not done yet.



Hi, I'm back :)

I've just added XRC import option to wxSmith (it's inside wxSmith menu) :).
But be careful - when wxSmith doesn't recognize widget, it will be skipped with all of it's children (of course with notification dialog ;) ).
Maybe there are other incompatibilities with xrc structure, if You find any, let us know :)
Title: Re: [wxSmith]Howto edit excist dialog
Post by: David Perfors on September 20, 2005, 08:33:37 am
Thanks, I will try it as soon as I manage to compile it :P
Title: Re: [wxSmith]Howto edit excist dialog
Post by: yop on December 11, 2005, 09:08:25 pm
What's the status on the xrc import functionality? I built a xrc file using wxSmith, but the underlying code didn't match my dialog and the dialog was listed in "External Resources". Then I removed it from my project and gave import xrc a shot but the imported dialog is blank. Anyway I could add the xrc and write the underlying code to load it up, but the automation of wxSmith has spoiled me ;)
The above in a few words:
I built an xrc file using wxSmith
I tried to import it
I ended up with an empty dialog

BTW (I don't remember if I've mentioned it before) wxSmith is a GREAT piece of work! I designed the dialog by hand and built it in less than half an hour  :shock:
Title: Re: [wxSmith]Howto edit excist dialog
Post by: byo on December 11, 2005, 11:28:19 pm
What's the status on the xrc import functionality? I built a xrc file using wxSmith, but the underlying code didn't match my dialog and the dialog was listed in "External Resources". Then I removed it from my project and gave import xrc a shot but the imported dialog is blank. Anyway I could add the xrc and write the underlying code to load it up, but the automation of wxSmith has spoiled me ;)
The above in a few words:
I built an xrc file using wxSmith
I tried to import it
I ended up with an empty dialog

BTW (I don't remember if I've mentioned it before) wxSmith is a GREAT piece of work! I designed the dialog by hand and built it in less than half an hour  :shock:

Ok, I guess You're using latest svn snapshoot (in RC2 there's no ability to open xrc files).
I haven't tested this option much (I mean editing external xrc files) - Could You reporoduce and send me content of this xrc ?

Maybe some explanation here:
wxSmith uses it's own format for resource files. In fact it's modified version of xrc but with additional data. Resources managed by wxSmith are in *.wxs files (in wxsmith directory created inside project). There resources can be used to generate source code which build resource or create xrc file for it and class using this xrc file.

And When You say that You've got empty window after importing it seems to be a bug  :oops:.

Currently the best way to use resources is to create them but after adding using wxSmith->Add ... enteries :). (Currently I doin't have enough time to work on wxSmithi but I hope that it will change soon)
Title: Re: [wxSmith]Howto edit excist dialog
Post by: yop on December 12, 2005, 10:04:38 am
Ok, I guess You're using latest svn snapshoot (in RC2 there's no ability to open xrc files).
I haven't tested this option much (I mean editing external xrc files) - Could You reporoduce and send me content of this xrc ?
Yes I'm using the latest SVN snapshot (I'm building a plugin for quite a while and now that I found some time I'm more active with it). I am attaching the xrc file that I am talking about. Note that it has been built with wxSmith from scratch
Maybe some explanation here:
wxSmith uses it's own format for resource files. In fact it's modified version of xrc but with additional data. Resources managed by wxSmith are in *.wxs files (in wxsmith directory created inside project). There resources can be used to generate source code which build resource or create xrc file for it and class using this xrc file.
I 've noticed how it works and the *.wxs files and that's the one I can't get :( (my resource file gets listed under external resources). I was aiming for the code generation functionality when using wxSmith.
Currently the best way to use resources is to create them but after adding using wxSmith->Add ... enteries :). (Currently I doin't have enough time to work on wxSmithi but I hope that it will change soon)
That's the way I used but then something got mixed up and the dialog loaded to the project wasn't the one I was building. I had the xrc file so I thought that I could just remove the messed up entry and import the one from my xrc ;). There is no rush, I have my dialog working and have written the code I need to use it. The dialog was built in just a few minutes and that's why I said that it's great plugin :)

[attachment deleted by admin]
Title: Re: [wxSmith]Howto edit excist dialog
Post by: byo on December 12, 2005, 12:20:22 pm
Thx for the file - I'll look into it later :).

And thx for using wxSmith for building plugins :D