Commit graph

488 commits

Author SHA1 Message Date
Frank Reininghaus bf39cc3808 Add i18 call to untranslated string
The string was added in ecb2715ead.
According to the soft message freeze policy on techbase, it's OK to fix
previously untranslated strings. Translators, please tell me if I'm
wrong, then I'll remove the string and the surrounding code and re-add
it to master later for KDE 4.11. Sorry for the trouble.

Thanks to David Faure for pointing out this mistake!

CCMAIL: kde-i18n-doc@kde.org
2012-12-13 22:30:07 +01:00
Script Kiddy c52d57d872 SVN_SILENT made messages (.desktop file) 2012-12-10 11:27:21 +01:00
Script Kiddy b5000b871d SVN_SILENT made messages (.desktop file) 2012-12-10 07:32:47 +01:00
Frank Reininghaus 99f2840038 Correct value for autostart setting of Service-nepomukfileindexer, part2
After 530c743a89, this fixes the other
places where the incorrect default value 'false' was used.

Thanks to Luc Menut for noticing this problem!

CCBUG: lmenut@free.fr
2012-12-07 22:38:57 +01:00
Frank Reininghaus b2a580c2b9 Merge remote-tracking branch 'origin/KDE/4.9' 2012-12-07 22:31:24 +01:00
Frank Reininghaus a1353a9d48 Fix incorrect usage of list iterators
The problem was that we erased an iterator from the list and then
incremented it. This can lead to problems (namely, random crashes) if
the iterator pointed to the last list element.

Thanks to Sandro Mani for testing the patch!

BUG: 311246
FIXED-IN: 4.9.5
2012-12-06 19:48:59 +01:00
David Faure 6a3f8086a3 Merge remote-tracking branch 'origin/KDE/4.9' 2012-11-28 16:40:07 +01:00
Emmanuel Pescosta b2719884b9 Fix Bug 310465 - Can't switch view mode for non-writable paths
BUG: 310465
FIXED-IN: 4.9.4
REVIEW: 107458
2012-11-25 21:44:01 +01:00
Frank Reininghaus 06e5202c47 Merge remote-tracking branch 'origin/KDE/4.9' 2012-11-24 17:28:43 +01:00
Frank Reininghaus ba3e70ffe0 Clear the previous selection when selecting pasted or dropped items
This fixes a recent regression in the 4.9 branch caused by
b25059e803.

BUG: 310365
FIXED-IN: 4.9.4
REVIEW: 107389
2012-11-24 16:04:43 +01:00
Frank Reininghaus 4220612684 Delete FileMetaDataToolTip using deleteLater() to prevent crashes
The problem was that Qt tried to deliver an 'Enter' event to the
dangling pointer that once pointed to the tool tip.

Many thanks to G. Christ for finding a way to reproduce this crash!

BUG: 282257
BUG: 310579
FIXED-IN: 4.9.4
2012-11-24 05:10:56 +01:00
Luca Beltrame 59e8f22cd5 Merge branch 'KDE/4.9'
Conflicts:
	konqueror/settings/kio/kcookiespolicies.cpp [master only changes]
	konqueror/settings/kio/kcookiespolicies.h [ditto]
2012-11-20 07:44:59 +01:00
Frank Reininghaus 96672c166f Only select a created item and make it 'current' in the active view
The 'make the new item the current one in all views' issue has been
around for quite some time, the unexpected selection was a recent
regression caused by commit b25059e803.

Thanks to Jaime Torres for finding the regression early and for testing
this patch!

BUG: 310219
FIXED-IN: 4.9.4
2012-11-18 16:22:52 +01:00
Dawit Alemayehu b85d46b838 Merge remote-tracking branch 'origin/KDE/4.9' 2012-11-10 16:28:36 -05:00
Emmanuel Pescosta ce1bdf40cf Fix Bug 217575 - Auto select pasted files doesn't select all files if some have been skipped
BUG: 217575
REVIEW: 107237
FIXED-IN: 4.9.4
2012-11-09 14:52:32 +01:00
Frank Reininghaus 15faff457d Merge remote-tracking branch 'origin/KDE/4.9' 2012-11-05 22:12:45 +01:00
Frank Reininghaus 9d6feb556d Do not show an incorrect file name after a failed rename operation
BUG: 303742
FIXED-IN: 4.9.3
2012-10-31 23:06:39 +01:00
Frank Reininghaus 1353c92cce Fix some indentation issues 2012-10-30 08:25:21 +01:00
Emmanuel Pescosta c503452d56 Fix Bug 153984 - Clicking cancel on the authentication dialog for fish/sftp/ftp kioslave gets dolphin stuck on "Loading folder"
BUG: 153984
REVIEW: 107116
2012-10-29 20:54:53 +01:00
Simeon Bird 04dabe84b2 Fix race condition and deadlock in the version plugin
when listing directories is slow.

BUG: 302264
FIXED-IN: 4.9.3
2012-10-19 21:06:49 -04:00
Simeon Bird 4f6a2780ee Fix race condition and deadlock in the version plugin
when listing directories is slow.

BUG: 302264
FIXED-IN: 4.9.3
2012-10-19 21:05:54 -04:00
Emmanuel Pescosta a9b04801db Port Dolphin from Nepomuk to Nepomuk2 according to the Nepomuk2Port mini guide on techbase - http://techbase.kde.org/Projects/Nepomuk/Nepomuk2Port
REVIEW: 106825
2012-10-15 21:46:59 +02:00
Pino Toscano c239ae19de Merge remote-tracking branch 'origin/KDE/4.9' 2012-10-13 09:27:54 +02:00
Amol Godbole 67cae55f9d Use not only Alt+Return, but also Alt+Enter as shortcut for "Properties"
BUG: 307603
REVIEW: 106753
FIXED-IN: 4.9.3
2012-10-07 19:39:59 +02:00
Dawit Alemayehu bc66254304 Merge branch '4.9' 2012-10-03 15:09:58 -04:00
Frank Reininghaus 2277ccaf23 Fix the hidden "EnlargeSmallPreviews" option
This option, introduced in 99e4eb0f3a, did
not work any more since 2069c20021.

CCBUG: 307522
2012-10-03 10:14:20 +02:00
Luca Beltrame f1b822d926 Merge branch 'KDE/4.9'
Conflicts:
	konq-plugins/dirfilter/dirfilterplugin.cpp
	konq-plugins/dirfilter/dirfilterplugin.h
2012-09-21 10:55:08 +02:00
Emmanuel Pescosta c824340147 Fix Bug 297355 - Dolphin leaves file preview tooltips open even when is not visible
BUG: 297355
FIXED-IN: 4.9.2
REVIEW: 106499
2012-09-20 17:57:10 +02:00
Frank Reininghaus fa255857a0 Re-enable renaming items with the rename dialog
User feedback has shown that many users used the dialog for renaming
files. Since the dialog is still used when renaming multiple files, I
think there is no good reason not to use it for renaming single files
as well if the user wants.

