Ticket #3464 (closed: fixed)
Cancel button does not work in Plot details
Reported by: | Steve Williams | Owned by: | Jay Rainey |
---|---|---|---|
Priority: | minor | Milestone: | Release 3.0 |
Component: | GUI | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Russell Taylor |
Description (last modified by Jay Rainey) (diff)
- Load any data
- Plot any spectrum of this data
- Right click over plot and select 'Properties..'
- Change e.g. Canvas Color
- Hit the Cancel button
And changes still applied even though Cancel button was hit
Change History
comment:1 Changed 9 years ago by Nick Draper
- Status changed from new to assigned
- Owner set to Anyone
- Description modified (diff)
comment:2 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 30 to Iteration 31
Bulk move of tickets to iteration 31 at the iteration 30 code freeze
comment:5 Changed 9 years ago by Karl Palmen
Does anyone know which code deals with the properties dialog box that has the failing cancel button?
comment:6 Changed 9 years ago by Karl Palmen
The dialog box is called Plot Details in the wiki http://www.mantidproject.org/MantidPlot:_Plot_Details
comment:7 Changed 9 years ago by Karl Palmen
I see that the dialog box has a Geometry tab in addition to the default Layer tab. In the Geometry tab the change does not take effect till the apply button is pressed after which the cancel button will not undo the change. Whereas the change has immediate effect in the Layer tab without need to press the apply button.
comment:8 Changed 9 years ago by Karl Palmen
This raises the issue of what the "Apply", "Cancel" and other such buttons should do in any dialog box in MantidPlot. Consistency would be desireable.
comment:10 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 32 to Iteration 33
Moved to iteration 33 at iteration 32 code freeze
comment:11 Changed 8 years ago by Nick Draper
- Milestone changed from Release 2.1 to Release 2.2
Moved at end of release 2.1
comment:12 Changed 8 years ago by Nick Draper
- Milestone changed from Release 2.2 to Release 2.3
comment:13 Changed 8 years ago by Nick Draper
- Milestone changed from Release 2.3 to Release 2.4
Moved to milestone 2.4
comment:15 Changed 8 years ago by Nick Draper
- Milestone changed from Release 2.4 to Release 2.5
Moved at the code freeze for release 2.4
comment:16 Changed 7 years ago by Nick Draper
- Milestone changed from Release 2.5 to Release 2.6
comment:19 Changed 7 years ago by Nick Draper
- Milestone changed from Release 2.6 to Backlog
Moved to the Backlog after the code freeze for R2.6
comment:20 Changed 7 years ago by Jay Rainey
- Status changed from new to inprogress
- Owner changed from Anyone to Jay Rainey
- Description modified (diff)
comment:22 Changed 7 years ago by Jay Rainey
Reformatted code to abide by mantid styleguide. Refs #3464
Changeset: 4b2b9aa47f5907225748d7067c4a5a1011748c20
comment:23 Changed 7 years ago by Jay Rainey
Apply and cancel button now function as expected. Refs #3464
Changeset: 35c0ef66fc23c1e1a46b7a0cd19395388757fc45
comment:24 Changed 7 years ago by Jay Rainey
Removed unused slots. Refs #3464.
Changeset: 46a67fb303da87615950f7d5d30900106b3d8cd8
comment:25 Changed 7 years ago by Jay Rainey
Removed duplicate code. Refs #3464."
Accidently forgot to remove code when refactoring.
Changeset: aed2fa3cc39869c7bcabe4db32c17a4320700f2d
comment:26 Changed 7 years ago by Jay Rainey
The problem was that when a user wanted to change the properties of a plot they could click the relevant button and this would automagically apply the change. This was not the desired effect as it is inconsistent with other interfaces within Mantid.
The Apply & Cancel buttons now work as expected. That is, the user can select multiple changes to be made, then apply them if they wish, otherwise cancel and no change would be made.
comment:27 Changed 7 years ago by Jay Rainey
- Status changed from inprogress to verify
- Resolution set to fixed
To test:
- Load any data (CSP79590.raw for example)
- Right click in workspace and left click Plot spectrum...
- Right click over plot and select 'Properties..'
- Change something (E.g. Background color)
- You should now have to click apply for these changes to be seen.
- Change something else and press Cancel
- The change you wanted to make should now not have taken place.
Ensure this functionality is persistent throughout the user interface.
comment:28 Changed 7 years ago by Jay Rainey
Reformatted code to abide by mantid styleguide. Refs #3464
Changeset: 4b2b9aa47f5907225748d7067c4a5a1011748c20
comment:29 Changed 7 years ago by Jay Rainey
Apply and cancel button now function as expected. Refs #3464
Changeset: 35c0ef66fc23c1e1a46b7a0cd19395388757fc45
comment:30 Changed 7 years ago by Jay Rainey
Removed unused slots. Refs #3464.
Changeset: 46a67fb303da87615950f7d5d30900106b3d8cd8
comment:31 Changed 7 years ago by Jay Rainey
Removed duplicate code. Refs #3464."
Accidently forgot to remove code when refactoring.
Changeset: aed2fa3cc39869c7bcabe4db32c17a4320700f2d
comment:32 Changed 7 years ago by Russell Taylor
- Status changed from verify to verifying
- Tester set to Russell Taylor
comment:33 Changed 7 years ago by Russell Taylor
- Status changed from verifying to reopened
- Resolution fixed deleted
Mostly, that's much better but there are a few that have been missed:
- If you have a line plot and check the 'Fill area under curve' box in the line tab it's applied immediately (see PlotDialog.cpp line 933).
- If you have symbols and (un)check the 'Fill Color' box/
- Changing error bar widths on a plot from a qtiplot table
- Pie chart settings (although I doubt anyone ever creates one of those)
- The Percentile tab settings (create a box plot from a qtiplot table - that must be even rarer)
Basically look for anywhere acceptParams() is called. The first 2 are the ones that matter.
comment:35 Changed 7 years ago by Jay Rainey
Checkboxes should not false on startup. Refs #3464.
Changeset: d4e423a98505ec2e20b85ccdfc661d29c4a07afe
comment:36 Changed 7 years ago by Jay Rainey
Removed unnecessary methods related to error menu GUI. Refs #3464.
Changeset: 9d7ea57784ac4a0e728d2e0cd9b8f0b96dbc33d7
comment:37 Changed 7 years ago by Jay Rainey
Fixed pie chart settings. Refs #3464.
Changeset: 4e3b117a834af3fb1ffbfc3809315d8264c814cc
comment:38 Changed 7 years ago by Jay Rainey
Fixed percentile tab. Refs #3464.
Changeset: ae136522b3b2cef2306f03c75a2e1a670c34067d
comment:39 Changed 7 years ago by Jay Rainey
- Status changed from inprogress to verify
- Resolution set to fixed
comment:41 Changed 7 years ago by Russell Taylor
- Status changed from verifying to closed
Everything that I checked now worked correctly.
comment:43 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 4311