Hi, checking the MITK sources, I do not think that a context submenu is possible. I added an action that opens a dialog with a combo box instead. The problem is that the IContextMenuItem is not a QAction, instead the actions are created inside of the data manager view. I do not have a deep overview of the BlueBerry extension mechanism, maybe the code could be refactored somehow to allow more flexibility with actions. But in the current form I'm afraid that adding a submenu is impossible.
I guess that a Tool should be created for this task, but I am not familiar with them. Anyone else? What I did for now is that I ported the fire lookup table of ImageJ. ImageJ also can load LUTs from files, it could be ported as well. I will go on holiday soon... Miklos On Tue, Jul 19, 2011 at 6:31 PM, Clarkson, Matt <[email protected]> wrote: > Hi there Miklos, > > I emailed about lookup tables a while back, and didn't get an answer yet. > (thats no problem, as I know we are all busy etc). > > However, if we are looking at the same thing, we might as well discuss it. If > the mailing-list can provide a reasonable way of doing it, then it would be > worth collaborating to get it back into MITK for everyone. > > So, I was thinking of providing something that loaded a bunch of lookup > tables from a directory, or as resource files or something, then having > either a standalone Functionality/View, or as you suggest a context sensitive > menu to select the lookup table for a given image. > > Is this what you had in mind? > > I just didn't know what was the best way to do this. > > Any suggestions anyone? > > Thanks > > Matt > > > > ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