Note that we cannot add an option in the settings dialog due to string
freeze issues. For the time being, you will have to add the line
"RenameInline=false" to the [General] section of
$KDEHOME/share/config/dolphinrc.

BUG: 304627
FIXED-IN: 4.9.2
2012-09-12 21:19:41 +02:00
Frank Reininghaus 42dad0a948 Fix possible crash when refreshing the view while renaming inline
It is not reproducible on every machine for me, but it seems that it can
happen that DolphinView's slot slotRoleEditingFinished() is invoked
after the items have already been removed from the model. In that case,
we have to return from the slot immediately to prevent a crash.

BUG: 306147
FIXED-IN: 4.9.2
2012-09-11 19:43:53 +02:00
Dawit Alemayehu 2da3823b74 Implemented the new KParts extension, KParts::ListingiNotificationExtension.
REVIEW: 106333
(cherry picked from commit acef4b1c28)
2012-09-07 08:54:14 -04:00
Dawit Alemayehu 8b11c747a0 Implemented the new KParts extension, KParts::ListingiNotificationExtension.
REVIEW: 106333
2012-09-07 08:52:53 -04:00
Dawit Alemayehu 055ad286aa Implemented the new KParts' listing filter extension, KParts::ListingFilterExtension.
REVIEW: 106289
(cherry picked from commit cb79ee6a88)
2012-09-05 11:31:38 -04:00
Dawit Alemayehu 1bac8668d7 Implemented the new KParts' listing filter extension, KParts::ListingFilterExtension.
REVIEW: 106289
2012-09-05 11:25:37 -04:00
Weng Xuetian a33310c99b fix missing enum
REVIEW: 106239
2012-08-29 07:44:24 -04:00
Weng Xuetian bdd0b97662 fix missing enum
REVIEW: 106239
2012-08-29 07:44:04 -04:00
Weng Xuetian 09ba6bcb62 Make --select can automatically scroll to the selected file.
REVIEW: 106209
2012-08-27 14:01:10 -04:00
Weng Xuetian 864495f661 Make --select can automatically scroll to the selected file.
REVIEW: 106209
2012-08-27 13:58:46 -04:00
Raphael Kubo da Costa 89960b65e9 Merge branch 'KDE/4.9'
`git merge -s recursive --log --edit KDE/4.9' was run first, and it looked
like the only conflicts were in some docbooks. I then aborted the merge and
ran `git merge' with `-Xours' to use this branch's version of the
conflicting files.

Even though a lot of changes are listed below, all but the last two are
already present in master because they were cherry-picked from one branch to
another.

Hopefully this sets a trend and people start using git as it was intended to
be used.

* KDE/4.9: (50 commits)
  Adjust to Ark's drag'n'drop D-Bus interface changes.
  Adjust to Ark's drag'n'drop D-Bus interface changes.
  Fix wrong behaviour, when Dolphin is started with --split argument.
  Do not crash when finishing inline renaming in unusual ways
  Fix regression that caused "(I18N_EMPTY_MESSAGE)" sub menus in menus
  Select the correct item in places-panel, when a directory is opened.
  SVN_SILENT made messages (.desktop file)
  avoid duplicate entries in konqueror address completion list
  Fix translations not showing in the Sort by and Additional Information submenus
  Fix wrong text color in Places Group Header. Use QPalette::Window for base color and QPalette::WindowText for text color. Also changed m_roleColor color mixing to 60% (from 70%) -> Better visible color difference when base color is darker than text color. Also changed styleOption().palette.brush(group, role).color() to styleOption().palette.color(group, role) in KStandardItemListWidget -> should be more efficient.
  Fix wrong text color in places and in folders panel.
  Show icon size as tooltip when adjusting icon size
  Fix a long standing security issue with the hiding of Konqueror's location (address) bar through javascript.
  Fixed the display of the security sheild icon for SSL sites.
  SVN_SILENT made messages (.desktop file)
  Follow-up to d7e7ca53bb - use correct icon
  Use a better icon for recently accessed items in the Places Panel
  Use a saner check for multimedia files in infopanel.
  Fix the size of the rating stars in Icons View
  Stop preview jobs when closing Dolphin
  ...
2012-08-26 01:30:51 -03:00
Raphael Kubo da Costa d898f40f29 Adjust to Ark's drag'n'drop D-Bus interface changes.
Ark's drag'n'drop D-Bus interface needs to be changed: so far, the object
path was always /DndExtract, but this does not work if Ark is being used as
an embedded KPart (in Konqueror or Rekonq, for example), as all tabs will
end up calling QDBusConnection::registerObject() with the same path. Only
the first call will work, and the result is that dragging and dropping from
any tab previewing an archive with Ark will extract from the first archive
being previewed.

To fix that, applications that accept the application/x-kde-dndextract
mimetype should now be adjusted to check the
application/x-kde-ark-dndextract-service and
application/x-kde-ark-dndextract-path ones instead; the former contains the
same service information that used to be passed, while the latter tells
which object path should be talked to.

This is the Dolphin part of the change, which also needs to be made to
the folderview plasmoid.

REVIEW:		106131
CCBUG:		304860
2012-08-26 01:28:59 -03:00
David Faure 00935edbde Fix compiler warning, which spotted a real bug.
ItemLayout is an enum, not a flag, so == is even more correct than '&'.
2012-08-13 22:29:44 +02:00
David Faure eb14263c48 Fix bug 303375 - Dots in directory names treated as file extension.
Patch by Emmanuel Pescosta <emmanuelpescosta099@gmail.com>

BUG: 303375
REVIEW: 105575
FIXED-IN: 4.9.0
2012-08-13 22:25:49 +02:00
David Faure 43474e7b9d Fix compiler warning, which spotted a real bug.
ItemLayout is an enum, not a flag, so == is even more correct than '&'.
2012-07-20 12:11:45 +02:00
David Faure 149975a004 Fix bug 303375 - Dots in directory names treated as file extension.
Patch by Emmanuel Pescosta <emmanuelpescosta099@gmail.com>

BUG: 303375
REVIEW: 105575
FIXED-IN: 4.9.0
2012-07-20 12:09:04 +02:00
Chirag Anand cc03c5514c Ask before opening more than 5 items.
Thanks to A JANARDHAN REDDY for the patch.
CCBUG: 54990
CCMAIL: annapareddyjanardhanreddy@gmail.com
2012-07-11 00:13:53 +05:30
Peter Penz e9463ffe2a Fix regression: Open file if entering it in the URL-navigator
The regression has been introduced when hiding the DolphinDirLister
inside KFileItemModel. Now the signal urlIsFileError() gets forwarded
to the container again where the file will be opened.

