]> cloud.milkyroute.net Git - dolphin.git/commit
Add Selection Mode
authorFelix Ernst <fe.a.ernst@gmail.com>
Sun, 12 Sep 2021 13:33:39 +0000 (15:33 +0200)
committerFelix Ernst <fe.a.ernst@gmail.com>
Sun, 14 Aug 2022 14:42:40 +0000 (14:42 +0000)
commit3b7c05b385dc56fbc0b9ffdd332f8d30e7624d0c
treea54c8338e3dc7d420fd2223bbcfb5af0a186348e
parent9dbe48137748c6197363236b67f6302e20b72167
Add Selection Mode

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
26 files changed:
src/CMakeLists.txt
src/dolphinmainwindow.cpp
src/dolphinmainwindow.h
src/dolphintabpage.cpp
src/dolphintabpage.h
src/dolphinui.rc
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h
src/global.h
src/kitemviews/kitemlistcontroller.cpp
src/kitemviews/kitemlistcontroller.h
src/selectionmode/actionwithwidget.cpp [new file with mode: 0644]
src/selectionmode/actionwithwidget.h [new file with mode: 0644]
src/selectionmode/backgroundcolorhelper.cpp [new file with mode: 0644]
src/selectionmode/backgroundcolorhelper.h [new file with mode: 0644]
src/selectionmode/selectionmodebottombar.cpp [new file with mode: 0644]
src/selectionmode/selectionmodebottombar.h [new file with mode: 0644]
src/selectionmode/selectionmodetopbar.cpp [new file with mode: 0644]
src/selectionmode/selectionmodetopbar.h [new file with mode: 0644]
src/selectionmode/singleclickselectionproxystyle.h [new file with mode: 0644]
src/settings/dolphin_generalsettings.kcfg
src/settings/viewpropertiesdialog.cpp
src/views/dolphinview.cpp
src/views/dolphinview.h
src/views/dolphinviewactionhandler.cpp
src/views/dolphinviewactionhandler.h