Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: MasterAlexei on April 28, 2012, 12:19:01 pm

Title: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: MasterAlexei on April 28, 2012, 12:19:01 pm
Hello every one.
I am using now build SVN 7929 (Updt. from Windows)
and after creating a new wxWidgets project, the wizard has asked me if I want to overwrite the .rc and .fbp files in a CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\ directories.
Earlier it does put this files into projects directory.
Is there some settings to make, to point the right directories for that wizard (I did enter the right directory for my project)?
Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: oBFusCATed on April 28, 2012, 01:11:48 pm
What version of C::B are you using?
I've seen this with self compiled C::B (using autotools) on linux, but I've not bothered to debug it.
Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: MasterAlexei on April 28, 2012, 01:32:30 pm
Oh. Sorry, It's windows version, self compiled from SVN rev7929
Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: Radek on April 28, 2012, 04:40:19 pm
Strange. Unless I am mistaken, the *.fbp file is a wxFormBuilder project file but Code Blocks does not use wxFB. It has its own resource editor, which uses *.wxs files. Code blocks should have nothing common with *.fbp files. Where to store *.fbp and wxFB output files should be decided by wxFB.

Are you using wxFormBuilder?
Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: MasterAlexei on April 28, 2012, 05:32:57 pm
Yes, I am using wxFormBuilder.
All I did is just created new Project:
File->New->Project...->wxWidgets project.
As Preferred GUI builder I select wxFormBuilder, Frame Based, then some other options, and as I click finish, it ask to confirm, that CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\rc\resource.rc file will be overwritten,
then CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\wxfb\frame\GUIFrame.cpp will be overwritten,
then CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\wxfb\frame\GUIFrame.h will be overwritten, and
CodeBlocks\share\CodeBlocks\templates\wizard\wxwidgets\wxfb\frame\WxWizFrame.fbp will be overwritten.

Then it creates a project, where this files are also in a project tree with the whole path, where my CB is located (D:\Soft\SDKs\CB... and so on) but the project is located in D:\MyProjects\wxWidgets\ProjName dir.

Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: oBFusCATed on April 28, 2012, 06:10:05 pm
MasterAlexei: Please try the nightly build and report if the problem is still there.
Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: Radek on April 29, 2012, 07:47:18 am
I am also using wxFB but in Debian and I've never seen the problem. Well, Windows Code Blocks seems to patch the project wizard for some reason. This need not obstacle, you will place the *fbp and wxFB output files where you want, patched wizards or not. Cleansing the project tree is a little nuisance but you do it only once per project. Try creating another "wxFB project" (with patched wizards) for a test and see whether Code Blocks will try to path again or whether the strange patching is over. In the later case, the problem can be ignored most likely.
Title: Re: New Project wisard creates .rc. and WxWizFrame.fbp file in a CBs template dir
Post by: MasterAlexei on September 15, 2012, 09:37:36 am
Hello there again.

I did compile a last revision today (8388) with wx2.8.10 and created a new wxWidgets project with the wizard.
the behavior, that it does not copies the files to the project folder but uses them from the template folder is still here, and also it overwrites them in that template folder.

Best wishes,

Alexey