MantisBT - ParaView
View Issue Details
0013379ParaView(No Category)public2012-08-20 17:382012-10-29 17:04
Ken Moreland 
Utkarsh Ayachit 
normalminorhave not tried
closedfixed 
git-master 
3.98.0 
Sandia
13379_cleanup_properties_panel_ui
incorrect functionality
0013379: Properties panel has ugly buttons to implement collapsible groups
The current implementation of the new properties panel has these ugly buttons labeled "Properties (PipelineName)" and "Display (DataType)" that act as toggles for collapsing those respective widgets. In the attached screen shot, the buttons in question are those two big blue buttons.

This behavior is pretty terrible. First of all, it just looks ugly. Second, their behavior is unclear (or at least unnatural and inconsistent with other widgets). Buttons should not be used a toggles (see GUI Blooper "Using command buttons as toggles," http://books.google.com/books?id=cIY0JOAkLoYC&pg=PA66&lpg=PA66&dq=gui+blooper+toggle&source=bl&ots=uWwpXi3PqM&sig=pq3jazWL-yimwkcfV5UOrsSKVwk&hl=en&sa=X&ei=UXwiUJXVDsT5ygG4n4HQAQ&ved=0CFUQ6AEwAQ#v=onepage&q=gui%20blooper%20toggle&f=false [^]). Even if you do accept their toggle behavior, it is not clear that the action is to collapse a group. Third, the layout does not naturally suggest the grouping of the widgets. The buttons do not make good divisors. (Buttons are no better separators than they are toggles.) It is not as clear at a glance how the widgets group together as it should be.

I think this ability to collapse the properties or display part of the inspector is dubious in the first place. Experience shows that you almost always need to access widgets from both, which is what made the separate Properties/Display tabs so frustrating.

If you really want this behavior, then this should be implemented using the pqCollapsedGroup widget, which is already part of ParaView. It is designed to implement this functionality. Its behavior is clear and it looks much nicer.
No tags attached.
related to 0013344closed Utkarsh Ayachit Advanced button used as toggle in Properties panel 
png PropertiesPanel.png (35,804) 2012-08-20 17:38
https://www.vtk.org/Bug/file/9251/PropertiesPanel.png
png

png alternative-all-open.png (30,322) 2012-08-21 10:21
https://www.vtk.org/Bug/file/9253/alternative-all-open.png
png

png alternative-display-closed.png (18,136) 2012-08-21 10:22
https://www.vtk.org/Bug/file/9254/alternative-display-closed.png
png

png QtDesigner-Widget Box.png (30,861) 2012-08-21 10:23
https://www.vtk.org/Bug/file/9255/QtDesigner-Widget%20Box.png
png

png mac.newpanel.png (60,038) 2012-08-21 12:31
https://www.vtk.org/Bug/file/9259/mac.newpanel.png
png

png mac.collapsed.newpanel.png (42,366) 2012-08-21 12:32
https://www.vtk.org/Bug/file/9260/mac.collapsed.newpanel.png
png
Issue History
2012-08-20 17:38Ken MorelandNew Issue
2012-08-20 17:38Ken MorelandFile Added: PropertiesPanel.png
2012-08-20 17:39Ken MorelandRelationship addedrelated to 0013344
2012-08-21 09:11Utkarsh AyachitAssigned To => Utkarsh Ayachit
2012-08-21 10:21Utkarsh AyachitFile Added: alternative-all-open.png
2012-08-21 10:22Utkarsh AyachitFile Added: alternative-display-closed.png
2012-08-21 10:23Utkarsh AyachitFile Added: QtDesigner-Widget Box.png
2012-08-21 10:26Utkarsh AyachitNote Added: 0029037
2012-08-21 10:30Utkarsh AyachitTopic Name => 13379_cleanup_properties_panel_ui
2012-08-21 10:30Utkarsh AyachitNote Added: 0029038
2012-08-21 10:30Utkarsh AyachitStatusbacklog => gatekeeper review
2012-08-21 10:30Utkarsh AyachitFixed in Version => git-next
2012-08-21 10:30Utkarsh AyachitResolutionopen => fixed
2012-08-21 10:34Utkarsh AyachitNote Edited: 0029037bug_revision_view_page.php?bugnote_id=29037#r465
2012-08-21 10:38Ken MorelandNote Added: 0029039
2012-08-21 12:30Utkarsh AyachitFile Added: Screen Shot 2012-08-21 at 12.29.45 PM.png
2012-08-21 12:30Utkarsh AyachitFile Deleted: Screen Shot 2012-08-21 at 12.29.45 PM.png
2012-08-21 12:31Utkarsh AyachitFile Added: mac.newpanel.png
2012-08-21 12:31Utkarsh AyachitNote Added: 0029041
2012-08-21 12:32Utkarsh AyachitFile Added: mac.collapsed.newpanel.png
2012-08-21 12:33Ken MorelandNote Added: 0029042
2012-08-24 11:19Utkarsh AyachitFixed in Versiongit-next => git-master
2012-08-24 11:20Utkarsh AyachitNote Added: 0029057
2012-08-24 11:20Utkarsh AyachitStatusgatekeeper review => customer review
2012-09-19 22:18Alan ScottNote Added: 0029229
2012-09-19 22:18Alan ScottStatuscustomer review => closed
2012-10-29 17:04Utkarsh AyachitFixed in Versiongit-master => 3.98.0

Notes
(0029037)
Utkarsh Ayachit   
2012-08-21 10:26   
(edited on: 2012-08-21 10:34)
The collapsible group has a problem that it unnecessarily wastes horizontal space for the "group box" and padding around it, no matter how much we take the padding/margins down.

The original plan with the implementation was to do something similar to what Qt Designer does for its "Widget Box" (QtDesigner-Widget Box.png).I've cleaned up the push button implementation to instead use a new pqExpanderButton class which is a raised frame with toggle state support. Screenshots included.

What do you think?

(0029038)
Utkarsh Ayachit   
2012-08-21 10:30   
commit 40d6575c8da63539e7d9277f058fec6b9f4b638f
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Aug 21 10:28:13 2012 -0400

    BUG 0013379. Cleanup toggle buttons in properties panel.
    
    Properties panel used ugle toggle buttons for expanding frames. Changed that use
    a new class pqExpanderButton which simulates the expanding buttons seen in the
    Widget box for Qt Designer.
(0029039)
Ken Moreland   
2012-08-21 10:38   
I can live with that. Can you post a screenshot on Mac?
(0029041)
Utkarsh Ayachit   
2012-08-21 12:31   
Added a mac screenshot
(0029042)
Ken Moreland   
2012-08-21 12:33   
Yeah, that looks reasonable.
(0029057)
Utkarsh Ayachit   
2012-08-24 11:20   
merged in master, if applicable.
(0029229)
Alan Scott   
2012-09-19 22:18   
I can live with the new implementation also. Tested local server, Linux, master.