BUG: 301757
FIXED-IN: 4.9.0
2012-06-13 15:18:21 +02:00
Peter Penz 1ddd9c4032 Inline renaming: Improve focus handling
Fix issue that cancelling the inline-renaming by clicking
on the other split view applies the wrong focus.

Thanks to Frank Reininghaus for the initial patch and noticing
this issue.

CCBUG: 301252
2012-06-08 22:51:01 +02:00
Peter Penz b2f5de9744 Krazy fixes 2012-06-08 22:08:29 +02:00
Peter Penz 98a4aa10ef Inline renaming fixes
- Don't use an outdated KFileItem when renaming an item more than once
- Use the same font as the view
- Don't lose the focus when an editor-popup is shown

BUG: 299327
BUG: 298883
BUG: 301253
FIXED-IN: 4.9.0
2012-06-08 16:40:01 +02:00
Peter Penz 0c206bda8e Emit zoomLevelChanged() if the preview gets toggled 2012-06-07 23:28:52 +02:00
Peter Penz 86ce0d761d Hide tooltip when changing the zoomlevel
BUG: 301056
FIXED-IN: 4.9.0
2012-06-02 17:42:11 +02:00
Peter Penz 203449110e Get rid of obsolete DolphinPlacesModel 2012-05-29 13:14:12 +02:00
Mark Gaiser a5c25d2de5 Make tooltip background blurred.
REVIEW: 105061
2012-05-26 18:05:25 +02:00
Peter Penz 073f8cae13 Further preperations for drag & drop support in the places panel 2012-05-26 13:41:30 +02:00
Peter Penz d9eab08fcb Don't create a .directory-file for each directory
This regression has been introduced on master and has not been
released yet: Due to the changed properties-format an update has
been done which resulted in writing a .directory file into each
newly entered directory.

The patch updates the view-properties and version only in the
constructor so that it is assured that reading properties never
accidently will change the internal version.

A unit-test has been added to catch regressions like this in future.

BUG: 300240
FIXED-IN: 4.9.0
2012-05-18 19:43:17 +02:00
Peter Penz 3e2cf9721b Provide default view properties for system-places
For the "Recently Accessed"-places and "Search For"-places like
documents, images, audio-files and videos proper default properties
are created now (e.g. previews and images-sizes are shown when
searching for "images" etc).
2012-05-16 23:13:55 +02:00
Peter Penz 73c30c7ea2 Allow to remember view-properties for the search-mode
Per default Dolphin remembers the view-properties for each search-URL
individually. However when being in the search-mode, where the
search-URL is different each time by definition, it should also
be possible for the user to adjust the view-properties. The DolphinView
is not aware about any "search-mode", so an interface has been added
to provide a "context" for storing the view-properties. The context
will be adjusted by the DolphinViewContainer in case if the search-mode
is active.
2012-05-10 23:29:25 +02:00
Peter Penz 6150ac5d5d Assure backward compatibility for the sort-role
Dolphin 2.1 uses "text" instead of "name" as default-role. Provide
backward compatibility with older .directory files and assure
that they get updated.
2012-05-09 15:50:54 +02:00
Peter Penz 7f96282e41 Allow to remember view-properties for search-results
Until now it was only possible to adjust the view-properties for
searching in general. Now the view-properties can be adjusted
dependent on the query (e.g. images, documents, ...).
2012-05-06 12:33:28 +02:00
Peter Penz 8e68c4235d Assure that a newly created item gets selected/focused and visible
Thanks to Franz Fellner for the patch!

CCBUG: 291064
CCMAIL: alpine.art.de@googlemail.com
2012-05-05 22:03:21 +02:00
Peter Penz 0a00f13bf2 Never pass null-items to version-control-plugins
Some plugins are not prepared for this and might crash. Although
the additional check in VersionControlObserver::actions() should not
be necessary because of the fix in DolphinView, it is left here
to catch potential other cases where a null-item might get passed
accidently.

Thanks to Ilya for initially patching the Box-plugin which gave
a hint whats going wrong.

BUG: 294336
FIXED-IN: 4.9.0
2012-04-27 09:31:57 +02:00
Peter Penz d9de391720 Provide additional default groups for the Places Panel
If Nepomuk is enabled, it is now possible to easily search for
some most common queries by having additional groups.
2012-04-24 23:18:34 +02:00
Peter Penz ae4d11d918 Prepare view-engine for non-KFileItem usecase
Up to now the view-engine only provided a model-implementation that
supports file-items. The view-engine always had been designed to be able
to work with any kind of model, so now a KStandardItemModel is available.
The plan is to convert the places panel to the new view-engine. It should
be no problem to fix this until the feature freeze - in the worst case
the places-panel code could be reverted while still keeping the
KStandardItemModel changes.
2012-04-21 21:32:42 +02:00
Peter Penz beeb9078f5 Ensure authentication data is cached properly
The attached patch sets the main window on the main directory
lister in DolphinView and KIO jobs in DolphinMainWindow to ensure
that login data for remote protocols such as sftp, ftp are cached
properly for the duration of the application. Otherwise, the end
user is going to end up being unnecessarily re-prompted to enter
password login information.

Thanks to Dawit Alemayehu for the patch!

REVIEW: 104614
FIXED-IN: 4.9.0
2012-04-17 22:21:55 +02:00
Peter Penz b2e54c3a31 Implement inline-renaming for the new view-engine
BUG: 286893
FIXED-IN: 4.9.0
2012-04-17 18:15:12 +02:00
Peter Penz 60b8681081 Allow to optionally limit the maximum number of text lines
Showing the whole filename unclipped seems to be a good default,
however for users with a lot of files that have extremely long names
this might get a problem especially in the icons-view.

- Allow to limit the maximum number of lines in the icons-view
- Allow to specify a maximum width in the compact-view

(No limit is required for the details-view, as the name is shortened
automatically to show other columns)

BUG: 288596
FIXED-IN: 4.9.0
2012-04-14 00:28:24 +02:00
Peter Penz 2c4e59a16f Fix outdated statusbar message when entering an empty folder
BUG: 291641
FIXED-IN: 4.9.0
2012-04-11 22:21:46 +02:00
Peter Penz 40c71d5ce0 KFileItemModel: interface cleanups
Fix some naming inconsistencies regarding the usage of 'dir' vs.
'directory' vs. 'folder'.
2012-04-11 21:53:45 +02:00
Peter Penz b28a5a6248 Minor API-cleanups for DolphinView 2012-04-11 16:43:11 +02:00
Peter Penz 6c3d9acbc2 KItemViews: Internal directory restructuration
- Move all private headers from the kitemviews-directory into
the 'private' subdirectory.

- Get rid of DolphinDirLister and just use a directory-lister
  internally in KFileItemModel.

