keepassxc/src/gui/entry
Kyle Kneitinger 4d4c839afa Customize buttons on MessageBox and confirm before recycling (#2376)
* Add confirmation prompt before moving groups to the recycling bin

Spawn a yes/no QMessage box when "Delete Group" is selected on a group
that is not already in the recycle bin (note: the prompt for deletion
from the recycle bin was already implemented).  This follows the same
pattern and language as entry deletion.

Fixes #2125

* Make prompts for destructive operations use action words on buttons

Replace yes/no, yes/cancel (and other such buttons on prompts that cause
data to be destroyed) use language that indicates the action that it is
going to take. This makes destructive/unsafe and/or irreversible operations
more clear to the user.

Address feedback on PR #2376

* Refactor MessageBox class to allow for custom buttons

Replaces arguments and return values of type QMessageBox::StandardButton(s)
with MessageBox::Button(s), which reimplements the entire set of
QMessageBox::StandardButton and allows for custom KeePassXC buttons,
such as "Skip". Modifies all calls to MessageBox functions to use
MessageBox::Button(s).

Addresses feedback on #2376

* Remove MessageBox::addButton in favor of map lookup

Replaced the switch statement mechanism in MessageBox::addButton with
a map lookup to address CodeFactor Complex Method issue. This has a
side-effect of a small performance/cleanliness increase, as an
extra QPushButton is no longer created/destroyed (to obtain it's label
text) everytime a MessageBox button based on QMessageBox::StandardButton
is created; now the text is obtained once, at application start up.
2018-12-19 23:14:11 -05:00
..
AutoTypeAssociationsModel.cpp Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
AutoTypeAssociationsModel.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
AutoTypeMatchModel.cpp Remove unused variables 2018-11-28 18:29:13 -05:00
AutoTypeMatchModel.h Reduce number of unneeded copies 2018-10-31 15:16:04 +01:00
AutoTypeMatchView.cpp Restore correct formatting 2018-11-28 18:29:15 -05:00
AutoTypeMatchView.h Reduce number of unneeded copies 2018-10-31 15:16:04 +01:00
EditEntryWidget.cpp Customize buttons on MessageBox and confirm before recycling (#2376) 2018-12-19 23:14:11 -05:00
EditEntryWidget.h Restore correct formatting 2018-11-28 18:29:15 -05:00
EditEntryWidget_p.h Improve readability and type-safety 2018-10-31 15:16:04 +01:00
EditEntryWidgetAdvanced.ui Add support for foreground and background entry colors 2018-02-21 09:04:46 +01:00
EditEntryWidgetAutoType.ui improve Window Associations UI/UX 2018-02-04 23:13:15 +01:00
EditEntryWidgetHistory.ui Use better default row width for history view and enable alternating row colors 2017-02-22 19:10:13 +01:00
EditEntryWidgetMain.ui Add favicon fetch button next to entry's url edit textbox (#2439) 2018-11-24 17:30:55 -05:00
EditEntryWidgetSSHAgent.ui Add disambiguation info to source strings 2018-01-21 15:54:46 +01:00
EntryAttachmentsModel.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
EntryAttachmentsModel.h Formatting the code. 2018-03-31 16:01:30 -04:00
EntryAttachmentsWidget.cpp Customize buttons on MessageBox and confirm before recycling (#2376) 2018-12-19 23:14:11 -05:00
EntryAttachmentsWidget.h Formatting the code. 2018-03-31 16:01:30 -04:00
EntryAttachmentsWidget.ui Move attachments view to the separate widget EntryAttachmentsWidget 2017-12-25 14:36:43 +02:00
EntryAttributesModel.cpp Restore correct formatting 2018-11-28 18:29:15 -05:00
EntryAttributesModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
EntryHistoryModel.cpp Reduce number of unneeded copies 2018-10-31 15:16:04 +01:00
EntryHistoryModel.h Clearing deleted entries on applying. (#814) 2017-07-30 13:38:10 -04:00
EntryModel.cpp Clean up Entry Model/View code 2018-11-17 08:49:47 -05:00
EntryModel.h Clean up Entry Model/View code 2018-11-17 08:49:47 -05:00
EntryView.cpp Restore correct formatting 2018-11-28 18:29:15 -05:00
EntryView.h Correct refactor issues with entry selection and search (#2518) 2018-11-28 16:13:56 -05:00