Icy-imaging/Icy-Kernel — pull request #523 by oeway (2013-10-27 13:22:38+00:00)
Title: How about add popup menu for each plugin icon to show opened frames

Hi masters,

I am thinking about add popup menu for plugin icon, the following aspect are taken into account:
1. Too much frames will mess the work area, especially in "Multiple document interface" mode and a computer with a small screen. Frames will hide under some other frames, especially for some small-sized frame.
2. When one of the frame is in maximized mode, other frame will be totally invisible for user, in this situation, a quick operation for a plugin is open a new instance, but if you click on the sequence,the new frame will hide too.
3. Most plugin have a "input sequence" like option and usually use "Active Sequence" as default value, this option enables the plugin works in single-instance mode in most situation.
4. Although we can get all opened frame in the toolbar, but I think the most intuitive way to get the opened frame of a plugin is to start it from the plugin icon.

So I add some test code to demonstrate my solution to this problem, I spend several hours to get familiar with Icy-Kernel code, and try to add my code in a elegant way as you guys do, but I still can't find a elegant way to do it. Eventually, it works like this:

![1](https://f.cloud.github.com/assets/478667/1415496/1a0292f2-3f08-11e3-8622-28cceafbeb38.png)

A little ugly, but maybe useful.
As you can see, current version only works with some plugins.To be exactly, all plugins use "addIcyFrame()" will work. I haven't find a reliable method to hook all IcyFrame for each plugin. Suggestions will be appreciated.

I hope you can think about it.

Best,
Will Ouyang