Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

How does codecompletion_toolbar.xrc generate?

(1/1)

ollydbg:
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.


MortenMacFly:

--- Quote from: ollydbg on December 15, 2011, 08:04:02 am ---So, how does this file generate? It looks like it can't be opened by wxSmith.

--- End quote ---
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.

ollydbg:

--- Quote from: MortenMacFly on December 15, 2011, 08:06:34 am ---However, wxSmith should be able to handle. It if not, then this is a bug.

--- End quote ---
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.
--- End quote ---
Yeah, there should be 6 xrc file in the codecompletion's source/resource tree, so simply you can add it. :)

Jenna:
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).

oBFusCATed:

--- Quote from: jens on December 15, 2011, 08:46:16 am ---Due to this limitations, I created the xrc-file for the toolbar of IncrementalSearch manually (it's not so hard).

--- End quote ---
I've never thought of using a gui tool for this, it is simple copy-paste stuff:)

Navigation

[0] Message Index

Go to full version