Re: [Audacity-devel] Refactoring Menus/Commands/Keys
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Joshua H. <jo...@re...> - 2003-05-03 20:09:56
|
On Sat, 2003-05-03 at 11:55, Dominic Mazzoni wrote: > Joshua Haberman wrote: > > On Sat, 2003-05-03 at 10:41, Dominic Mazzoni wrote: > > > >>2. In the commands/ directory, I'm going to refactor some > >> of Brian's classes so that they become generic classes > >> for building a menu bar, associating IDs with menus, > >> reading and writing XML files for keybindings, and > >> dispatching commands based on keypresses. > > > > > > I still wish we could use the XRC system already written for use with > > wxWindows. The main problem is that is isn't built as part of wxWindows > > by default. From what I've read in the manual, it seems possible that > > we could include just the XRC source code in lib-src and link against > > that. > > XRC does seem pretty cool. It's small enough that I don't see why > we couldn't just add it to lib-src. > > How would we handle translations, though? See http://aspn.activestate.com/ASPN/Mail/Message/wxPython-users/1543249 Apparently you can generate a .po file from an .xrc file, and xrc will automatically translate the resource when you load it! Josh |