Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: Loaden on March 19, 2010, 10:17:35 am
-
Hello everyone, I want to know what is the CB's xrc file editor? is wxFormBuilder? Or other editor?
Thanks!
-
Hello everyone, I want to know what is the CB's xrc file editor? is wxFormBuilder? Or other editor?
Thanks!
For me it's either Code::Blocks (as it is a XML file) or xrced from the wxPython package. The latter is really cool but requires Python and wxPython, of course.
-
If I remember well I used wsmith to edit wxwidget resource files and worked really nice
-
Hi, morten, are there any recomanded xrc editor to edit the xrc files in the CB source?
When I edit it under wxsmith, it change too many things(see Re: EOL issue, the EOL should be automatically detected, and make consistent (http://forums.codeblocks.org/index.php/topic,16764.msg113928.html#msg113928)). So, the only way is to edit the raw xml file?
-
So, the only way is to edit the raw xml file?
For me, its still the same: Either wxSmith (I don' see such issues you described) or xrced from wxPython.
-
So, the only way is to edit the raw xml file?
I don' see such issues you described
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)
-
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.
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..
-
ollydbg: wxsmith was the best tool I've tried 6 months ago, I doubt the situation have changed.
-
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.
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..
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.
ollydbg: wxsmith was the best tool I've tried 6 months ago, I doubt the situation have changed.
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 (http://forums.codeblocks.org/index.php/topic,16764.msg113928.html#msg113928)). 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.
-
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.
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
-
Under Windows, wxsmith works quite nicely with the xrc file which has CR LF EOL format...
The only issue here is that the original xrc file such as "src/sdk/resources/editor_configuration.xrc" use 4 spaces as indentation, after editing by wxsmith, the indentation was changed to use "tab". Any comments about this? I think "tab" are normally good for xml files, see, our codeblocks.cbp file use "tab" for indentation. When create a new wx sample project from the wizard, the wxs file also use "tab" as indentation.
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.
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
Thanks, my issue is that I'm using git, and I clone the c::b git, but I does not enabled the auto LF to CRLF conversion under MsysGit, so I'm dealing with the LF sources(h/cpp), and LF xrc files in the git local copy.
If I'm under SVN(TortoiseSVN), I don't have the EOL issue, because I have CRLF sources and xrc files.
-
The only issue here is that the original xrc file such as "src/sdk/resources/editor_configuration.xrc" use 4 spaces as indentation, after editing by wxsmith, the indentation was changed to use "tab". Any comments about this?
I think its OK to respect the editor settings for (text based) resource, files, too. That's how its implemented. So when editing a resource file with wxSmith and having "spaces" as editor option this is the expected result. If this works differently, it is a bug (as you mentioned in the other thread, probably...) For patches, IMHO you have an opton to ignore white-space changes... at least I have. :) That solves the issue with having too many changes on XRC files.