Hi Miklos, Matt, the DataManager context Menu is extensible by using the QmitkDataNodeDescriptorManager class. The List of QmitkDataNodeDescriptor`s is responsible what icons are shown for specific Data Types and which Actions show up when you open up the context menu. At the moment you add a QAction or a list of QAction`s to a NodeDescriptor which are then directly used in the context menu. Adding submenus is not yet possible. Although I don`t think this would be that difficult: One would have to extend the NodeDescriptor class so that it can additionally hold QMenu items. Besides that, the QmitkDataNodeDescriptorManager would have to offer a "GetMenus" method that would be used by the DataManager to build the menu out of QAction`s and QMenu`s. If you want to implement it, just open up a bug at bugs.mitk.org, add me to the CC list, append a patch and I will push it into the MITK master after checking it.
Best regards, Michael ________________________________________ Von: Clarkson, Matt [[email protected]] Gesendet: Dienstag, 19. Juli 2011 18:31 An: Miklos Espak Cc: mitk-users Betreff: Re: [mitk-users] Data manager view context menu - Lookup Tables 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 ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
