┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
AgeCommit message (Collapse)Author
2009-09-11Fixed minor regression introduced with the column view refactoring: When ↵Peter Penz
switching the view mode in a folder showing previews, the previews get lost after switching. The KFilePreviewGenerator initialized in the ViewExtensionsFactory wants a valid icon size to accept previews. Fixed + Q_ASSERT added to prevent such a mistake in future. svn path=/trunk/KDE/kdebase/apps/; revision=1022453
2009-09-08Fix selection in the Details view in the following use case:Frank Reininghaus
1. Ctrl-click item 1. 2. Enter the first letter of item 2, such that it will be selected and the new current item. 3. Shift-click item 3. With this commit, all items between 2 and 3 will be selected, as expected, and not all items between 1 and 3. BUG: 201459 svn path=/trunk/KDE/kdebase/apps/; revision=1021267
2009-08-30Restore "open folders automatically when dragging items above it" (it had ↵Peter Penz
been temporary deactivated because of the column view refactoring). svn path=/trunk/KDE/kdebase/apps/; revision=1017531
2009-08-29centralize namefilter handlingPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1017117
2009-08-29- restore functionality that selections are kept when changing the view modePeter Penz
- some minor cleanups svn path=/trunk/KDE/kdebase/apps/; revision=1016955
2009-08-29move the DolphinFileItemDelegate creation into ViewExtensionsFactoryPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1016949
2009-08-29move handling of SelectionManager and AutoScroller to ViewExtensionsFactoryPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1016927
2009-08-29- The view implementations don't need to keep the Extensions Factory as member.Peter Penz
- Created basic documentation for Extensions Factory. svn path=/trunk/KDE/kdebase/apps/; revision=1016898
2009-08-29Move code for initializing and handling view extensions to the new class ↵Peter Penz
ViewExtensionsFactory. Beside making DolphinView less complex this will allow the column view to share the view extension code instead of (partly) duplicating it as it has been done before. Currently only the tooltips- and filepreview-handling have been moved into ViewExtensionsFactory, a further cleanup will be done later. svn path=/trunk/KDE/kdebase/apps/; revision=1016893
2009-08-28Restore filtering of items. The DolphinView just tells the controller about ↵Peter Penz
the filter, the views (1:1 iconView + detailView, 1:n columnView) connect to the filter-changed signal and apply it to their proxy model. svn path=/trunk/KDE/kdebase/apps/; revision=1016782
2009-08-28I wanted to this for KDE 4.1 already, but well...Peter Penz
Columview refactoring: Get rid of "isColumnView()" special cases in DolphinView and the interface code duplications due to delegating non-QAbstractItemView interfaces to the column view. This reduces the code size + complexity a lot and will make future maintainance of the columnview and DolphinView a lot easier. Currently there are some regressions in the column view, but this will be fixed during the next 14 days. svn path=/trunk/KDE/kdebase/apps/; revision=1016776
2009-08-26allow to change the order of columns in the details viewPeter Penz
BUG: 164696 svn path=/trunk/KDE/kdebase/apps/; revision=1015987
2009-08-13* Use the term "version control" instead of "revision control" to be ↵Peter Penz
consistent with the naming in kdevplatform. * Renamed VersionControlPlugin to KVersionControlPlugin so that the interface can be moved out of Dolphin. svn path=/trunk/KDE/kdebase/apps/; revision=1011058
2009-07-12Enable Dolphin to show the revision states of files that are under revision ↵Peter Penz
control systems like SVN, Git, CVS, ... The current code is an early draft and it is planned that all plugins (SVN, Git, CVS, ...) are maintained outside Dolphin. If the API is stable enough, a discussion will be done at [email protected] regarding the location of the plugins (the current implementation of SubversionPlugin is only temporary located in Dolphin for testing purposes). RevisionControlObserver is implemented in a way that no recognizable slowdown is given for directories that are not under revision control. CCBUG: 192158 svn path=/trunk/KDE/kdebase/apps/; revision=995351
2009-06-29Fixed issue that the scroll position is reset if the focus of the itemview ↵Peter Penz
changes. BUG: 197951 svn path=/trunk/KDE/kdebase/apps/; revision=989236
2009-06-10don't clear the selection if a toggle has been pressedPeter Penz
BUG: 181123 svn path=/trunk/KDE/kdebase/apps/; revision=979750
2009-02-24Stupid me: The inconsistent behavior between QListView::scrollTo() and ↵Peter Penz
QTreeView::scrollTo() has been fixed in Qt 4.5 :-) I should have tested this _before_ committing the huge patch for bug 185191... So: * Remove the workaround in DolphinIconsView::scrollTo() to bypass an issue in Qt 4.4 (-> fixed in Qt 4.5) * Revert the "use the DolphinController"-parts of commit 930754 and just use QAbstractItemView::scrollTo() instead. CCBUG: 185191 svn path=/trunk/KDE/kdebase/apps/; revision=930777
2009-02-24After renaming an item the view should be scrolled in a way to still have a ↵Peter Penz
fully visible renamed item. The implementation required a lot of more code changes as such a fix should require: QAbstractItemView::scrollTo() cannot be used directly (inconsistent default behavior in QListView and QTreeView, a special case for the column view), so the communication has to be done with the DolphinController... BUG: 185191 svn path=/trunk/KDE/kdebase/apps/; revision=930754
2009-02-11- allow the view implementations to attach custom actions to the context menuPeter Penz
- let the "details view" show the "[x] Expandable Folders" action in the context menu CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=924867
2009-02-06SVN_SILENT: Added a comment.Shaun Reich
svn path=/trunk/KDE/kdebase/apps/; revision=921970
2009-02-03Check whether the global single-click/double-click setting has been changed ↵Peter Penz
during runtime and assure that the behavior of the view is adjusted. CCMAIL: [email protected] BUG: 175635 BUG: 175280 svn path=/trunk/KDE/kdebase/apps/; revision=920754
2009-01-31Allow to enable/disable the "Expandable Folders" setting of the details-view ↵Peter Penz
by the context menu of the header. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=919035
2009-01-23In rare circumstances (a very narrow viewport is a necessary, but not ↵Simon Paul St James
sufficient, condition) DolphinDetailsView::resizeColumns() is called with an empty model so that sizeHintForColumn(...) returns -1 and so the name column ultimately has width -1. Detect and prevent this. svn path=/trunk/KDE/kdebase/apps/; revision=915781
2009-01-14Group classes into folders, Dolphin is too big in the meantime for having a ↵Peter Penz
flat directory hierarchy. dolphin/src/CMakeLists.txt will be cleaned up later. svn path=/trunk/KDE/kdebase/apps/; revision=911065
2009-01-04Fixed issue that in combination with the "automatically open folders during ↵Peter Penz
drag operations" the details view is not drawn correctly in the following case: Drag an item in the icons view to a folder which uses the details view. Thanks to Simon St. James for the patch! CCBUG: 178630 svn path=/trunk/KDE/kdebase/apps/; revision=905627
2009-01-04SVN_SILENT: minor coding style cleanupsPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=905620
2009-01-03contentsPos turned out to be a little broken - it would always return (0,0), ↵Simon Paul St James
except in a very unusual set of circumstances where it returned ... "different" values, causing very odd behaviour with the elastic band :) Remove it. svn path=/trunk/KDE/kdebase/apps/; revision=904995
2008-12-30SVN_SILENT: minor coding style cleanupsPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=903414
2008-12-13only jump automatically to the current index, if the autoscrolling is not activePeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=896481
2008-12-13Especially when using the details view in combination with the split ↵Peter Penz
functionality, the size of the name column can get too small. Do an optimized resizing in this case (at least for up to 200 items, otherwise the performance penalty is too big). svn path=/trunk/KDE/kdebase/apps/; revision=896446
2008-12-13Handling the key events for autoscrolling in DolphinViewAutoscroller does ↵Peter Penz
not work good enough (e. g. when letters are pressed, the current index might change too). Revert to Frank Reininhaus' original patch to fix this issue :-) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=896362
2008-12-12SVN_SILENT: removed trailing spacesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=895978
2008-12-11as the detailsview and columnview can also have icon sizes up to 256 x 256 ↵Peter Penz
pixels, the steps when using the scrollwheel must be adjusted dynamically svn path=/trunk/KDE/kdebase/apps/; revision=895825
2008-12-06Fixed serious usability issue: QAbstractItemView::setAutoScroll() is not ↵Peter Penz
usable when trying to select items outside the visible view area (reported to Qt Software with bug ID #214542) -> implemented custom auto scrolling algorithm. BUG: 165531 svn path=/trunk/KDE/kdebase/apps/; revision=893546
2008-11-23Opening a tab with the middle mouse button should always be done with one ↵Peter Penz
click, even if double click has been activated. BUG: 162986 svn path=/trunk/KDE/kdebase/apps/; revision=888007
2008-11-19* fixed issue that the autoresizing of columns is applied when ↵Peter Penz
adding/removing columns * assure that QTreeView::resizeEvent() is called before applying the autoresizing for having an updated state BUG: 175603 svn path=/trunk/KDE/kdebase/apps/; revision=886690
2008-11-12typoJordi Polo
svn path=/trunk/KDE/kdebase/apps/; revision=883287
2008-11-08* implement the DragAndDropHelper as singleton derived from QObject, so that ↵Peter Penz
emitting of signals is possible * show an information message in the statusbar, if items are dragged into the same directory TODO: although the signal seems to get connected correctly, the slot DolphinMainWindow::showInformationMessage() is not invoked when the signal is emitted -> will debug this later, it is important that the new string is added before the message freeze svn path=/trunk/KDE/kdebase/apps/; revision=881627
2008-11-05If the elastic band ventures beyond the logical top-left of the view (NOTE: ↵Simon Paul St James
not the viewport), then startIndex will likely be invalid, resulting in broken selection behaviour. Prevent this. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=880585
2008-11-02assure that the autoresizing still works in combination with the ↵Peter Penz
"automatically expand folders during drag operations" feature svn path=/trunk/KDE/kdebase/apps/; revision=879152
2008-11-01initialise in the correct orderPino Toscano
svn path=/trunk/KDE/kdebase/apps/; revision=878498
2008-10-31Be better behaved in the presence of scroll events in the middle of an ↵Simon Paul St James
elastic band selection by storing the last selection elastic band in view (rather than viewport) coordinates. svn path=/trunk/KDE/kdebase/apps/; revision=878316
2008-10-28Yet more corner cases in commitToggleIndexRange - include them, and refactor ↵Simon Paul St James
to make things a bit more logical. svn path=/trunk/KDE/kdebase/apps/; revision=877164
2008-10-28If ignoreOldInfo, we should manually clear oldSelectionRect - an obscure bug ↵Simon Paul St James
where it is no longer possible to use rubber band selection(!) occurs otherwise! svn path=/trunk/KDE/kdebase/apps/; revision=877160
2008-10-28Use nameColumnRect rather than duplicating code (change the local variable ↵Simon Paul St James
of the same name to prevent clashes!) Use KFileItem::text() instead of KFileItem::name() there, too. svn path=/trunk/KDE/kdebase/apps/; revision=877159
2008-10-27Sometimes, the penultimate item in the bounds would get deselected when it ↵Simon Paul St James
shouldn't - this is because lastIndex is always included in the toggle range, even if it needn't be toggled. Fixed now - hopefully, there are no more "elastic band selection" bugs, now :) svn path=/trunk/KDE/kdebase/apps/; revision=876724
2008-10-27Restore behaviour (I don't have an old version to check against, though!) - ↵Simon Paul St James
if CTRL is pressed when initiating elastic band, respect the item selection at that time while dragging the band. CCMAIL : [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=876690
2008-10-27Essential validity check that fell through the cracks when ↵Simon Paul St James
setSelectionRecursive was removed. svn path=/trunk/KDE/kdebase/apps/; revision=876682
2008-10-26If we commit a toggle range due to a change of parent, check to see if we ↵Simon Paul St James
should immediately form a new range with the current index. This stops child items from sometime being missed by the band. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=876240
2008-10-26When restoring the index, we don't necessarily want to scroll to it.Simon Paul St James
BUG:165551 svn path=/trunk/KDE/kdebase/apps/; revision=876177