┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode
AgeCommit message (Collapse)Author
2023-06-04Update my eMail to the KDE-provided oneFelix Ernst
GIT_SILENT NO_CHANGELOG
2023-02-05Add clang-format and format code as in FrameworksSerg Podtynnyi
2023-01-08Fix potential nullptr de-referenceFelix Ernst
The `break` that is replaced by a `return` here would only break out of the innermost while loop so the std::vector::end could still become accessed after that. By returning here we completely exit out of both nested loops and therefore don't access the std::vector::end.
2022-12-26Not use forward and includesLaurent Montel
2022-12-20Remove duplicate headers between cpp/h filesLaurent Montel
2022-10-15Fix dismiss button in selection mode paste barFelix Ernst
This one liner changes the signal that is emitted when the "Dismiss" button is pressed on the Paste bottom bar in selection mode. Before this commit, the `leaveSelectionModeRequested()` signal was used but it had no effect because technically the selection mode isn't active anymore when the paste bar is shown. Everything works as expected if instead `barVisibilityChangeRequested()` is emitted.
2022-09-26Remove unused includesLaurent Montel
2022-09-15Trigger "Exit Selection Mode" button on clicked and not on pressedFelix Ernst
This way it works just like every other button. This commit also removes two empty files that sneaked in by accident.
2022-08-14Add "Invert Selection" and "Select All" to bottom barFelix Ernst
In selection mode, a bottom bar with contextual actions appears when at least one item is selected. This commit makes it so this bottom bar also contains the "Invert Selection" and "Select All" actions so users have more complete control over changing what is and isn't selected while in selection mode.
2022-08-14Address Nate's UX feedback: Episode 2Felix Ernst
- Make Esc leave selection mode and have it only clear selection when already outside selection mode. - Let translators know that the "More" overflow button should only have a short text on it. - Fix a crash that happened when any code tried to exit selection mode even though selection mode had never been enabled to begin with.
2022-08-14Address Nate's UX feedbackFelix Ernst
-More labels -More icons -"Abort" -> "Cancel"
2022-08-14Improve naming consistency and leave mode on EscapeFelix Ernst
2022-08-14Improve code qualityFelix Ernst
2022-08-14Better separation of classesFelix Ernst
Make obvious when actions trigger selection mode.
2022-08-14Keep working towards a reviewable stateFelix Ernst
- Various code improvements - Smoother animations - The bottom bar in General Mode only becomes visible if items are currently selected - Removed the selection mode action from the default toolbar since it can already be toggled in various ways - More documentation - Some cleaning
2022-08-14Add Selection ModeFelix Ernst
The selection mode action is a checkable toggle action named "Select Files and Folders" which has "Space" as the default shortcut. In selection mode a bottom bar with contextual actions is shown. These should mostly mirror the actions which are available through the right-click context menu aka DolphinContextMenu. Resizing of the window might make a overflow button appear in the bottom selection mode bar. This commit makes press and hold in the view activate selection mode. This behaviour is not triggered if the press and hold is used to either start a rubberband selection or a drag operation within a short time. The length of the short timeframe is defined by a QStyleHint. This is currently not implemented in touch because I can't test it. Mix the selection mode bars' background colors using a nice combination of colors from the current color scheme BUG: 427202