Author Topic: [wxWidgets] Improvement?  (Read 3203 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
[wxWidgets] Improvement?
« on: April 26, 2007, 10:41:05 pm »
Dear Byo,
working any further with (fantastic) wxSmith made me wish to have a functionality to force writing the source-code parts for a single file and/or all files (of a project) on purpose... I mean even if I did no changes to the wxs. Is this functionality already somehow implemented? If not I'd like top state a FR hereby... ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: [wxWidgets] Improvement?
« Reply #1 on: April 26, 2007, 11:00:59 pm »
Currently it could be done by opening resource in editor. While it's opening, wxSmith rebuild source code and update it if source has changed.

Updating whole project could be made by clicking all resources one after another in resource browser (pretty fast) and then Ctrl+Shift+W (even faster ;) ). Still hand-made solution but works :)

It could also be implemented while opening project but it may slow things down (it would require loading all wxs/xrc files, generating sources and working on files). Since loading speed is critical for some coders, it should be optional.

But that's good candidate for feature request (f.ex. some option in either wxSmith configuration or project options or both of them and some Regenerate on demand feature ;) ). I would have to measure some real timings to have some basis, but now few other things have higher priority.

BYO

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: [wxWidgets] Improvement?
« Reply #2 on: April 27, 2007, 07:41:31 am »
Ok... so you figured out that "wxWidgets" was actually a mis-spelled "wxSmith"... ;-)

Currently it could be done by opening resource in editor. While it's opening, wxSmith rebuild source code and update it if source has changed.

Updating whole project could be made by clicking all resources one after another in resource browser (pretty fast) and then Ctrl+Shift+W (even faster ;) ). Still hand-made solution but works :)
Alright - I wasn't aware of that. It came into my mind when I opened one of the plugin projects that was still using the old wxSmith format (and source code). The source code that's being generated is different now and I wanted an easy way to re-write the wxSmith section. The above one works... for sure. ;-)

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