- Minor interface-cleanups for signals
2012-04-11 16:08:32 +02:00
Peter Penz d9dbd3398a Improvements for slow sorting roles
If the sorting is done for data which is resolved asynchronously
(e.g. rating), it is important to give a visual feedback about
the state of the sorting. This is done now by a progress
indication in the statusbar.

Also optimizations for "Sort by type" have been done: Although
resolving a type can be expensive in the most often case it is a
very cheap operation. So it the sorting is done by type, try
to resolve the type synchronously for at least 200 ms to prevent
a asynchronous resorting. This is usually sufficient to have
resolved types even for directories with several thousands of
items.

BUG: 292733
FIXED-IN: 4.9.0
2012-04-10 16:36:26 +02:00
Stephen Kelly b8c3d933e6 Add some missing includes.
These are needed in Qt5/KF5.
2012-04-10 00:20:22 +02:00
Peter Penz 16e5740828 Revert the 2.0 decision to always use KB for file-sizes
The feedback on bugs.kde.org has shown that the previous behavior
(= show size with best-matching unit) is preferred by most users.
I initially wanted to make this configurable, but for implementing
it in a non-hacky way extending KLocale from kdelibs would have
been required. I'm not sure whether the usecase in Dolphin justifies
having such a configuration in KLocale - however as kdelibs is frozen
at the moment this is no option and the old behavior has been
restored.

BUG: 289850
FIXED-IN: 4.9.0
2012-04-09 09:50:17 +02:00
Peter Penz 05082aed16 Ignore maximum size for local files when creating previews
It is up to the plugins to decide what sensible size is required for
creating a preview, this cannot be decided by the user for all
plugins. A maximum size only makes sense for remote files, where
the user implicitely decides how much of the bandwith may be used
for having previews.

BUG: 273226
FIXED-IN: 4.9.0
2012-04-08 16:12:06 +02:00
Peter Penz dc555b8e56 Allow to specify whether an upscaling of images should be done
The option is currently hidden as up to now only Nuno requested it,
but it seems to be urgent: "my icon making productivity has drop subtantialy"
((c) 2012 Nuno)

As I don't want to get blamed for an outdated Oxygen-icon-set I have
no other choice ;-)

CCMAIL: nuno.pinheiro@kdab.com
2012-04-06 23:12:07 +02:00
Peter Penz a4ede4e0eb Allow showing Nepomuk metadata inside views
Metadata like image-size, rating, comments, tags, ... can be shown
now in the view (e.g. as column in the Details mode).

Still open: The rating-information needs to be shown as stars.

In the context of this feature also the following bugs have been
fixed:
- Fix visual glitches in the header of the Details mode
- Improve the minimum column width calculation to respect also
  the headling and not only the content

BUG: 296782
FIXED-IN: 4.9.0
2012-04-01 16:46:54 +02:00
Frank Reininghaus 88c3bd1866 Select files which have been pasted or dropped
Also clear the previous selection.
CCBUG: 295389
(cherry picked from commit 210e5e3b96)
2012-03-27 19:52:04 +02:00
Peter Penz e70c2f8aa4 Details view: Don't reset to automatic resizing when adding columns
Until now when a new column is added in the case where custom column widths
are used, the automatic resizing has been turned on again. The patch fixes
this so that the current widths stay and the new column gets a proper default
width.
2012-03-25 22:58:16 +02:00
Peter Penz 1cbe55b97c Cleanup and minor fixes for column-handling 2012-03-24 23:47:42 +01:00
Peter Penz 3f88f79f86 Details view: Optionally remember user changed column-widths
If the user changed a column-width in the details-view, up to now
the width got reset when changing a directory or when restarting
Dolphin. Now the column-widths automatically get remembered for each
directory in case if the user has modified the width. The automatic
resizing is still turn on per default. The storing of the custom
column-width can easily be reset by right clicking on the header and
selecting "Automatic Column Widths" from the context-menu.

Some finetuning is still necessary (e.g. the "Adjust View Properties"
dialog currently is not aware about this setting) but this will
be fixed during the next weeks.

BUG: 264434
FIXED-IN: 4.9.0
2012-03-23 22:31:55 +01:00
Peter Penz 03a65da80a KFileItemModel: Remove minimum-update timer
The timer became unnecessary after introducing the behavior to
collect all new items until KDirLister emits a completed()-signal.
2012-03-20 17:23:28 +01:00
Peter Penz 5798e081f5 Let additional mouse buttons trigger history navigation
Thanks to Sebastian Dörner for the patch!

REVIEW: 101335
BUG: 181823
FIXED-IN: 4.9
2012-03-19 16:53:53 +01:00
Patrick Spendrin ff239e9297 remove the : on windows to have a valid path name
BUG:287360
(cherry picked from commit 0bf2e7c29a)
2012-03-18 12:50:48 +01:00
Peter Penz d6e10a5942 Use sub-menus for the "Sort By"- and "Additional Information"-menu
This allows doing some grouping for the visible roles by e.g. Image,
Document, Music or whatever.
2012-03-14 16:53:31 +01:00
Peter Penz f041099904 Remove RolesInfoAccessor
Now KFileItemModel provides a way to access the available roles
including their translations. Note that the 3 roles "comments",
"rating" and "tags" have not been implemented yet in KFileItemModel
and turning them on does not work currently.
2012-03-13 16:29:45 +01:00
Peter Penz 6c60bf0ad5 Provide backward compatibility with older .directory versions
When upgrading to Dolphin 2.1 the obsolete additionalInfo-property
must be converted to the visibleRoles-property.
2012-03-12 15:19:20 +01:00
Peter Penz 2ba5c2cfc2 First step to introduce dynamic roles
Currently Dolphin is only capable of showing a fixed number of
roles (e.g. name, size, date, owner, ...). Dolphin 2.1 should
support also other roles like rating, tags, comments or other
meta-information of images or audio-files.

To support this the sorting-type and additional-type from
DolphinView has been replaced by a role-type represented as
QByteArray.
2012-03-11 19:05:56 +01:00
Peter Penz 475f8b1261 Details view: Allow to turn off expandable folders like in Dolphin 1.7
The option for turning off expandable folders has been removed with
the new view-engine. Due to several requests this option has been
readded again.

As for 4.8.x no new user-interface strings may be introduced, the
line
  ExpandableFolders=false
must be manually added below the section "[DetailsMode]" in the file
~/.kde/share/config/dolphinrc if the expandable-folders feature
should be disabled.

Thanks to H.H. "cyberbeat" for the initial patch!

BUG: 289090
FIXED-IN: 4.8.2
2012-03-09 16:19:19 +01:00
Peter Penz 08a485349f Allow custom sorting of details-view columns
Fix regression that Dolphin 2.0 did not allow to adjust the sorting
of the details-view columns.

