Commit graph

622 commits

Author SHA1 Message Date
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
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
Elvis Angelaccio 3bfdf0d2f0 Port to new KStandardAction slot syntax
For more compile-time safety.
2017-08-24 17:32:06 +02:00
Kai Uwe Broulik 1018848416 Support middle clicking of Back/Forward/Up/Home toolbar buttons
This opens the resulting page in a new tab.

BUG: 358649

Differential Revision: https://phabricator.kde.org/D7390
2017-08-24 15:45:28 +02:00
Elvis Angelaccio 5481709016 Port to KStandardAction::RenameFile
It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the F2 shortcut.

Differential Revision: https://phabricator.kde.org/D6777
2017-08-09 22:59:38 +02:00
Elvis Angelaccio f38960e034 Port to KHelpMenu
Less code and KHelpMenu respects KIOSK restrictions.

Differential Revision: https://phabricator.kde.org/D7095
2017-08-03 18:50:39 +02:00
Elvis Angelaccio 39fcc89450 Merge branch 'Applications/17.08' 2017-07-28 14:08:33 +02:00
Elvis Angelaccio 594a367834 Fix loading of dolphinui.rc
dolphin.qrc is compiled into a static library, which means we need to
force its loading with the Q_INIT_RESOURCE macro.

See http://doc.qt.io/qt-5/resources.html#using-resources-in-a-library

BUG: 382848
FIXED-IN: 17.07.90

Differential Revision: https://phabricator.kde.org/D6958
2017-07-28 14:05:53 +02:00
Elvis Angelaccio 4b5ea05b67 Port to KStandardAction::MoveToTrash
It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the Del shortcut.

Test Plan:
- Change shortcut in System Settings -> Shortcuts -> Standard Shortcuts
- Make sure the new shortcut is used by dolphin.

Differential Revision: https://phabricator.kde.org/D6778
2017-07-27 16:15:03 +02:00
Elvis Angelaccio 96eff55e75 Merge branch 'Applications/17.04'
* Applications/17.04:
  Change in "Open in new tab" feature in Dolphin
  Ignore drops-onto-items from invalid places items
  Revert "Increase smooth scrolling animation duration from 100 to 300 ms and set easing curve to InOutQuart"
2017-06-11 19:33:36 +02:00
Emirald Mateli ec9f4ed17c Change in "Open in new tab" feature in Dolphin
Summary:
This patch proposes a change to the "open in new tab" feature.

The "open in new tab" feature will try to open selected items (files or folders) in a new tab, however, if there are no valid items to be opened in a new tab then nothing will happen, making it look like a bug. This patch adds the functionality that when there are no valid items(files or folders) to be opened in a new tab the current folder will be opened.

Test Plan:
1. Select a file(pdf, text, image etc) in Dolphin
2. Click on the "Open in new tab" toolbar button

Expected: since the file is not a valid target to open in a new tab, the current directory should be opened (as is the case where selection is empty)
Actual: Nothing happens after the button is pressed

Reviewed By: #dolphin, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D6182
2017-06-11 19:28:39 +02:00
Elvis Angelaccio 1faef1c92d Introduce DolphinMainWindowTest
For now it contains a test case for the crash in bug #379135

CCBUG: 379135

Reviewers: emmanuelp, dfaure

Differential Revision: https://phabricator.kde.org/D5936
2017-05-27 10:28:09 +02:00
Elvis Angelaccio 73f885f9d3 Don't ignore tag clicks in the tooltips
Summary:
Now that we can use the metadata widgets in the tooltips, we can also
open the tags:// url if the user clicks some tag in a tooltip.

The behavior is now consistent with the metadata widget in the information panel.

Test Plan: Click a tag when the metadata tooltip shows up.

Reviewers: emmanuelp

Subscribers: #konqueror, #dolphin

Differential Revision: https://phabricator.kde.org/D5658
2017-05-08 16:04:19 +02:00
Don Nguyen 4de29ad90d behavior change -> New Window opens with same URL
This patch will cause a "New Window" command to open a new window with
the URL from the active view.  Opening a new instance via launcher will
still open a new window with the URL specified in Startup settings.
This is the behavior in Windows 10 file explorer.  The advantage is this
gives the user a way to open a new window with the current URL(New
Window) as well as a new window with URL specified in Startup
settings(new instance) whereas currently, there isn't an easy way to
open a new window with the current URL.  You'd have to either open a new
window and copy and paste the URL, or open a new tab(which opens with
the same URL) and detach it.  I'd much rather have the new window open
with the current URL and if what I wanted was the Startup URL I could
easily get there as it's already bookmarked.

REVIEW: 129973
2017-03-28 00:52:29 +02:00
Elvis Angelaccio 68bb0ec22a Port to KStandardAction::DeleteFile
Summary:
It was introduced in kconfig 5.25 and it properly handles the shift+del
shortcut (together with kxmlgui >= 5.30). This allows us to drop the
custom delete shortcut as well as the shift+del workaround in
DolphinMainWindow.

Test Plan: Shift+Del still deletes files, without the 'ambiguous shortcut' warning dialog.

Reviewers: emmanuelp

Differential Revision: https://phabricator.kde.org/D5010
2017-03-13 19:40:07 +01:00
Sergey Kalinichev 042b0c8409 Revert "Make "show filter bar" a toggle action"
This reverts commit edf8e57373.

See https://git.reviewboard.kde.org/r/129662 for discussion
2017-03-12 11:48:12 +03:00
Kai Uwe Broulik b79ea9f5e4 Pass application name and icon to KRun
Otherwise this results in the generic executable icon as bouncy cursor.

