Commit graph

5283 commits

Author SHA1 Message Date
Albert Astals Cid ee5736bc06 GIT_SILENT Upgrade KDE Applications version to 17.12.2. 2018-02-03 00:38:57 +01:00
Nathaniel Graham 108e10ca15 Let the terminal panel dock to any part of the window
Summary:
BUG: 362593

Just what it says: Let the terminal panel sit on the left or right side of the window.

Test Plan:
Tested in KDE Neon:
- Opened terminal panel, unlocked widgets, and tried to drag it to the right or left side of the window: I can
- Put terminal panel on right side, quit Dolphin and opened Dolphin again: terminal panel appears on the right as expected
- Put terminal panel on right side, closed terminal panel, quit Dolphin, opened Dolphin, and opened the terminal panel again: terminal panel appears on the right as expected
- Removed dolphinrc file and opened terminal panel: appears on the bottom

{F5682428}

Reviewers: #dolphin

Subscribers: elvisangelaccio, anthonyfieroni, cfeck

Differential Revision: https://phabricator.kde.org/D10189
2018-01-30 17:06:20 -07:00
Michael Heidelbach 64d2fd2981 Folderspanel's context-menu option "Limit to Home Directory" is always visible
Summary:
Applied suggested changes to [[ https://phabricator.kde.org/D9662 | D9662 ]]
  - Enum instead of bool
  - Use QStringLiteral

Test Plan: Visual inspection

Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: #dolphin

Tags: #dolphin, #kde_applications

Differential Revision: https://phabricator.kde.org/D9911
2018-01-18 08:56:43 +01:00
Michael Heidelbach 3cb3d58fbf folderspanel context-menu option "Limit to Home Directory" should be always visible
Summary:
Only by chance I discovered that this option is visible but only when inside home. Before that I always edited dolphinrc to reenable it.
I think it's less confusing to always show it but toggle its enabled state

Test Plan:
compile and run
show folderspanel context-menu in different places

Reviewers: #dolphin, emmanuelp, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio

Tags: #dolphin, #kde_applications

Differential Revision: https://phabricator.kde.org/D9662
2018-01-14 10:54:46 -07:00
Michael Heidelbach 65c0997164 infopanel fully resizable
Summary:
Currently Infopanel does wrap its title when trying to narrow it.
Initially:
{F5619283}
Expanded:
{F5619284}
Resizing fails, watch cursor:
{F5619286}
Patch applied:
{F5619287}

Maybe this behaviour it intentional. Personally, I prefer the patch.

Test Plan:
compile & run
Resize infopanel with long title

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: renatoo, vhanda, nicolasfella, elvisangelaccio, ngraham

Tags: #dolphin, #kde_applications

Differential Revision: https://phabricator.kde.org/D9664
2018-01-06 16:58:39 -07:00
Albert Astals Cid 4fcc340328 GIT_SILENT Upgrade KDE Applications version to 17.12.1. 2018-01-04 18:44:27 +01:00
Michael Heidelbach 7b595b3387 Revive folderpanel when outside $HOME
Summary:
Currently the folderpanel is inert when browsing outside of home because urls end up as 'file:////a/b/c'
and since Qt 5.10 this is an invalid URL: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=f62768d046528636789f901ac79e2cfa1843a7b7

Premptive bug fix.

Test Plan:
Open dolphin
Leave home directory

Reviewers: #dolphin, elvisangelaccio

Subscribers: dfaure, elvisangelaccio, ngraham, anthonyfieroni

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D9610
2018-01-03 14:07:11 +01:00
Renato Araujo Oliveira Filho 9d3a019445 Ignore baloo urls created from new KIO model
Summary:
For now ignore baloo urls that was created by new KIO::KFilePlacesModel,
until we make use of new KIO API.

BUG: 387888

Test Plan:
Open any KIO file dialog using the new API.
Runs dolphin v17.12.0
Make sure that baloo urls does not appear duplicated

Reviewers: ngraham, elvisangelaccio

Reviewed By: ngraham, elvisangelaccio

Subscribers: cfeck, elvisangelaccio, ervin, mlaurent, #dolphin

Differential Revision: https://phabricator.kde.org/D9347
2018-01-02 10:15:47 -03:00
l10n daemon script 9d01f723aa GIT_SILENT made messages (after extraction) 2017-12-31 05:22:08 +01:00
l10n daemon script 09dd74348e SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-12-28 06:01:08 +01:00
l10n daemon script 91eb6aa37a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2017-12-20 08:25:12 +01:00
Luigi Toscano 6c5cd76d6f appdata: update doc URL, more https
- use the more generic URL for dolphin documentation;
- use https for all links.
2017-12-05 01:17:19 +01:00
Christoph Feck b00c812db5 GIT_SILENT Upgrade KDE Applications version to 17.12.0. 2017-12-05 00:00:53 +01:00
Heiko Becker cd90c04343 Use CMakePackageConfigHelpers instead of the ECM variant
Summary:
dolphin already requires cmake >= 3.0, which includes the macro.
Also make sure to include the CMakeFindDependencyMacro.

Reviewers: #dolphin

Differential Revision: https://phabricator.kde.org/D9091
2017-12-01 19:27:57 +01:00
Christoph Feck 99883ca8de GIT_SILENT Upgrade KDE Applications version to 17.11.90. 2017-11-30 22:16:12 +01:00
Andreas Krutzler af27d5735c Fix scrolling during inline renaming causes rename of wrong file
Summary:
Scrolling during inline renaming accepts the renaming now, like if one would hit Return for example. I chose this approach because it seems the easiest way to fix this.
This also fixes the “possible” Ui glitch where the renaming KTextField doesn’t move along with the list item. Possible glitch, because I don’t know if this is intentional, but for me it looks broken.

BUG: 378786
Fixes T7443

Test Plan:
* Enable "Rename inline" in dolphin settings
* Go to a folder where you have to scroll through items (many files, big zoom,…)
* Start to rename a file (context menu, F2, …)
* Scroll with mouse wheel
* Rename  accepted -> file is renamed

Reviewers: ngraham, rkflx, #dolphin, elvisangelaccio

Reviewed By: ngraham, rkflx, #dolphin, elvisangelaccio

Subscribers: anthonyfieroni, elvisangelaccio, #dolphin

Maniphest Tasks: T7443

Differential Revision: https://phabricator.kde.org/D8822
2017-11-19 11:17:29 +01:00
Albert Astals Cid eab64f9732 GIT_SILENT Upgrade KDE Applications version to 17.11.80. 2017-11-13 01:03:00 +01:00
Ben Cooksley fcbf79f9ae Earlier versions of Qt don't cascade include QUrl so we need to explicitly include it to keep compatibility with Qt 5.7 (as used on FreeBSD) 2017-11-12 10:51:15 +13:00
Emirald Mateli 99e80c1c7e Prevent folders from drag and dropping onto themselves in dolphin main view
Summary:
This patch aims to improve user experience by not allowing the user to drag and drop a folder into itself.

The current behavior shows a red message at the top which can then be closed by the user, instead of relying on that, this patch disables the option of dropping onto self and uses the "Invalid drop target cursor" to highlight the behavior.

BUG: 307747

Since spectacle is unable to screenshot the cursor overlay, find attached a photo of the screen.
{F3787651}

Test Plan:
1. Drag a folder.
2. Drop it onto itself.

Reviewers: #dolphin, elvisangelaccio, ngraham, rkflx, dfaure

Reviewed By: #dolphin, elvisangelaccio, rkflx, dfaure

Subscribers: rkflx, ngraham, elvisangelaccio, dfaure, anthonyfieroni, #konqueror

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D6281
2017-11-11 15:06:13 +01:00
Andreas Krutzler fa04e37569 Prevent "Two clicks renaming" if the selected file/folder is not movable
Summary:
Two clicks renaming doesn't check if the user is actually allowed to rename a file/folder. With this patch, this get fixed.
Depends on D7647

Reviewers: rkflx, #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio, ngraham, #dolphin

Differential Revision: https://phabricator.kde.org/D8740
2017-11-10 19:33:27 -07:00
Nathaniel Graham 0905b13dc4 Use new folder-stash icon
Summary:
Resolves T7185

Use the new folder-stash icon introduced in https://cgit.kde.org/breeze-icons.git/commit/?id=b909a8008a7e3ffabb090bc82127ebb561f58597

Test Plan:
Tested in KDE Neon. Dolphin now uses the new icon is `kio-stash` is installed:

{F5482031}

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: cfeck

Maniphest Tasks: T7185

Differential Revision: https://phabricator.kde.org/D8722
2017-11-10 09:36:03 -07:00
Diego Gangl f047b566cf Add more whitespace to the status bar
Summary:
This patch gives the status bar a little more vertical whitespace, prevents the status bar from "jumping up and down" when showing a progress bar, and adds a bit of padding on the sides so the labels are more clearly separated when using dual panes.

Reviewers: #dolphin, #vdg, ngraham, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D8540
2017-11-07 17:51:35 +01:00
l10n daemon script 26b8e974f5 GIT_SILENT made messages (after extraction) 2017-11-05 03:01:20 +01:00
Montel Laurent ff3f476ed8 Use nullptr + add explicit keyword
Test Plan: compile

Reviewers: #dolphin, broulik

Reviewed By: broulik

Subscribers: #dolphin

Differential Revision: https://phabricator.kde.org/D8637
2017-11-03 14:54:06 +01:00
Montel Laurent d1acb1d56e Remove not necessary check pointer
Test Plan: compile

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: #dolphin

Differential Revision: https://phabricator.kde.org/D8565
2017-11-01 17:15:24 +01:00
Nathaniel Graham 64cfc43b97 Make Saved Search feature discoverable
Summary:
FEATURE: 269332

Make Dolphin's Saved Search feature discoverable by adding a button inside the search field. The button only becomes enabled when there is a valid search term. When pushed, it saves the search to the Places panel, providing a visible-by-default way to do this to complement the existing implementation that is only visible in the context menu.

Also harmonized the label text so that it's consistent no matter how you create a saved search (button or context menu)

Test Plan:
Tested in KDE Neon. Works great:
{F5449508}

Reviewers: #dolphin, broulik, dfaure, markg, emateli, elvisangelaccio

Reviewed By: #dolphin, markg, emateli, elvisangelaccio

Subscribers: anthonyfieroni, markg, emateli, elvisangelaccio, cfeck, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D8454
2017-11-01 09:00:48 -06:00
Andreas Krutzler 5454283008 Two clicks on file/folder to rename
Summary:
Make renaming of files/folders faster by clicking a second time on the items text to start renaming.
BUG: 205157

Test Plan:
This feature works as follows:

1. select an item by single-click, or one is already selected
2. wait the "double-click-interval"
3. click on the items text
4. none of the cancellations (see below) happens within the double-click-interval
5. inline-renaming starts

Cancellations:
* open any file/folder
* select different item(s)
* start dragging items
* Dolphin loses focus

This feature is just enabled while "Double-click to open files and folders" in system-settings and "Rename inline" in Dolphin are enabled.

Reviewers: #dolphin, #kde_applications, elvisangelaccio, emmanuelp, ngraham, markg, rkflx

Reviewed By: #dolphin, #kde_applications, elvisangelaccio, ngraham, rkflx

Subscribers: rkflx, markg, funkybomber, sars, elvisangelaccio, ngraham

Differential Revision: https://phabricator.kde.org/D7647
2017-10-27 07:06:13 -06:00
Elvis Angelaccio f20300256b Make sure we always have the Del shortcut
Same fix as in D7655, but this time for the MoveToTrash standard action.

Differential Revision: https://phabricator.kde.org/D7860
2017-10-16 19:56:37 +02:00
Elvis Angelaccio c58226ce4f Fix Q_OS_WIN ifdef
This should fix my previous commit.
2017-10-14 12:49:29 +02:00
Elvis Angelaccio 7787f08067 Fix build on Windows
TerminalPanel is not available on Windows, so commit bd47eb2e6d broke
the MSVC build on the CI.
2017-10-14 12:36:26 +02:00
Miklos Marton bd47eb2e6d Don't block unmounting when terminal panel's cwd is the mountpoint
When unmounting a removable media Dolphin checks if there are
some files open on the device before performing the unmount.
If the terminal window in dolphin is open and the to be unmounted path is open,
 the unmount process will be blocked.

This patch sets the terminal window current path to the home directory upon unmount request
 if the terminal directory is set to the mount path.

The unmount request could came from two sources:

    The user could hit right click on the media in the dolphin's places panel and hit unmount.
    The user could request an unmount from the indicator applet

This patch was originally written by Arjun AK for the kdelibs4 version
of Dolphin: https://git.reviewboard.kde.org/r/121613/

BUG: 158264
FIXED-IN: 17.11.80

Differential Revision: https://phabricator.kde.org/D7847
2017-10-12 23:21:49 +02:00
Nathaniel Graham 1ad3b7775e Move Folders item closer to the top
Summary:
Move Folders item closer to the top in Dolphin's find panel. This seems like a more natural placment than after the document types.

Also re-order variable placement to maintain consistency

Test Plan:
Tested in KDE Neon; works. Before:
{F4631565}

After:
{F4631532}

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: #dolphin

Differential Revision: https://phabricator.kde.org/D8132
2017-10-04 09:08:52 -06:00
XY Quadrat 60ef0fc76b Add option to only search for folders
This commit adds an option under "More options" at the search widget.
It allows to only search for folders and filter out everything else,
just like the other options (e.g. "Videos") above.

FEATURE: 269334
REVIEW: 130159
2017-10-03 23:11:28 +02:00
Fabian Vogt f9bbbd82f4 Merge branch 'Applications/17.08' 2017-09-30 16:30:14 +02:00
Fabian Vogt c96efc7ccb Fix build with Qt 5.10
Summary: QStaticText's constructor with const QString & as argument is now explicit.

Test Plan:
Did not build before, now does.

Note that this might change the behaviour as the other properties of m_text are now
kept, which was not the case before. I'm not sure what the expected behaviour here
is supposed to be.

Reviewers: #dolphin, #kde_applications, cfeck

Reviewed By: cfeck

Subscribers: cfeck, #kde_applications, #dolphin

Differential Revision: https://phabricator.kde.org/D8075
2017-09-30 16:28:47 +02:00
Nate Graham 76698ff82c Add Bitrate to Dolphin's Additional Information
Summary:
Adds Bitrate to Dolphin's Additional information columns.

BUG: 368418

Test Plan:
Tested in KDE Neon. A bitrate column can be added and shows the bitrate in kb/s:

{F3907210}

Works for audio as well as video files!

Reviewers: #dolphin, #kde_applications, broulik, aacid, dfaure, emmanuelp

Reviewed By: #dolphin, #kde_applications, emmanuelp

Subscribers: rkflx, alexeymin, anthonyfieroni

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D7763
2017-09-21 22:56:39 -06:00
Gregor Mi 3749b55527
Select child folder when navigating to a parent folder
Whenever the dolphin view is initialized to show the contents of a new URL
(e.g. "/home/x/test") it will be checked if the new URL is a parent of the
previous displayed URL (e.g. "/home/x/test/documents/aaa"). If the check is
successful, then the common child (in this example: "/home/x/test/documents/")
folder item will be selected and scrolled into view.

REVIEW: 123253
BUG: 377392
CCBUG: 335616
2017-09-21 15:41:26 +02:00
Elvis Angelaccio 49396318f0 Merge branch 'Applications/17.08' 2017-09-17 11:56:42 +02:00
Emirald Mateli 478f404b8a Keep renamed file(s) in view
When renaming a file, if its new name causes it to scroll out of view,
Dolphin will not scroll to the location of the new file.
This patch aims to address that. This affects all view modes.

CCBUG: 354330

Test Plan:
1. Have many files in a directory (or several files, just zoom in a lot)
2. Rename a file so that it will move out of view

Differential Revision: https://phabricator.kde.org/D6312
2017-09-17 11:12:46 +02:00
Elvis Angelaccio cdd002c57c Make sure we always have Shift+Del as shortcut
After commit 68bb0ec22a the shortcut for the Delete action is not
necessarily Shift+Del, but whatever the user set in System Setting.
However DolphinRemoveAction assumes/hardcodes Shift+Del, so we should
always make sure we have this shortcut around, for consistency.

We just need to add it (if necessary) to the list of shortcuts of the
action. However:

* for the actual Delete action, we need to append it (if we'd prepend it,
  it would override a custom primary shortcut in the 'Configure Shortcuts' dialog).
* for DolphinRemoveAction, we need to prepend it in order to have
  Shift+Del (rather than the custom primary shortcut) in the context menu.

Differential Revision: https://phabricator.kde.org/D7655
2017-09-17 11:06:32 +02:00
Nathaniel Graham d1b68db1a3 Add "Release Year" column to Dolphin's Details view
Summary:
Adds a "Release Year" column to Dolphin's Details view.

BUG: 384317

Test Plan: Tested in a KDE Neon VM.

Reviewers: aacid, broulik, #kde_applications, #dolphin, alexeymin, emmanuelp

Reviewed By: #dolphin, alexeymin, emmanuelp

Differential Revision: https://phabricator.kde.org/D7776
2017-09-13 10:45:12 +05:00
Kai Uwe Broulik 64973a2997 Create KToolTipWidget on demand
Given tooltips are disabled by default anyway.

Differential Revision: https://phabricator.kde.org/D7783
2017-09-12 17:16:21 +02:00
Ben Cooksley 0006e9997e Qt 5 Porting: Q_WS_WIN -> Q_OS_WIN
(cherry picked from commit 4c1df50d52)
2017-09-12 19:19:53 +12:00
Nathaniel Graham 2b2bab4049 Add "Open in New Window to Dolphin's places context menu
Summary:
BUG: 384352

Add an "Open in New Window" menu item to the context menu for Dolphin's places items.

Test Plan:
Tested in up-to-date KDE Neon. Works as expected:

{F3898707}

Reviewers: #dolphin, #kde_applications, dfaure, aacid, elvisangelaccio, emmanuelp, broulik

Reviewed By: #dolphin, emmanuelp, broulik

Subscribers: alexeymin, emmanuelp, broulik, sefaeyeoglu, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D7690
2017-09-11 22:04:22 +02:00
Ben Cooksley 4c1df50d52 Qt 5 Porting: Q_WS_WIN -> Q_OS_WIN 2017-09-12 07:25:25 +12:00
Elvis Angelaccio 2fd85facf8 Fix DolphinRemoveAction Shift toggling on Wayland
QGuiApplication::queryKeyboardModifiers() does not work on Wayland [1].
We don't need it in the first place, since we already know (thanks to
the key events) whether Shift has been pressed or released.
So we can just pass this information to DolphinRemoveAction::update().

BUG: 354301

[1]: https://bugreports.qt.io/browse/QTBUG-62786

Differential Revision: https://phabricator.kde.org/D7519
2017-09-07 21:31:42 +02:00
Elvis Angelaccio 735b171451 Set version in project()
As discussed on release-team [1], this will enable automatically setting
product versions on bugzilla [2].

[1]: https://mail.kde.org/pipermail/release-team/2017-July/010474.html
[2]: https://community.kde.org/Guidelines_and_HOWTOs/Application_Versioning#Bugzilla_versions
2017-09-03 11:18:04 +02:00
Albert Astals Cid b33faabcd6 GIT_SILENT Upgrade KDE Applications version to 17.08.1. 2017-09-02 11:25:44 +02:00
Robert Hoffmann 94fab8c80e
Limit folder panel to home directory if inside home
Summary:
Added the option to limit the displayed folders in the folder panel (F7) to the tree below the user's home directory if the current URL is inside the home directory.
This can be configured in the preferences General/Behaviour tab by checking the corresponding check box.

Reviewers: #dolphin, elvisangelaccio, emmanuelp

Reviewed By: #dolphin, elvisangelaccio, emmanuelp

Subscribers: emmanuelp, elvisangelaccio, #konqueror, #dolphin

Differential Revision: https://phabricator.kde.org/D7477
2017-09-01 10:15:40 +02:00
Kai Uwe Broulik 652f57d281 Prefer place name over actual name in title bar
When inside a place, the address bar already gives it precedence over the actual folder name.
By doing this in the title bar also, we make it consistent and can mask ugly technical terminology
like "trash:/" and instead show the nice localized "Trash" place name as well as "Home" instead
of lowercase internal user name.

BUG: 211959

Differential Revision: https://phabricator.kde.org/D4826
2017-08-29 17:15:24 +02:00