BUG: 164696
FIXED-IN: 4.8.2
2012-03-07 22:18:59 +01:00
Peter Penz 21a5a890b3 Whitespace cleanups and documentation fixes 2012-02-23 17:28:03 +01:00
Peter Penz a6627b9f23 Fix drag and drop issue when dragging between windows
Explicitly check whether a dragging is ongoing to decide whether a
tooltip may be shown or not, just using QApplication::mouseButtons()
is not sufficient when dragging between windows.

BUG: 294533
FIXED-IN: 4.8.1
2012-02-23 15:55:06 +01:00
Peter Penz 2db0cca5cf Don't show tooltips when dragging to another Dolphin window
BUG: 294533
FIXED-IN: 4.8.1
2012-02-21 17:07:00 +01:00
Peter Penz 7deb601f31 Don't trigger assert when switching to details-view
If the visible roles of the details-view are equal to the visible roles
of other views, then switching to the details-view will trigger an
assert because the invisible roles don't get updated.

Thanks to Frank Reininghaus for the detailed analyses!

In the context of this fix optimizations have been done when switching
view-modes: The "don't-animate-workaround" could be removed.

BUG: 294531
FIXED-IN: 4.8.1
2012-02-21 16:49:38 +01:00
Peter Penz cf72e48111 Minor padding optimizations 2012-02-14 23:27:01 +01:00
Peter Penz 056d12d60f Group header layout fixes
- Don't use a margin for the first group header
- Provide margins between the groups
- Use a more subtle coloring
- Prevent animation glitches when resizing a window
2012-02-11 18:04:53 +01:00
Peter Penz 03415d9078 Layout optimizations
- Differ internally between margins and paddings
- Add a small padding in the icons-view and the compact-views
- Optimize the width of the icons-view if previews are shown
2012-02-08 17:48:32 +01:00
Peter Penz 3c83d8f14d Drag and drop: Adjust destination if the item is no directory or desktop-file
The URL of the view should be used as destination target if a dropping is not
done above a directory or desktop-file.

BUG: 293511
FIXED-IN: 4.8.1
2012-02-08 17:48:28 +01:00
Peter Penz 5369ee6819 Group header improvements
- Use a simpler background and colors as suggested by Martin Zilz.
  This is just an early draft, I need to post some comparison screenshots to
  Martin for review.
- Fixes of some layout issues that have been revealed because of adjusting
  the group header heights.
- More clever animation/no-animation detection when doing listview-property
  changes in parallel.
2012-02-06 23:31:49 +01:00
Peter Penz 72af3125a8 Icons view: Layout optimizations
- Assure that landscape-previews use the whole available width of the icon-area
  instead of only using the square width. This waste of space occured if the
  text-width was larger than the icon-width.

- Only use one margin instead of two between the icons and the text to improve the
  visual appearance (thanks to Martin Zilz for the hint)

BUG: 293268
FIXED-IN: 4.8.1
CCMAIL: martin@kreativkonzentrat.de
2012-02-04 22:22:19 +01:00
Peter Penz 4de262196a Fix crash when opening a tab during a tooltip is shown
Thanks a lot to Mathias Tillman for finding a 100 % reliable way
how to reproduce the issue and for the initial patch!

BUG: 278302
FIXED-IN: 4.8.1
2012-02-02 16:03:13 +01:00
Peter Penz bf84eeedc1 Adjust zoom-slider in the statusbar if settings have been changed
This fixes the issue that changing the zoom-level in the settings
does not update the zoom-slider in the statusbar.
2012-01-31 17:18:00 +01:00
Peter Penz e283a9f7d9 Synchronize view-mode settings before the settings dialog gets opened
BUG: 292698
FIXED-IN: 4.8.1
2012-01-30 16:38:24 +01:00
Peter Penz 6c39b4622f Further animation optimizations
- Assure a proper minimim width in the compact mode.
- Don't calculate the old position of hidden items to animate the
  moving. Just show them directly.
2012-01-30 13:01:13 +01:00
Peter Penz 1d7088b1ad Fix drag & drop issues with non-local URLs
BUG: 292821
BUG: 292355
FIXED-IN: 4.8.1
2012-01-30 12:09:36 +01:00
Peter Penz 452e2edaec --warning 2012-01-28 10:51:15 +01:00
Peter Penz a4553c9747 Fix regression: Allow dragging items on a tab
BUG: 292505
FIXED-IN: 4.8.1
2012-01-27 22:01:05 +01:00
Dawit Alemayehu d13504b5a7 When populating the "Show Remote Encoding" menu, put the check mark besides
the correct saved remote encoding charset.

BUG: 186289
FIXED-IN: 4.8.0
REVIEW: 103730
(cherry picked from commit 8f231bd081)
2012-01-18 18:05:15 -05:00
Peter Penz a7295033e6 Use new icon for "Show in groups"
This allows adding the "Show in groups" action to the toolbar with
a nice icon.

CCBUG: 290632
2012-01-16 15:39:46 +01:00
Peter Penz fcfb636ffe Fix "general settings" issues
If the general settings for the "selection toggle" or "expanding folders during
drag operations" are changed, those changes must be applied to the engine.
2012-01-14 21:46:41 +01:00
Peter Penz 6d621d299d Fix possible crash in version-control observer
BUG: 291505
FIXED-IN: 4.8.0
2012-01-14 19:28:09 +01:00
Peter Penz 7953913c9f Fix inconsistency in selection manager
When a selection has been done with non-linear ranges, it was possible that
the anchor item pointed to an invalid index that resulted into an invalid
selection.

As part of this fix the sorting for DolphinView::selectedItems() has been
disabled (if the caller assumes a sorted selection he must manually adjust it).

BUG: 288908
FIXED-IN: 4.8.0
2011-12-30 00:09:42 +01:00
Peter Penz 965107fd02 Update previews when the preview-plugin settings have changed
Thanks to Janardhan Reddy for the initial patch.

BUG: 288726
FIXED-IN: 4.8.0
2011-12-21 21:48:24 +01:00
Peter Penz 090393599c Show an error when dragging above a folder without write access
Got OK from the translator team to add this new string.
2011-12-20 08:58:24 +01:00
Peter Penz 023ab306c7 Hide tooltips when dragging items 2011-12-18 20:29:34 +01:00
Peter Penz 5f1ae054d7 Hide tooltips when the view is scrolled 2011-12-17 23:01:41 +01:00
Peter Penz f640e48bbe Assure that the general settings are refreshed
This fixes issues where Dolphin must get restarted after changing
a general setting.

BUG: 289131
FIXED-IN: 4.8.0
2011-12-16 19:43:10 +01:00
Peter Penz d9222cd1ce RenameDialog: Don't disable the OK-button if nothing has been changed
This prevents using the RETURN-key when accidently opening the
renaming dialog.

Thanks to Thomas Murach for pointing this out and providing the patch!

