┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
AgeCommit message (Collapse)Author
2011-10-03Keep current item and selection when resorting, part 2Frank Reininghaus
This commit adds the missing pieces to KItemListView and makes KFileItemModel::resortAllItems() only emit the itemsMoved() signal.
2011-10-02Elide the texts if the user shrinks the column-widthsPeter Penz
2011-10-02Fix layout when the header has been adjusted by the userPeter Penz
2011-10-01Fix itemsMoved() signal/slot signature: KItemRangeList -> KItemRangeFrank Reininghaus
2011-09-30Implement smooth-scrolling for horizontal and vertical scrollbarsPeter Penz
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-29Keep current item and selection when resorting, part 1Frank Reininghaus
KFileItemModel now emits the itemsMoved signal when the model is resorted, and KItemListSelectionManager has a new function itemsMoved() which will be called indirectly when this signal is emitted. Unit tests for the new functionality are included. The following things are still needed to make the feature work: 1. KFileItemMdel::resortAllItems() should not emit itemsAdded/itemsRemoved any more. 2. KItemListView::itemsMoved() must update the view according to the changes in the model, and it must call KItemListSelectionManager::itemsMoved().
2011-09-28Details view: Improve performance when expanding itemsPeter Penz
Prevent unnecessary calls to visibleRolesSizes() when expanding items. Also the performance has been improved when resizing the window.
2011-09-27Details view: Improve performancePeter Penz
When inserting items or when updating the item-roles there is no need to recalculate the column-widths for all items to get an optimized column-width.
2011-09-25Provide scrollbar for large itemsPeter Penz
If an item does not fit into the available width/height a scrollbar should be provided (e.g. typically this represents the horizontal scrollbar in the details-view where the width can be larger than the than the visible width). Currently the interaction with the scrollbar is not implemented but this will be a quite minor task in comparison to this patch.
2011-09-24Update the layout asynchronously when items are changedPeter Penz
This results in less overhead if item-changes are done rather fast (e.g. when applying the number of sub directories for the "size" role).
2011-09-24Fix size-hint calculation in KFileItemListViewPeter Penz
The current approach works fine but should be replaced in the longterm by a helper class shared by KFileItemListWidget and KFileItemListView to share information that is required to calculate the size hints in KFileItemListView and to represent the actual data in KFileItemListWidget.
2011-09-23Increase the width of the first column automaticallyPeter Penz
Additionally it is assured that on role-changes the size-hints get updated if necessary.
2011-09-23Allow resizing of columns by the userPeter Penz
Still open: - Column content is not clipped correctly - First column is not automatically increased to the available width like in Dolphin 1.7
2011-09-22Update the layout periodically when resizing the windowPeter Penz
Up to now the layout has only been updated when the geometry has not been changed for at least 300 ms. This has been changed so that at least each 300 ms the layout is updated to give a better visual feedback when resizing the window.
2011-09-22KItemListHeader: Allow resizing and change of the sortingPeter Penz
KItemListView does not react on the resizing yet. Toggling the sort order and changing the sort role is already possible.
2011-09-22Remove debugging outputPeter Penz
2011-09-22Fixed bug for selecting files with --select parameter.Chirag Anand
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: [email protected] CCMAIL: [email protected]
2011-09-21Improve drawing of list-headerPeter Penz
2011-09-20Show the role-description in the header of the details viewPeter Penz
2011-09-20Change signature of setVisibleRoles()Peter Penz
Simply use a QList<QByteArray> instead of QHash<QByteArray, int>.
2011-09-19Fixed documentation of KItemModelBase::itemsMoved()Peter Penz
2011-09-19Draw styled header for the details-viewPeter Penz
2011-09-19Rough draft for getting back the header for the details-viewPeter Penz
2011-09-18Implement 'Sort By Size'Frank Reininghaus
It only works for files so far. The sorting of folders by the number of items is more tricky to get right because this number is retrieved asynchronously by KFileItemModelRolesUpdater.
2011-09-18Implement some missing sorting optionsFrank Reininghaus
Changing the sort order and enabling/disabling the "Sort Folders First" option works now.
2011-09-17Implement restoring expanded folders in Details ViewFrank Reininghaus
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