Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: ollydbg on December 15, 2011, 08:04:02 am

Title: How does codecompletion_toolbar.xrc generate?
Post by: ollydbg on December 15, 2011, 08:04:02 am
Here is the file:
codeblocks_trunk\src\plugins\codecompletion\resources\codecompletion_toolbar.xrc
And there are 5 other xrc files in this folder.

but I can't find it in the codeblocks.cbp project tree-> Resources-> plugins -> CodeCompletion ->Resources.
The other 5 xrc files were correctly shown in the project tree.

So, how does this file generate? It looks like it can't be opened by wxSmith.


Title: Re: How does codecompletion_toolbar.xrc generate?
Post by: MortenMacFly on December 15, 2011, 08:06:34 am
So, how does this file generate? It looks like it can't be opened by wxSmith.
I used to use xrced that ships with wxPython.

However, wxSmith should be able to handle. It if not, then this is a bug. BTW: Not all XRC files are in the source tree. They should be there though. So it seems the one you are referring to are simply missing in the project file.
Title: Re: How does codecompletion_toolbar.xrc generate?
Post by: ollydbg on December 15, 2011, 08:12:39 am
However, wxSmith should be able to handle. It if not, then this is a bug.
I have add this xrc file to the source tree, but double click on it (by default it will opened by wxsmith), nothing happened.

Quote
BTW: Not all XRC files are in the source tree. They should be there though. So it seems the one you are referring to are simply missing in the project file.
Yeah, there should be 6 xrc file in the codecompletion's source/resource tree, so simply you can add it. :)
Title: Re: How does codecompletion_toolbar.xrc generate?
Post by: Jenna on December 15, 2011, 08:46:16 am
It can not be handled by wxSmith, because it contains the proprietary wxToolBarAddon, that can be handled by our xrc-loader (see sdk/xtra_res.cpp), but not by wxSmith.

I don't know, why wxToolBarAddOn was created, maybe some other devs remember (most likely some wxToolBar limitations), but even if we would use wxToolBar directly, it could not be handled by wxSmith, because wxSmith only handles toolbars inside a wxFrame.

Due to this limitations, I created the xrc-file for the toolbar of IncrementalSearch manually (it's not so hard).
Title: Re: How does codecompletion_toolbar.xrc generate?
Post by: oBFusCATed on December 15, 2011, 10:35:34 am
Due to this limitations, I created the xrc-file for the toolbar of IncrementalSearch manually (it's not so hard).
I've never thought of using a gui tool for this, it is simple copy-paste stuff:)