View Issue Details

IDProjectCategoryView StatusLast Update
0001120Slicer4Core: GUIpublic2012-05-17 20:23
Reporterinorton Assigned ToBenjaminLong  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.0.0Fixed in VersionSlicer 4.0.0 
Summary0001120: Use combobox for module selector menu; move to the module widget area
Description

Would it be possible to change the module selector menu to use a QComboBox with isEditable=True, and make the search function built into the menu? So search would be in the menu box, and otherwise the menu would function normally with the arrow at right. The separate search box could go away.

The reason: so the module selector can become part of the module widget frame - where the Slicer logo is now. Then each module widget will have an independent selector with search.... This will be very useful in the multiple-module layouts, or when the module widget is detached for use on a separate monitor.

Additional Information

I realize there is already a rather involved custom menu implementation for the module selector, but it relies on hard-coded categories and maybe could be refactored anyway to dynamically generate the menu structure - for example, this would be better to accomodate extensions.

TagsNo tags attached.

Relationships

parent of 0001347 closedcrmullin Small bugs in the module selector 

Activities

finetjul

finetjul

2011-07-02 20:43

administrator   ~0002565

The module selector can already be "part of the module widget frame".
The module selector toolbar uses a "modules menu" that can have multiple instance (see an example in the "Modules" settings panel).

The problem with a QComboBox is that the popup (QAbstractItemView) is not as nice to browse (see the color table node selector) as using a QMenu.
Nevertheless, the idea of a searchable QPushButton/QLineEdit/QComboBox which would display a QMenu is good, it saves space.

The modules menu support dynamic categories, they are hard-coded to enforce the sorting of the categories (not alphabetically sorted), for any extension that uses an unexisting category, it will be created.

BenjaminLong

BenjaminLong

2011-08-19 06:03

reporter   ~0002748

fixed in r17752:
http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=17752

Issue History

Date Modified Username Field Change
2011-03-15 07:11 inorton New Issue
2011-03-15 13:00 nicole Assigned To => jcfr
2011-03-15 13:00 nicole Status new => assigned
2011-06-30 10:29 finetjul Category QtGUI => GUI
2011-07-02 20:43 finetjul Note Added: 0002565
2011-07-28 11:00 finetjul Assigned To jcfr => BenjaminLong
2011-08-02 12:02 finetjul Severity tweak => feature
2011-08-18 18:29 finetjul Relationship added parent of 0001347
2011-08-19 06:03 BenjaminLong Note Added: 0002748
2011-08-19 06:03 BenjaminLong Status assigned => resolved
2011-08-19 06:03 BenjaminLong Resolution open => fixed
2011-08-25 09:27 finetjul Target Version => Slicer 4.0 RSNA
2011-09-15 19:52 finetjul Fixed in Version => Slicer 4.0 RSNA
2012-05-17 20:23 inorton Status resolved => closed