REVIEW: 103414
2011-12-15 16:47:54 +01:00
Peter Penz 42adf258b6 Remember sort settings
If the user has changed the sort-role or sort-order by clicking on the view-header of the details-view, the settings have been adjusted to the model but not remembered in the directory settings.
2011-12-11 20:24:38 +01:00
Peter Penz 54713bab0b Show error-message when dropping a folder into itself
Thanks to Janardhan Reddy for the analysis of the issue!

BUG: 283646
FIXED-IN: 4.8.0
2011-12-10 21:50:24 +01:00
Peter Penz 9a7a77e973 Reloading is not necessary anymore on a settings change
The new view-engine can adjust the properties with the existing items.
2011-12-09 16:54:56 +01:00
Peter Penz a237e085fc Fix font settings issue
The font settings have been ignored currently because of the transition to the new view-engine.

The patch is based on the work of Janardhan Reddy and has been extended by the helper class ViewModeSettings.

BUG: 288395
FIXED-IN: 4.8.0
2011-12-08 23:10:42 +01:00
Peter Penz 2827b96d98 Fix "show hidden files" issues
Use KFileItemModel instead of KDirLister for toggling the whether
hidden files should be shown. This assures that the signal
KFileItemModel::loadingCompleted() will be emitted.

In the longterm Dolphin should only use the KFileItemModel, so that
the KDirLister instance is used only internally as implementation
detail in KFileItemModel. Although there are only a few cases left
where KDirLister is used instead of KFileItemModel this cleanup
will be postponed to after the 4.8 release...

BUG: 287314
BUG: 288213
FIXED-IN: 4.8.0
2011-12-08 11:13:28 +01:00
Peter Penz b358e99280 Enable "menu key" functionality
Bring back the functionality that a context-menu is opened if the "menu key" has been pressed. In opposite to Dolphin 1.7 the context-menu is shown above the selected item and not on the (probably unrelated) mouse position.

A new method KItemListView::itemContextRect() has been introduced: The method is now also used as reference for tooltips which fixes the issue that tooltips had a wrong horizontal alignment in the details-view.

BUG: 288366
FIXED-IN: 4.8.0
2011-12-07 23:10:00 +01:00
Peter Penz f61e1c4b87 Version control: Don't tint unversioned files
BUG: 287742
FIXED-IN: 4.8.0
2011-12-06 21:25:27 +01:00
Peter Penz 9d5d18739f Selection and current item fixes
- Remember selection + current item when switching view-modes
- Fix the current item indicator alignment for selections
- Set the item as current item when the selection toggle has
  been clicked
2011-12-06 21:17:01 +01:00
Peter Penz 9135ff9537 Don't animate when switching view-modes
Currently when switching the view-modes an animation of the items
is done, where the position and size is adjusted for the new
view-mode.

Although this might look nice initially I'd consider this as a
kind of animation that is distracting and hence it has been
turned off.
2011-12-06 19:50:09 +01:00
Peter Penz 8998ee8f51 Folders Panel cleanups
- Reactivate dropping of URLs
- Remove unused/obsolete code
- Simplify DragAndDropHelper interface
2011-12-06 19:22:55 +01:00
Peter Penz 854b0acd1a Fix crash #1 when filtering items
When filtering items it was possible that the current index got
an invalid value which resulted in accessing the URL of a
null-KFileItem.

