┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.cpp
AgeCommit message (Collapse)Author
2011-11-06Delete obsolete class DolphinSettingsPeter Penz
2011-11-04Don't use mixed units in size-column of details-viewPeter Penz
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-10-23Improve group-header layoutPeter Penz
- Apply a dynamic width - Use a height that depends on the style - Cleanup some interfaces and replace xxxBoundingRect() by xxxRect()
2011-10-16Sort the items in DolphinView::selectedItems(), part 2Frank Reininghaus
I forgot this change in the last commit. CCBUG:283409
2011-10-16Sort the items in DolphinView::selectedItems()Frank Reininghaus
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-15Interface cleanups to prepare the return of "grouped sorting"Peter Penz
- 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-15Fix regression concerning Control+mouse wheel zoomingFrank Reininghaus
Commit 9311f4bc97ec7000be46b8eec242a8 accidentally removed DolphinView::wheelEvent(), which is responsible for the handling of Control+mouse wheel events. These should change the zoom level.
2011-10-14Activate the DolphinView if the KItemListContainer gets focusFrank Reininghaus
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-08Remember the changed header-roles as part of the directoryPeter Penz
2011-10-08Context menu cleanupsPeter Penz
- 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-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-25Fixed selection of directories with a trailing slash used with --selectChirag Anand
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-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-20Change signature of setVisibleRoles()Peter Penz
Simply use a QList<QByteArray> instead of QHash<QByteArray, int>.
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 DolphinView::sorting()Frank Reininghaus
This fixes the problem that changing the sorting criterion from 'Name' to 'Date' and then back to 'Name' doesn't work.
2011-09-17Implement restoring expanded folders in Details ViewFrank Reininghaus
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-09Version control: Show context menu entries of pluginsPeter 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-01Removed warning, minor coding style updatePeter Penz
2011-08-31Items are expandable in the Details View.Frank Reininghaus
2011-08-30Implement DolphinView::simplifiedSelectedUrls()Frank Reininghaus
Makes it possible to trash and delete items.
2011-08-30Made items a const.Tirtha Chatterjee
2011-08-30DolphinView zoom with CTRL+MouseWheel REVIEW: 102490Vishesh Yadav
2011-08-30Using selectedItems() method already present in DolphinView for ↵Tirtha Chatterjee
slotItemActivated()
2011-08-29Renamed some signals for consistency with KItemViews classesPeter Penz
2011-08-29Fixed a trivial bug that was breaking build.Tirtha Chatterjee
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-26Implement DolphinView::selectionMimeData()Frank Reininghaus
BUG:280456
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 selection of items using mouse clicks.Frank Reininghaus
2011-08-09Improvements for selections, smooth scrolling, tooltips and info-panelPeter Penz
2011-08-02Minor cleanupsPeter Penz
- Cleanup whitespaces after signal-normalization patch - Cleanup DolphinView::Mode numbering
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-06-02Keeps the selection after showing/hiding hidden files.Matthias Fuchs
Still only files that are shown will be selected, thus selecting hidden files and then hiding hidden files will deselect those. BUG:177215 REVIEW:101487
2011-05-29Set the window on the directory lister created in ViewAccessor so that passwordDawit Alemayehu
management can be handled properly. REVIEW: 101469
2011-05-19Fix DolphinView regression in 4.6: Keep renamed items visibleFrank Reininghaus
Commit 78669f2a57ecfb547019383deadf4aeac7d20070 introduced a regression in DolphinView which disabled the automatic scrolling after a rename operation to keep the renamed item visible. This commit reverts a part of that change to re-enable the feature. CCBUG: 273600 FIXED-IN: 4.6.4 (cherry picked from commit 54f34a941f85efa659392a06b14fee86f1420bf5)
2011-03-08Prevent unnecessary reloading of KDirLister on startupPeter Penz
When Dolphin is started with a directory as argument unnecessary reload operations of KDirListers are done. The patch improves this by just letting the DolphinView internally do a loading as soon as it gets visible (and without reloading). Also in case if only one directory is passed as argument the current tab gets reused instead of creating new tabs and removing the current tab. Thanks a lot to David Faure for pointing out this unefficient handling.
2011-02-28Fix issue that wrong directory is shownPeter Penz
Commit 680009b522b2c9eda03201ac02dc18994b5a8bd0 resulted in a regression when switching from a view in the column-mode to a view in the icon- or details-mode: The wrong content has been shown. This patch reverts commit 680009b522b2c9eda03201ac02dc18994b5a8bd0 and solves the performance-issue in combination with previews by triggering the preview-generation in a queued way.
2011-02-13Improve performance when turning on the preview modePeter Penz
If a change from a directory with disabled previews is done to a directory with enabled previews, also previews are generated for the previous directory as the preview-generator still contains the not updated directory lister. Because of this it is important to apply the view-properties after the directory-lister has been updated.
2011-02-09Coding style update for pointer comparisonPeter Penz
Most developers seem to prefer if (ptr) ... if (!ptr) ... in comparison to if (ptr != 0) ... if (ptr == 0) ... Adjusted the Dolphin-code to use the "most-prefered style" to make contributors happy.
2011-02-04Update e-mail address from [email protected] to [email protected]Peter Penz
2011-02-04Use capitalized KDE includesPeter Penz
2011-01-09Don't trigger a slotDirListerCompleted() when the directory lister has been ↵Peter Penz
cancelled. Beside leading to a crash for the unit tests this is semantically wrong. svn path=/trunk/KDE/kdebase/apps/; revision=1213203
2011-01-09Fix implementation of DolphinView::invertSelection() which assures that ↵Peter Penz
DolphinView::hasSelection() provides a valid return-value. This looks like an issue in Qt, but I did not have the time yet to provide a Qt-only example for a bug-report :-( svn path=/trunk/KDE/kdebase/apps/; revision=1213199
2011-01-09Encapsulate the creation and handling of the directory lister, the model and ↵Peter Penz
proxy model to DolphinView. By this it will be easier later to replace the traditional QAbstractItemViews by any kind of other implementation (e.g. based on QGraphicsView/QML). svn path=/trunk/KDE/kdebase/apps/; revision=1213189