Author Topic: triggering the ::BuildMenu() of all plugins  (Read 4819 times)

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
triggering the ::BuildMenu() of all plugins
« on: April 04, 2007, 01:58:32 pm »
Hi,

In a plugin I need to exchange the "Debug" entry in the main menu bar.

This works fine. However, the new "Debug" menu depends on the actual compiler resp. toolchain.

Therefore, I added and implemented the EVT_PROJECT_ACTIVATE and EVT_PROJECT_CLOSE events. This also works fine as long as the newly activated project's toolchain is a toolchain that is supported by my plugin (i.e. is a cross compiler).

When the activated project's toolchain is not supported by the plugin (i.e. a toolchain for host development) then the "Debug" menu in the menu bar is outdated.

So I want to fire some event that triggers the ::BuildMenu() methods of all the installed plugins to be executed.

What kind of event must I use for that purpose? May I fire an event from within an event handler?

Thanks.
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4