There is still one (general) open issue in KFileItemModelRolesUpdater
(crash #2) where a KFileItem that is already null gets read.
It is not really related to filtering but can be triggered
quite easy when filtering huge directories with enabled previews.

CCBUG: 287642
2011-12-04 18:21:46 +01:00
Peter Penz 7b8fbf7374 Reimplement name-filtering
The filtering of items has not been implemented yet in
the KFileItemModel of the new view-engine. The patch brings back
this functionality again, but some minor issues are open:
- When filtering trees expanded directories should only get
  hidden if no child is visible
- Regular expressions are not supported yet (they have not been
  supported in Dolphin 1.x but it is now quite simple to implement).
- When filtering previews and removing the filter it might be
  possible that the preview is not shown (is most probably an
  an already existing bug in KFileItemModelRolesUpdater).

BUG: 287642
FIXED-IN: 4.8.0
2011-11-30 00:24:33 +01:00
Peter Penz 3719ce7d2a Reactivate the "Open folders during drag operations" feature
The feature got temporary lost due to the port to the new view
engine.
2011-11-29 22:03:26 +01:00
Script Kiddy 4cd8ebff82 SVN_SILENT made messages (.desktop file) 2011-11-29 16:47:26 +01:00
Peter Penz 362817d183 Folders Panel fixes
The following functionality from Dolphin 1.x has
been ported to the new view-engine:
- Allow expanding/collapsing of items
- Automatically select the current item
- Context menu for items

Related improvements to the view-engine:
- Make the expanding/collapsing interface already accessible
  in the base classes KItemModelBase and KItemListView. If
  no expanding/collapsing is supported at all by derived models
  (which is usually the default case) simply not reimplementing
  those 3 methods is sufficient and it does not introduce an
  additional complexity like in QAbstractItemModel/QModelIndex.

- Automatically handle the expanding/collapsing in KItemListController.
  This also includes the key-handling, which is quite special for
  expandable items.

- Don't let KItemListView automatically scroll to the current item
  if the current item got changed. The automatic scrolling should
  only be done if the current item has been changed by the user.
  Hence this functionality has been moved to the KItemListController
  which currently only triggers the automatic scrolling if the current
  item has been changed by the keyboard (we might extend the usecases
  later if required).
2011-11-26 01:16:31 +01:00
Sebastian Trueg 93cc480803 Use KFileItem::text() instead of KFileItem::name().
This way Nepomuk search results get their proper user readable names.
BUG: 287472
REVIEW: 103237
2011-11-25 16:09:57 +01:00
Frank Reininghaus 3950eccaf0 Fix restoring expanded URLs
When navigating back or forward in history, DolphinView tells the
KFileItemModel about the expanded URLs which should be restored before
the folder is entered. In this case, the algorithm in the new function
KFileItemModel::setExpanded(const QSet<KUrl>&) does not work. To fix
this, the old function
KFileItemModel::restoreExpandedUrls(const QSet<KUrl>&) is restored.

Unit test included.
2011-11-24 23:38:36 +01:00
Peter Penz b27e599429 Initial draft for bringing back the "Folders" panel
The folders panel has been adjusted to use the new view-engine.
A lot of things don't work yet, but are mostly minor issues that
should be fixable during the next 10 days.
2011-11-20 19:35:01 +01:00
Peter Penz b6fb59fc7e Remove "Rename inline" option
The new view-engine currently does not support inline-renaming
and because of more important pending issues this cannot be
implemented for the 4.8 release of KDE applications.

The plan for 4.9 is to implement inline-renaming again and
to make it "so good" (tm) that it is always turned on (-> there is
no need anymore for an option to disable it ;-)

CCBUG: 286893
2011-11-19 07:12:06 +01:00
Peter Penz e560a2f646 Fix selection style issues
Don't use a custom drawing code for showing the hover-indication
or selection of the text.
- The default style for items is used.
- Merge icon-rectangle and text-rectangle if possible.
- Fix background and minor focus-issues
2011-11-13 20:58:43 +01:00
Peter Penz 2438b61d8e Bring back the selection-markers
Still some finetuning is necessary, but lets first bring
back the missing features from Dolphin 1.x to 2.0 before starting
with this.
2011-11-13 16:21:56 +01:00
Peter Penz e7390eba86 Show compact-mode icon also in Konqueror
Additionally a broken signal-connection has been fixed.
2011-11-06 12:14:07 +01:00
Peter Penz 3c77ffe832 Delete obsolete class DolphinSettings 2011-11-06 11:59:26 +01:00
Peter Penz eadbf920b5 Don't use mixed units in size-column of details-view
This makes it tricky to compare the filesizes without adjusting
the sort-order, so now all sizes in the size-column are shown
in KiB or KB (dependent on the KLocale setting).

BUG: 219932
FIXED-IN: 4.8.0

Related fixes:
- Stay consistent with the rounding when using the KiB/KB unit
  in the statusbar.
- Fix sorting-by-size issue for folders
- Show "Unknown" in the size-column when the number of items
  cannot be determined.
2011-11-04 21:58:32 +01:00
Peter Penz 517ebd721e Improve group-header layout
- Apply a dynamic width
- Use a height that depends on the style
- Cleanup some interfaces and replace xxxBoundingRect() by
  xxxRect()
2011-10-23 21:32:35 +02:00
Frank Reininghaus 6840794b57 Sort the items in DolphinView::selectedItems(), part 2
I forgot this change in the last commit.
CCBUG:283409
2011-10-16 20:45:10 +02:00
Frank Reininghaus 91653bb174 Sort the items in DolphinView::selectedItems()
Before this commit, the order of the items in the list returned by
DolphinView::selectedItems() was random. Now the items are sorted like
they are sorted in the view.
BUG: 283409
2011-10-16 20:39:34 +02:00
Peter Penz 283f97ac27 Interface cleanups to prepare the return of "grouped sorting"
- Rename setCategorizedSorting() to setGroupedSorting()
- Change the model interface to allow enabling/disabling grouping
  without the need to declare a role (the sort role will be taken).
- Add dummy group role implementation in KFileItemModel

The grouping code itself requires some cleanups and might crash
at the moment or lead to weird layouts.
2011-10-15 22:55:01 +02:00
Frank Reininghaus a49109b09a Fix regression concerning Control+mouse wheel zooming
Commit 9311f4bc97 accidentally removed
DolphinView::wheelEvent(), which is responsible for the handling of
Control+mouse wheel events. These should change the zoom level.
2011-10-15 20:08:42 +02:00
Frank Reininghaus 1abb47fba7 Activate the DolphinView if the KItemListContainer gets focus
This is needed in the case that the view is split to make the
DolphinMainWindow aware of the view which is currently active.
2011-10-14 09:21:19 +02:00
Peter Penz 0ebf2d1fe0 Don't let KItemListView decide itself whether to show the header
The header should be turned on or off by the user of the
KItemListView classes.
2011-10-08 23:06:33 +02:00
Peter Penz 0e8ba413f4 Remember the changed header-roles as part of the directory 2011-10-08 21:53:30 +02:00
Peter Penz 6551c000fc Context menu cleanups
- Open the context menu on the mouse-press event, not on the
  mouse-release event.
- Provide an explicit position-information and don't use
  QCursor::pos(). This fixes the issue that opening a context-menu
  by the keyboard opens below the cursor.
- Provide different signals in the KItemListController for
  the different context-menu types (item vs. view vs. header).
- Implement turning on/off roles by the header-context-menu.
2011-10-08 21:43:55 +02:00
Peter Penz 5b015f037c Fix layout when the header has been adjusted by the user 2011-10-02 16:42:26 +02:00
Peter Penz d9f9e69ce1 Implement smooth-scrolling for horizontal and vertical scrollbars
Currently only a smoothscrolling was provided into the
scroll-direction, but not in case of the details-view where a
horizontal scrollbar might be shown too.

Some minor adjustments of the private KItemListSmoothScroller interface
will be done later...
2011-09-30 23:27:09 +02:00
Chirag Anand 172ee368c9 Fixed selection of directories with a trailing slash used with --select
parameter.

As QHash would not match a KUrl key with it's value if the key had a
trailing slash, so it would return -1, hence the file won't get
selected.
Changed the UpdateViewState slot to remove the trailing slash before
calling the index function for the selected URL. Also modified
DolphinView to use KUrl list instead of KFileItemList to maintain
simplicity.
2011-09-25 01:06:33 +05:30
Chirag Anand 9ca11175a4 Fixed bug for selecting files with --select parameter.
Files selected via --select parameter did not get current item focus.
And if files were deleted while being current item, updating the view
would select the next item instead of the first item in the list.

BUG: 257805
CCMAIL: peter.penz19@gmail.com
CCMAIL: frank78ac@googlemail.com
2011-09-22 18:08:49 +05:30
Peter Penz 63e1e3bc14 Change signature of setVisibleRoles()
Simply use a QList<QByteArray> instead of QHash<QByteArray, int>.
2011-09-20 15:20:16 +02:00
Peter Penz f9bcd0a47c Rough draft for getting back the header for the details-view 2011-09-19 16:39:08 +02:00
Peter Penz 3c41cd3c9d Fix crash in version-control-observer
The returned file-item of the root might be null.

BUG: 282108
2011-09-18 15:07:27 +02:00
Frank Reininghaus 31d3b91813 Implement some missing sorting options
Changing the sort order and enabling/disabling the
"Sort Folders First" option works now.
2011-09-18 15:03:45 +02:00
Frank Reininghaus 01d4b8d082 Implement DolphinView::sorting()
This fixes the problem that changing the sorting criterion
from 'Name' to 'Date' and then back to 'Name' doesn't work.
2011-09-17 22:51:57 +02:00
Frank Reininghaus 9424f5a789 Implement restoring expanded folders in Details View 2011-09-17 14:35:25 +02:00
Script Kiddy 6a0b15cbaa SVN_SILENT made messages (.desktop file) 2011-09-12 09:37:32 +02:00
Peter Penz ff24326174 Provide KVersionControlPlugin version 2
Based on the work of Vishesh Yadav some extensions where required
for the KVersionControlPlugin interface that have found there way
now into KVersionControlPlugin2.

Beside some interface cleanups it is now possible that a version
control plugin may also provide context actions for directories or
files that are not versioned yet.

REVIEW: 102541
2011-09-10 18:11:09 +02:00
Peter Penz c7272df5c1 Improve cache handling in KItemListWidget
Provide a hook for derived KItemListWidget where the cache
can be updated.
2011-09-09 20:35:57 +02:00
Peter Penz 93cb7e0261 Version control: Show context menu entries of plugins 2011-09-09 19:22:13 +02:00
Peter Penz 9dbd073951 Version control: Get rid of PendingThreadsMaintainer 2011-09-09 12:28:28 +02:00
Script Kiddy 4ed6c9f842 SVN_SILENT made messages (.desktop file) 2011-09-09 09:18:36 +02:00
Peter Penz b60cbf2d1d KFileItemModel: emit itemsChanged() signal 2011-09-08 21:17:35 +02:00
Peter Penz f0debd9377 Version control: show pixmap overlays for the version state 2011-09-08 20:29:27 +02:00
Peter Penz be629fe850 Version control: Apply text-color if an item is versioned 2011-09-08 18:58:59 +02:00
Script Kiddy f8f78f223c SVN_SILENT made messages (.desktop file) 2011-09-08 09:00:21 +02:00
Peter Penz b8c718a6fd First step to reactivate version control plugin functionality
- Add a DolphinFileItemListWidget that provides icon-overlays
  and colored text for the version state (implementation is
  missing yet)
- Allow KFileItemListWidget to have custom text colors
- Update interface of VersionControlObserver to work with
  KFileItemModel instead of the old model-interface.
2011-09-06 23:45:41 +02:00
Peter Penz 7a91492cff Improved drag and drop support 2011-09-04 17:41:15 +02:00
Peter Penz 8266e456a1 Simplified code for the viewmode settings 2011-09-02 19:49:49 +02:00
Peter Penz c4a3313ea9 Preserve extensions when renaming multiple files
Thanks to Chiraq Anand for the patch! The commit is based on the
patch at https://git.reviewboard.kde.org/r/102495/ with some
minor modifications.

REVIEW: 102495
2011-09-01 19:04:53 +02:00
Peter Penz fc5cb366c2 Removed warning, minor coding style update 2011-09-01 15:57:34 +02:00
Frank Reininghaus 15ebfc7329 Items are expandable in the Details View. 2011-08-31 12:17:08 +02:00
Frank Reininghaus 4582bca90b Implement DolphinView::simplifiedSelectedUrls()
Makes it possible to trash and delete items.
2011-08-30 19:05:09 +02:00
Tirtha Chatterjee 1e897556b0 Made items a const. 2011-08-30 21:28:25 +05:30
Vishesh Yadav 7c99bf5f6b DolphinView zoom with CTRL+MouseWheel REVIEW: 102490 2011-08-30 18:16:27 +05:30
Tirtha Chatterjee 8a5cf061e1 Using selectedItems() method already present in DolphinView for slotItemActivated() 2011-08-30 12:19:52 +05:30
Peter Penz 1b88652b85 Renamed some signals for consistency with KItemViews classes 2011-08-29 20:14:33 +02:00
Tirtha Chatterjee aa94938451 Fixed a trivial bug that was breaking build. 2011-08-29 21:18:23 +05:30
Tirtha Chatterjee 6e6b4ce75c Added the functionality to activate items by pressing 'enter' or 'return' key on them, equivalent to a mouse click.
REVIEW: 102450
2011-08-29 21:13:36 +05:30
Frank Reininghaus b43316297e Implement DolphinView::selectionMimeData()
BUG:280456
2011-08-26 17:34:54 +02:00
Peter Penz 074acd8009 Fix possible endless recursion when using the rubberband
If the autoscrolling has been activated when using the rubberband,
it was possible that an endless recursion occured as the
autoscrolling triggered a change of the rubberband which triggered
a change of the autoscrolling etc.
2011-08-20 13:54:20 +02:00
Peter Penz 1479e82315 Allow to adjust start-index when renaming a various number of items
Review: http://git.reviewboard.kde.org/r/102328/
Thanks to Chirag Anand for the patch!

CCMAIL: anand.chirag@gmail.com
2011-08-15 20:36:43 +02:00
Frank Reininghaus 769084221f Implement DolphinView::setItemSelectionEnabled() 2011-08-14 11:34:03 +02:00
Frank Reininghaus 7b911df33e Two small selection improvements in DolphinView
1. Implement DolphinView::clearSelection().
2. Simplify DolphinView::invertSelection().
   I found, fixed, and unit-tested a bug in the selection
   manager which was uncovered by this change.
2011-08-14 11:05:19 +02:00
Peter Penz 7230abb635 Fix typo 2011-08-13 13:14:31 +02:00
Peter Penz 917619f52a Add a TODO-proposal for a cleaner solution of the PendingThreadsMaintainer
Thanks to Andre Wöbbeking for giving me a pointer to fix this ;-)

