Ticket #4495 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Change the SendTo settings so that a tick box indicates which programs will be visible in the list.

Reported by: Robert Whitley Owned by: Keith Brown
Priority: minor Milestone: Release 2.6
Component: Framework Keywords: Student
Cc: Blocked By:
Blocking: Tester: Mathieu Doucet

Description (last modified by Mathieu Doucet) (diff)

Go to Preferences -> Mantid -> Send To

The check boxes currently indicate which one is selected so that the user can delete or edit them.

This should be changed so that it indicates which ones will be shown in the list of programs a workspace can be sent to.

Change History

comment:1 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:2 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.2 to Release 2.3

comment:3 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.3 to Release 2.4

Moved to release 2.4

comment:4 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:5 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:6 Changed 7 years ago by Nick Draper

  • Owner changed from Robert Whitley to Anyone
  • Status changed from new to assigned
  • Keywords Student added

comment:7 Changed 7 years ago by Martyn Gigg

  • Owner changed from Anyone to Keith Brown

comment:8 Changed 7 years ago by Keith Brown

  • Status changed from assigned to accepted

comment:9 Changed 7 years ago by Keith Brown

Send to options working more sensibly

Changes have been made to the tree in View->Preferences->Mantid->Send To so that it opperates more sensibly, in specific: Checkboxes in the tree now switch visibility in the menu on or off. the "visible" option in the edit dialog has been removed in favor of using the tree checkboxes. selection to edit is now made by selecting the item rather then clicking the checkbox. functionality of ConfigDialog::createCheckedTreeItem now makes sence based on the parameters, passing true as the second paramter will now produce a checked item. This will have broken some other functions that use, it, but it'll only require that i negate their current value they pass.

Refs #4495

Changeset: cbab5dec3d699be4a3a7191453bf6b67bf6044b3

comment:10 Changed 7 years ago by Keith Brown

New bug discovered #7439 : Discovered that remove functionality will cause an error if the program hasn't been restarted due to ConfigService returning removed values.

comment:11 Changed 7 years ago by Keith Brown

Multi-select functionality restored

The ability to select multiple programs (used for deletion) has been restored

Refs #4495

Changeset: 5abcb5f48534cab04ae0810e2cfc7a1b02c7202a

comment:12 Changed 7 years ago by Keith Brown

Negated affected function calls

My edit to createCheckedTreeItem meant that i had to negate the second parameter to restore functionality to normal prior to the change

Refs #4495

Changeset: 1aa78870cf67fecd249d35247af4b866118b8fd9

Last edited 7 years ago by Keith Brown (previous) (diff)

comment:13 Changed 7 years ago by Keith Brown

  • Status changed from accepted to verify
  • Resolution set to fixed

To Test:

Go into the Send To options in View->Preferences->Mantid->Send To

Any visible programs should be checked.

When nothing is selected, "Edit" and "Delete" should be disabled.

When editing an existing program or adding a new program, the "Visible" checkbox should no longer be present.

Select a single item without touching the checkbox, "Edit" and "Delete" should become active.

Add some new programs to the send to list, they will default to checked.

Load a workspace and right click it, the new programs should be there and any unavailable programs shouldn't.

Uncheck some checkboxes in the options, and check Send To again, those programs should be no longer present in the list.

Use ctrl to select multiple programs, "Edit" should be disabled, "Delete" should be active.

When one of more programs are selected pressing "Delete" should remove them from this list (make sure you close and re-open MadtidPlot before going to the send to menu after doign this otherwise you'll encounter #7439)

Check Send To again (after closing and re-opening the program), those programs should be no longer present in the list if they were originally checked.

comment:14 Changed 7 years ago by Gesner Passos

  • Status changed from verify to verifying
  • Tester set to Gesner Passos

comment:15 Changed 7 years ago by Gesner Passos

  • Status changed from verifying to reopened
  • Resolution fixed deleted

comment:16 Changed 7 years ago by Keith Brown

Forgot to put it onto the build servers

comment:17 Changed 7 years ago by Keith Brown

  • Status changed from reopened to accepted

comment:18 Changed 7 years ago by Keith Brown

  • Status changed from accepted to verify
  • Resolution set to fixed

Has passed on the build servers, ready to be tested.

comment:19 Changed 7 years ago by Mathieu Doucet

  • Status changed from verify to verifying
  • Description modified (diff)
  • Tester changed from Gesner Passos to Mathieu Doucet

comment:20 Changed 7 years ago by Mathieu Doucet

  • Status changed from verifying to reopened
  • Resolution fixed deleted

If you uncheck a box, the "Edit" and "Delete" buttons are enabled, as expected. But re-checking the box does not disable them.

comment:21 Changed 7 years ago by Keith Brown

  • Status changed from reopened to inprogress

Just to make sure of the distinction, I've just checked and unchecked a box and i see no problem with that aspect of it's behavior. It should keep the edit and delete buttons active, as their active/disabled trigger is no longer the checkboxes but selected rows, and unchecking or checking a checkbox won't automatically select that row. Multiple selection is done via ctrl or shift. Can I just get clarification on what you meant or if my explanation there now invalidates your complaint?

However, i did find a problem that when I deselect by clicking elsewhere in the box it doesn't deactivate them, so I'll get on fixing that.

Last edited 7 years ago by Keith Brown (previous) (diff)

comment:22 Changed 7 years ago by Keith Brown

Fixed bug with deselection and added select on check/uncheck

There was potential for a crash as deselecting didn't disable the edit/delete buttons, adding another signal handler has sorted this

New behavior where checking or uncheckign a checkbox will automaticaly select that item has been added.

Refs #4495

Changeset: 7273f4e449f6d360f541d5d934ddf353b948fbbf

Last edited 7 years ago by Keith Brown (previous) (diff)

comment:23 Changed 7 years ago by Keith Brown

Removed a redundant method and changed some signals

ConfigDialog::treeSelecting has been removed as it did the same as QTreeWidget.selectedItems() did after i had changed the functionality from looking at checkboxes to looking at the selection.

The signal for looking at checkboxes has been changed. The class now has methods that respond to SelectionChanged() to make the deselection work, and the ItemClicked handler now responds to ItemChanged instead as that should only fire when a checkbox is changed or the item itself is changed. I'll have to look at it's behaviour after an Edit or deletion as i suspect it may need more work.

ConfigDialog::TreeClicked() has been renamed ConfigDialog::itemCheckedChanged()

The order the GUI is built in initSendToProgramTab() has been changed to add the buttons first, then the tree. as well as only connecting the signal handlers to the tree when everything else is initialised to stop problems where the handlers are trying to reference other GUI elements before they're initialised.

Refs #4495

Changeset: c6177731b32587558e0854ea777fb78bb382fff1

Last edited 7 years ago by Keith Brown (previous) (diff)

comment:24 Changed 7 years ago by Keith Brown

Edit and delete working as expected, now waiting for tester to respond to enquiry

comment:25 Changed 7 years ago by Keith Brown

Fixed a compiler error in Ubuntu

For some reason a definition that visual studio allowed, Eclipse didn't and it wouldn't compile.

Refs #4495

Changeset: 7faeb64411d3ae06ff9e5b36e8b181fddb59c81b

comment:26 Changed 7 years ago by Keith Brown

  • Status changed from inprogress to verify
  • Resolution set to fixed

comment:27 Changed 7 years ago by Mathieu Doucet

  • Status changed from verify to verifying

comment:28 Changed 7 years ago by Mathieu Doucet

  • Status changed from verifying to closed

Works as described.

comment:29 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:30 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5342

Note: See TracTickets for help on using tickets.