What I'm trying to do at the moment, is merging foo_static_panel and foo_vis_vu_meter to make a VU meter panel. The problem, is that I can't find anything useful to look at. It's jsut not enough consistency between different ui extensions. Either they're too different (toolbars vs panels, single instance vs multiple instance), or too simple or too complicated. There is just no simple panel that actually do something, but at the same time not everything imaginable.
I realize I'm probably in over my head here, and I'm not really familiar enough with the terminology either, but I'm sure I could make things work if I just had a plain and simple panel to look at. Having said that, foo_static_panel is just too simple, as it doesn't do anything that I find useful, and the "static" part of the name just adds to my confusion, as that is also a reserved word.
The favour I would like to ask instead of a posting alot of questions, is if anyone could just add a single button to foo_static_panel and make it perform one simple action. Like changing the text "moo" to "moomoo" or something. Just to show me how the resource file is utilized in combination with the new new ui_extension API (I don't really need this kind of interaction to make a vu_meter panel, but I think it would help anyway).
Two specific questions:
1) Most of the things foo_vis_vu_meter does, it does using "g_wnd" as a parameter (a window handle?), defined at the start of the code. I really don't see the equivalent in foo_static_panel. Meaning I need the link between the vu_meter code and my panel or something (what should I use instead of g_wnd?).
2) Should this be a toolbar or a panel? Or is visualizations it's own category? I'm talking about in the code, not just where it is placed in e.g. the context menu.
Some random thoughts/plans:
-I would like my panel to support multiple instances for future use.
-Not support dock/undock, as it complicates things.
If you've read this far, thanks!