Differential Revision: https://phabricator.kde.org/D4823
2017-03-08 16:52:15 +01:00
Don Nguyen edf8e57373
Make "show filter bar" a toggle action
REVIEW: 129662
2017-02-18 22:55:38 +01:00
arnav dhamija ccb3658b3a Merge branch 'stashAction'
This adds the support for the Stash action which will be helpful for the upcoming stash:/ ioslave
2017-02-13 22:24:01 +05:30
arnav dhamija 0d4924d8bb Whitespace? 2017-02-13 22:20:59 +05:30
arnav dhamija f52f9331d0 Whitespace? 2017-02-13 22:17:00 +05:30
arnav dhamija d92d752828 Whitespace? 2017-02-13 22:16:56 +05:30
arnav dhamija b92ccf2ff5 Improved the patch 2017-02-13 15:39:01 +05:30
Elvis Angelaccio d0eae28f9f Drop no longer needed version check
Frameworks 5.30 is now the minimum version required.
2017-02-05 23:02:38 +01:00
arnav dhamija 8f28ceaad1 More happy with this patch 2017-02-02 21:46:54 +05:30
arnav dhamija e8a4868943 Made more changes 2017-01-29 23:31:43 +05:30
arnav dhamija 68cda76aa8 Time to get back to business 2017-01-29 22:00:08 +05:30
Elvis Angelaccio 1be2704214 Port away from deprecated KIO::Job::ui()
It's equivalent to KJob::uiDelegate() from kcoreaddons.
2017-01-18 23:45:39 +01:00
John Salatas 63a591f32a Show full path in title bar
BUG: 229810

Differential Revision: https://phabricator.kde.org/D4078
2017-01-14 04:26:14 -08:00
arnav dhamija fa9cc1333a This seems to work. Though it could be better 2016-11-03 09:35:15 +05:30
arnav dhamija e7f6a1010a Changed default arg for the setSplitViewEnabled 2016-11-02 21:49:11 +05:30
Kai Uwe Broulik bffb1c4d60 Merge branch 'Applications/16.08' 2016-10-28 13:42:28 +02:00
Safa AlFulaij 57a19efe93 The tab navigation shortcut workaround for RTL layouts is not needed anymore, as Qt supports that by default.
Before this, pressing Ctrl+Tab makes the previous tab (in RTL layout) the
activated one, and vice versa.

REVIEW: 128853
2016-10-12 14:31:35 +03:00
Elvis Angelaccio 0e5e43aa9d Hide message widgets only when reloading the view
Otherwise an error message might be hidden before it's even shown.

BUG: 357651
FIXED-IN: 16.08.2
REVIEW: 129061
2016-10-04 17:30:51 +02:00
arnav dhamija ee1231541a Fixed async conditions 2016-09-27 13:53:53 +05:30
arnav dhamija 3e32ee5e8c need to fix async conditions 2016-09-27 10:55:35 +05:30
arnav dhamija a097a1277a Changed shortcut, but need to fix async conditions 2016-09-27 10:37:08 +05:30
arnav dhamija 45d90a61f8 Found an icon for the button 2016-09-27 10:11:44 +05:30
arnav dhamija 2704b3693f Added the GUI button for quick stashing 2016-09-26 22:25:42 +05:30
Elvis Angelaccio ca53974181 Add Donate standard action to control menu
REVIEW: 128946
2016-09-20 11:24:15 +02:00
David Faure e615bfaed4 add_definitions(-DQT_NO_URL_CAST_FROM_STRING) + fix compilation
This fixes some URLs built from local paths without scheme.
2016-06-25 16:40:18 +02:00
David Edmundson 25cc15a5a2 Port all instances of Kauthorized action/shell_command to shell_command
The KAuthorized key to prevent shell access according the documentation
is simply "shell_action" not "action/shellAction" so should use
authorize not authorizeKAction

This appears to have come about as part of a porting bug when going from
KApplication::authorize to KAuthorized in kdelibs3 to kdelibs4.

To currently block shell access a sysadmin currently needs to
have both keys set already, so we can be confident it won't have any
actual compatibility problems.
2016-05-26 13:51:35 +01:00
David Edmundson 3b95644fa1 Don't allow opening the terminal if shell_access Kiosk mode is set
DolphinPart already did this. Dolphin itself didn't have this feature.

REVIEW: 127951
2016-05-18 10:11:36 +01:00
Artur Puzio 5593c252e8 [CLAZY] Fixed all level 1 and level 2 warnings with small exceptions
REVIEW: 126771
2016-03-16 22:17:37 +01:00
Wolfgang Bauer bf1dbee1d6 Fix check whether window is closed by session management
qApp->isSessionRestored() specifies whether the application has been
restored by session management. This is obviously wrong here. Use
qApp->isSavingSession() instead.

BUG: 353548
FIXED-IN: 15.12.2
REVIEW: 126917
2016-01-28 21:03:14 +01:00
Frank Reininghaus ddc050f235 Do not delete sub menus of the control menu explicitly
This is not necessary because the sub menus are children of the main
menu, such that they are deleted together with the other actions by
QMenu::clear().

This prevents a crash that can happen if a sub menu is open while
another menu action is clicked.

Thanks to Fabian Vogt and Wolfgang Bauer for investigating this issue!

BUG: 354558
FIXED-IN: 15.12.2
REVIEW: 126693
2016-01-14 20:36:28 +01:00
Emmanuel Pescosta 727d2513c0 Merge branch 'Applications/15.08' 2015-11-09 09:33:20 +01:00
Emmanuel Pescosta 5dd5eaf08d Allow home directories with non-local file paths.
Paths like file:/home/me work now instead of showing
an error message.

BUG: 352743
BUG: 353550
FIXED-IN: 15.08.3
REVIEW: 125586
2015-10-21 13:45:45 +02:00