https://bugs.documentfoundation.org/show_bug.cgi?id=150518

grofaty <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #5 from grofaty <[email protected]> ---
@Stephane, sorry for late response. Your question: "Can you point to a dialog
that applies the changes when the "Close" button is pressed?"

I can't. That is not what I have been claiming. I am trying to say, there are
two buttons: Close and Cancel. The effect of Close button in all cases I have
described are always the same as Cancel button. If two buttons have the same
effect, then I see no reason in one occasion to use Close and in another
occasion to use Cancel. My point is, following the simplicity rule, one of the
buttons (Close or Cancel) should be removed and only one of them be used. In
majority of the programs there is Cancel button and to follow user familarity
with user interface, we should follow the Cancel button.

In example, you are referring to the Insert | Hyperlink. If we apply the logic:
1. In URL field type in some address like: www.test.com
2. Now lets follow what do the buttons: Reset, Apply, Close and OK perform.
Reset: it clear all of the data fields. Just like selecting text in the fields
and right click and Delete.
Apply: Apply the setting (in this case insert hyperlink into the selected Calc
cell) and leave the dialog open.
OK: OK should always!!! mean exactly the same action as Apply (so inserting the
hyperlink into the selected cell) and!!! additionally close the dialog.
Close: In this case what happens, program executes Reset (cleaning all of the
data in all of the fields) and closes the dialog. This is classical Cancel
operation. Why? Because we lose the data we have manually typed into the URL
field. Close in this case is incorrectly used, it should be Cancel button.
Cancel means lose everything you have set in the dialog and perform no
operation in the Calc cells.

When does Close button make sense to be used instead of Cancel button? Close
should be used if there is e.g. Delete button inside dialog and after we click
the Delete, then action is finished, there is no way to Cancel Delete effect,
in this case Close button is appropriate to indicate, we can't change our mind
and cancel the option. For example if there is file dialog. We open file
dialog, select file and we click on Delete button and so we deleted the file.
In this case Cancel button can not be used any more because we have deleted the
file and file is irreversible deleted. We can't use Cancel anymore, because we
can't reverse the delete file action. The only option in this case would be
Close button. The Close button means: There is no other action to be applied or
there is no other action to be canceled, the only thing that can be done is
close down the dialog.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to