┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-15Allow to adjust start-index when renaming a various number of itemsPeter Penz
Review: http://git.reviewboard.kde.org/r/102328/ Thanks to Chirag Anand for the patch! CCMAIL: [email protected]
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-14Remove "FirstRun" propertyPeter Penz
The property got obsoleted by the "Version" property.
2011-08-14Don't limit the preview size to 2 GBytePeter Penz
Reviewed at: https://git.reviewboard.kde.org/r/102319/#review5683 Thanks to Jussi Judin for the patch! CCMAIL: [email protected]
2011-08-14Implement DolphinView::setItemSelectionEnabled()Frank Reininghaus
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.
2011-08-13KItemListContainer: show only the scroll bar that is neededFrank Reininghaus
Up to now, KItemListContainer would show both a vertical and horizontal scroll bar after a view mode change. This commit fixes that by setting the maximum and the value of the scroll bar that is not needed to 0 in KItemListContainer::updateScrollBars().
2011-08-13Fix typoPeter Penz
2011-08-13Add a TODO-proposal for a cleaner solution of the PendingThreadsMaintainerPeter Penz
Thanks to Andre Wöbbeking for giving me a pointer to fix this ;-) CCMAIL: [email protected]
2011-08-13Fixes for "krazy"Peter Penz
2011-08-13Don't enable the search panel per defaultPeter Penz
Assure that the search panel also stays disabled when updating from an older Dolphin version. BUG: 279348 FIXED-IN: 4.7.1
2011-08-13Implement selection of items using mouse clicks.Frank Reininghaus
2011-08-11Test signal emission on selection changesFrank Reininghaus
This commit adds a unit test that changes the selection in various ways, verifies the result and checks that the selection manager's selectionChanged signal has been emitted correctly. The test is data-driven, so I hope that most further testing needs can be fulfilled by adding new test data. Moreover, I changed selectedItems() such that the anchored selection is only taken into account if anchor and current item are different. The reason is that in some situation the anchor should not be selected initially (i.e., if an already selected item is Control-clicked). If the anchor should be selected from the beginning, it must be selected manually.
2011-08-11Emit KitemListSelectionManager's selectionChanged signal correctlyFrank Reininghaus
This commit makes sure that the signal is emitted with the correct current and previous selection after a selection change, and that the signal is emitted exactly once in KItemListSelectionManager::itemsInserted and KItemListSelectionManager::itemsRemoved.
2011-08-10Implement beginAnchoredSelection() and endAnchoredSelection().Frank Reininghaus
Unit test included.
2011-08-10Make sure that key presses are handled in KItemListControllerFrank Reininghaus
Key press events are forwarded from KItemListContainer to KItemListController. Right now, only the 'Home' and 'End' keys are handled (arrow keys require some more work because their action depends on the view mode). Note: 1. Before key presses are handled, the view has to be clicked with the mouse. It seems that the view does not have the keyboard focus initially. 2. The view does not scroll to the new current item yet.
2011-08-10Always use the 'Select' mode for anchored selectionsFrank Reininghaus
In Dolphin, we don't actually use the 'Deselect' and 'Toggle' modes for anchored selections, so we can just remove these modes and always use 'Select' to reduce code complexity.
2011-08-10Initial support for anchored selections in the selection managerFrank Reininghaus
2011-08-10Update the anchor item when items are added or removedFrank Reininghaus
If items are added or removed in the model, not only the current item, but also the anchor item, which is the starting point for any selections via Shift+Click or Shift+Key, needs to be updated. BUG: 262638 FIXED-IN: 4.8.0
2011-08-09Test setting the current item and anchor itemFrank Reininghaus
2011-08-09Improvements for selections, smooth scrolling, tooltips and info-panelPeter Penz
2011-08-08SVN_SILENT made messages (.desktop file)Script Kiddy
2011-08-04SVN_SILENT made messages (.desktop file)Script Kiddy
2011-08-04Underline the current item in KFileItemListViewFrank Reininghaus
It still looks a bit ugly, but at least we can see the current item now :-) It is only updated by mouse clicks at the moment.
2011-08-03Shift-clicks and Control-clicks should not open the itemFrank Reininghaus
2011-08-03Update current item and anchor item on mouse clicksFrank Reininghaus
2011-08-02Inform the selection manager about model changes.Frank Reininghaus
2011-08-02Minor cleanupsPeter Penz
- Cleanup whitespaces after signal-normalization patch - Cleanup DolphinView::Mode numbering
2011-08-02Improve performance for creating previewsPeter Penz
The overall time for creating previews is faster the more items are passed to KIO::previewJob() in parallel instead of passing e.g. only 100 items once and start several KIO::previewJobs sequentially. However in the worst case KIO::previewJob() might block the application for several seconds if the MIME-type of the passed KFileItems are unknown and e.g. 10000 items are forwarded. So KFileItemModelRolesUpdater will now take care to resolve as many MIME-types as possible until a timeout is reached and will only pass those items to KIO::previewJob(). For huge image folders, where the MIME-type can be determined very fast, this means that the overall time for creating previews will decrease without blocking the application. For "worst case" directories where resolving the MIME-type can get very expensive this approach assures no blocking of the user-interface although the overall time until all previews are generated might slightly increase.
2011-08-02Fix unwanted triggering of itemsFrank Reininghaus
An item should only be triggered after a mouse release event if the mouse press has been done at the same position.
2011-08-01Some small API docs fixes in DolphinView.Frank Reininghaus
2011-08-01Add missing separators to the "Help" sub-menu of Dolphin's menubar ↵Kai Uwe Broulik
replacement like all KDE apps have BUG: 276560
2011-07-31normalize signals/slotsMontel Laurent
2011-07-30Merged very early alpha-version of Dolphin 2.0Peter Penz
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-17Fix Dolphin session management regressionFrank Reininghaus
The commit fff7573ebb910712ad97951bf1762e6a7bb0bdc7 introduced a regression concerning restoration of saved Dolphin sessions. The main window numbers which can be passed to KMainWindow::restore() start with 1, and not with 0. CCBUG:275649 (cherry picked from commit b4091809beedf0e373ac2f497634cc0bedf77a8f)
2011-07-12SVN_SILENT made messages (.desktop file)Script Kiddy
2011-07-12Revert "Use isEmpty()" - the original code asked for a size > 1 and not >= 1...Peter Penz
This reverts commit fa73fbfb84792d16dd56ebdeca1667ca12a597bd. CCMAIL: [email protected]