User forums > General (but related to Code::Blocks)

What's editor for CB's xrc resource?

<< < (2/3) > >>

ollydbg:

--- Quote from: MortenMacFly on August 26, 2012, 05:18:15 pm ---
--- Quote from: ollydbg on August 26, 2012, 04:49:20 pm ---So, the only way is to edit the raw xml file?

--- End quote ---
I don' see such issues you described

--- End quote ---
That was strange, wxsmith did mess up my xrc files here.

I have tried install "wxForm builder" or "wxGlade", these tools even can NOT import the xrc file.( they will report some errors, either missing some wx classes or other things :( )

I will going to try xrced, it looks like this tool does not update for several years, I'm not sure its installer have bundled everything it needed. (wxGlade has bundled some wxpython dlls as I can see)

MortenMacFly:

--- Quote from: ollydbg on August 26, 2012, 05:28:11 pm ---I will going to try xrced, it looks like this tool does not update for several years, I'm not sure its installer have bundled everything it needed.

--- End quote ---
It is constantly updated. But not as a stabd-alone tool anymore, but as part of wxPython (as I've said). so you'll need Python, and then wxPython 2.9.x..

oBFusCATed:
ollydbg: wxsmith was the best tool I've tried 6 months ago, I doubt the situation have changed.

ollydbg:

--- Quote from: MortenMacFly on August 26, 2012, 05:44:46 pm ---
--- Quote from: ollydbg on August 26, 2012, 05:28:11 pm ---I will going to try xrced, it looks like this tool does not update for several years, I'm not sure its installer have bundled everything it needed.

--- End quote ---
It is constantly updated. But not as a stabd-alone tool anymore, but as part of wxPython (as I've said). so you'll need Python, and then wxPython 2.9.x..

--- End quote ---
Thank, I have installed python+wxPython, now to run the xrced, I have to double click the "python273\Scripts\xrced.bat". The xrced looks nice, it report a warning that wxScrollDialog does not recognized, but it can still open the xrc file, and edit them. I see it only changed a little(but it will change other part what I do not want). Generally it was OK.


--- Quote from: oBFusCATed on August 26, 2012, 06:38:14 pm ---ollydbg: wxsmith was the best tool I've tried 6 months ago, I doubt the situation have changed.

--- End quote ---
I test the wxsmith again. I found what the issue is:
Under Windows, wxsmith works quite nicely with the xrc file which has CR LF  EOL format, but wxsmith works badly in the xrc file have LF format(it will add many extra changes to xrc file as I posted Re: EOL issue, the EOL should be automatically detected, and make consistent). So, This should be a bug. Can any body confirm this.

To reproduce this, you can just convert the original xrc to LF EOL format under Windows, then change the UI under wxsmtih, then compared the result with the original one.
 

oBFusCATed:

--- Quote from: ollydbg on August 27, 2012, 05:58:32 am ---To reproduce this, you can just convert the original xrc to LF EOL format under Windows, then change the UI under wxsmtih, then compared the result with the original one.

--- End quote ---
If you see LF or LF/CR LF files then they are broken and should be fixed.

See this: http://magic.aladdin.cs.cmu.edu/2006/03/01/end-of-line-conversion-in-subversion/
See this for a how-to about fixing broken files: http://stackoverflow.com/questions/8024740/whats-the-best-way-to-have-svneol-style-native-for-text-files-by-defaultsvn

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version