patch -- dynamic menus stuff


Subject: patch -- dynamic menus stuff
From: Joaquín Cuenca Abela (cuenca@pacaterie.u-psud.fr)
Date: Mon Sep 17 2001 - 05:01:17 CDT


Attached is a trivial patch that adds the accessors that Jared needs.

Jared, with this patch applied, you should do:

1) get the app (XAP_App::getApp())
2) get the set of actions (XAP_App::getMenuActionSet())
3) get all the frames (XAP_App::getFrameCount(),
XAP_App::getFrame(UT_uint32 ndx))
4) get the EV_Menu that is in each frame (XAP_Frame::getMainMenu())
5) get the layout and label's set out of EV_Menu
(EV_Menu::getMenuLayout() && EV_Menu::getMenuLabelSet())
6) add your menu entry.

I'm pretty much sure that the platform specific code that handles new
items it's broken, but with a bit of luck you should be able to see your
new item without getting a segfault.

Enjoy!

P.S.: If you run in problems or need something else related, just ask

-- 
Joaquín Cuenca Abela
cuenca@celium.net




This archive was generated by hypermail 2b25 : Mon Sep 17 2001 - 05:00:53 CDT