┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
AgeCommit message (Collapse)Author
2011-09-16Fix crash when expanding/closing a sub-treePeter Penz
m_pendingItems and m_pendingInvisibleItems might contain already removed items. Take care to delete them before starting to resolve the roles. Thanks to Frank Reininghaus for finding out the root-cause.
2011-09-10Fix possible crash in KFileItemModel::slotRefreshItems()Frank Reininghaus
If the changed items have been created recently, they might not be in m_items yet. In that case, the list 'indexes' might be empty, which leads to a crash later on (I saw the crash in KFileItemModel's unit test).
2011-09-10Provide KVersionControlPlugin version 2Peter Penz
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-09Improve cache handling in KItemListWidgetPeter Penz
Provide a hook for derived KItemListWidget where the cache can be updated.
2011-09-08KFileItemModel: emit itemsChanged() signalPeter Penz
2011-09-08Version control: show pixmap overlays for the version statePeter Penz
2011-09-08Version control: Apply text-color if an item is versionedPeter Penz
2011-09-06First step to reactivate version control plugin functionalityPeter Penz
- 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-04Improved drag and drop supportPeter Penz
2011-09-01Improve autoscrollingPeter Penz
- Start autoscrolling when doing a dragging - Start autoscrolling with a small delay
2011-09-01Fix issue when moving items to trashPeter Penz
KDirLister does not emit a completed() signal when deleting files, only when files are listed.
2011-08-30Implement DolphinView::simplifiedSelectedUrls()Frank Reininghaus
Makes it possible to trash and delete items.
2011-08-30KItemListKeyboardSearchManager improvements and unit testsFrank Reininghaus
This commit implements a 'repeated key search' feature, similar to QAbstractItemView, and adds unit tests for keyboard searching.
2011-08-30DolphinView zoom with CTRL+MouseWheel REVIEW: 102490Vishesh Yadav
2011-08-29Fix context-menu selection issuePeter Penz
When requesting a context menu above a non-selected item, the existing selection must be cleared.
2011-08-29Renamed some signals for consistency with KItemViews classesPeter Penz
2011-08-29Added the functionality to activate items by pressing 'enter' or 'return' ↵Tirtha Chatterjee
key on them, equivalent to a mouse click. REVIEW: 102450
2011-08-29Removed a warning of unused variableTirtha Chatterjee
2011-08-29Added support for highlighting items by typing their name on the keyboard.Tirtha Chatterjee
2011-08-28Control-rubberband selection toggles the selection stateFrank Reininghaus
2011-08-27Adjust the current item when selecting an expansion togglePeter Penz
2011-08-27Improve the autoscrolling for the rubberband selectionPeter Penz
This modifications will also allow to do an autoscrolling in an easy way for drag and drop operations (not fully implemented yet).
2011-08-27Minor simplificationPeter Penz
2011-08-27Respect the KGlobalSettings::singleClick() attribute, function accordinglyTirtha Chatterjee
REVIEW: 102447
2011-08-27Remove unneded function KItemListSelectionManager::anchorItem()Frank Reininghaus
2011-08-26Simplify KItemListSelectionManagerFrank Reininghaus
1. The anchorChanged() signal is not needed. 2. The only place where setAnchorItem() is called is in beginAnchoredSelection() -> merge both functions.
2011-08-26Fix issue that removing an item is not recognizedPeter Penz
Thanks to Tirtha Chatterjee for the patch! REVIEW: 102435
2011-08-25Fix smooth-scrolling issue in combination with key-pressesPeter Penz
If e.g. the down-arrow-key is pressed constantly the view does not scroll as the animation always will get restarted. Assure that the animation proceeds in this case.
2011-08-25Fix smooth-scrolling issuePeter Penz
The smooth-scrolling may only get turned off after finishing the animation, if the scrollbar is not currently modified by the user.
2011-08-24Fix issues with the anchor selectionPeter Penz
Don't change the selection if the anchor is invalid. This fixes the issue that items might get selected during changing a directory.
2011-08-24Dragging and selection fixesPeter Penz
- Don't clear the selection on mouse-press events, do it (if allowed) in the mouse-release-event. Otherwise dragging of multiple selected items would not be possible. - Don't clear the selection when the context-menu gets opened by a right-click. - Fix issue that dragging is not possible after the first drop that has been canceled.
2011-08-24Improve KFileItemModel::createMimeData()Peter Penz
Use the same approach like in KDirModel::mimeData().
2011-08-24Interface cleanups for drag and drop supportPeter Penz
2011-08-23Rough draft for getting back drag and drop supportPeter Penz
Includes a lot of TODOs but is a base for getting back full drag and drop support quite soon.
2011-08-20Fix rubberband-issue in combination with Shift- and Control-keyPeter Penz
The old selection must be remembered before starting the rubberband selection, otherwise it would not be possible anymore to deselect items that have been selected by the rubberband itself.
2011-08-20Respect Shift- and Control-key for the rubberband selectionPeter Penz
If the user has pressed the Shift- or Control-key during the rubberband selection, the previous selection should not be cleared.
2011-08-20Simplify rubberband selection for views that have only one columnPeter Penz
In this case the rubberband automatically uses the whole width of the view.
2011-08-20Select items when using the rubberbandPeter Penz
2011-08-20Respect rubberband direction when autoscrollingPeter Penz
The autoscrolling should not be triggered if the rubberband direction is different from the autoscroll direction
2011-08-20Fix possible endless recursion when using the rubberbandPeter Penz
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-18Provide basic rubberband functionalityPeter Penz
This is just a rough draft: The rubberband gets visible and an automatic scrolling is done if the autoscroll-margins have been reached. However currently no items get selected yet. Currently the autoscrolling has a severe bug if the scrollbars are manually changed before or after a rubberband selection.
2011-08-15Add unit test for expanding folders in KFileItemModelFrank Reininghaus
2011-08-15Fix for KFileItemModel::expansionLevelsCompareFrank Reininghaus
Before this commit, expanding and collapsing folders in the details view would lead to strange results in a folder with the items "a", "a/a/", "a/a/1", "a/a-1/", and "a/a-1/1". The problem was that the comparison between "a/a/1" and "a/a-1/1" went wrong: the first character in which the paths differ is a "/" in one of the items, such that the code that reduces this 'index' in KFileItemModel::expansionLevelsCompare in order to find the 'common path' did nothing because it checked that only *one* of the two items does not have an "/" at the position 'index'.
2011-08-14Remove incorrect assertsFrank Reininghaus
They could lead to crashes if the Details View is used and the view is not wide enough to show all columns for the items.
2011-08-14Keep the current item visible in the viewFrank Reininghaus
2011-08-14Enable switching rows or columns using the keyboardFrank Reininghaus
2011-08-14Move drawing of textbackground to KItemListWidgetPeter Penz
As the textbounding-rectangle is now a property of KItemListWidget also the default visual appearance is moved now from KFileItemListWidget to KItemListWidget.
2011-08-14Rename KItemListWidget::hoverBoundingRect()Peter Penz
It has been split now to iconBoundingRect() and textBoundingRect(). This is required to implement the rubberband in an efficient way and makes it more explicit what rectangle is returned.
2011-08-14Two small selection improvements in DolphinViewFrank Reininghaus
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-13Implement basic keyboard navigation in Icons and Compact ViewFrank Reininghaus
Things that are still missing: 1. Moving to the previous/next row with Up/Down in Icons View, moving to the previous/next columns in Compact View. 2. Navigation in Details View. Note that scrolling to the current item doesn't work yet, and that the view does not have keyboard focus initially, so one has to click the view before keyboard navigation and seleciton works.