CCMAIL: woebbeking@kde.org
2011-08-13 13:09:02 +02:00
Peter Penz c79949ed7f Fixes for "krazy" 2011-08-13 13:00:32 +02:00
Frank Reininghaus 58ab93541c Implement selection of items using mouse clicks. 2011-08-13 11:51:38 +02:00
Peter Penz 3957884bf2 Improvements for selections, smooth scrolling, tooltips and info-panel 2011-08-09 16:22:36 +02:00
Peter Penz 10f0f8d558 Minor cleanups
- Cleanup whitespaces after signal-normalization patch
- Cleanup DolphinView::Mode numbering
2011-08-02 19:58:22 +02:00
Frank Reininghaus 23f189feef Some small API docs fixes in DolphinView. 2011-08-01 21:06:38 +02:00
Montel Laurent 08d655c2bc normalize signals/slots 2011-07-31 13:33:56 +02:00
Peter Penz f23e9496f3 Merged very early alpha-version of Dolphin 2.0
Dolphin 2.0 will get a new view-engine with the
following improvements:
- Better performance
- Animated transitions
- No clipped filenames due to dynamic item-sizes
- Grouping support for all view-modes
- Non-rectangular selection areas
- Simplified code for better maintenance

More details will be provided in a blog-entry during
the next days.

Please note that the code is in a very
early alpha-stage and although the most tricky parts
have been implemented already very basic things like
drag and drop or selections have not been pushed yet.
Those things are rather trivial to implement but this
still will take some time.
2011-07-30 20:13:41 +02:00
Script Kiddy 051759e823 SVN_SILENT made messages (.desktop file) 2011-07-12 10:35:32 +02:00
Peter Penz 0659763dac Revert "Use isEmpty()" - the original code asked for a size > 1 and not >= 1...
This reverts commit fa73fbfb84.
CCMAIL: neoclust.kde@free.fr
2011-07-12 00:33:09 +02:00
Nicolas Lécureuil 3056126517 Use isEmpty() 2011-07-11 22:47:01 +02:00