Hi Martin,
msevior@physics.unimelb.edu.au wrote:
> It's already imeplemented for both menus and toolbars. We just need an XML
> description. That's all.
>
> If we do it using the cross platform architecture, then all platforms
> benefit.
>
> Look at
>
> abi/src/wp/ap/xp/ap_Menu_Layouts.cpp
>
>
> In particular see the method...
>
> bool XAP_Menu_Factory::buildMenuLabelSet(const char * szLanguage_)
>
> build menu's out of defined *.h files. It could almost as easily be built
> out of an XML file at run time.
>
Yes, this is what I had in mind; we could broadly adopt the gtk file
format for the description, except where it expects menu strings, we
would need to store the menu string IDs; I think the best way to do this
is to store the id names as strings, e.g., "AP_DIALOG_OPTIONS_FOO",
which the parser would translate into the numerical id's. This would
mean that should someone in the future want to rewrite the gtk-based
menu code to use the gtk menu factory, they would just need to run the
xml file through a pre-processor to translate the ID strings to actual
localised menu strings, and then feed it to gtk. But I think what we
need can be done in XP land without huge effort using the existing xml
parser along the lines of the prefs.
Tomas
Received on Thu Feb 24 18:13:42 2005
This archive was generated by hypermail 2.1.8 : Thu Feb 24 2005 - 18:13:42 CET