┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
AgeCommit message (Collapse)Author
2009-09-18Update the controller's url upon redirection, otherwise pasting would paste ↵David Faure
into the old url. #186947 svn path=/trunk/KDE/kdebase/apps/; revision=1025406
2009-09-18Fix crash when changing view modes (view creation -> openurl -> clear -> ↵David Faure
update statusbar text -> accessing view, which is NULL) svn path=/trunk/KDE/kdebase/apps/; revision=1025401
2009-09-18don't call deleteLater on a null pointer, gives ↵David Faure
"QCoreApplication::postEvent: Unexpected null receiver" svn path=/trunk/KDE/kdebase/apps/; revision=1025364
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-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-30Move the selection listener from DolphinView to ViewExtensionsFactory. The ↵Peter Penz
statusbar and information panel are now informed correctly about selection changes also when using the column view. svn path=/trunk/KDE/kdebase/apps/; revision=1017497
2009-08-30Move the VersionControlObserver from the DolphinView to the ↵Peter Penz
ViewExtensionsFactory. This automatically enables also the column view to be able handling version controlled files. svn path=/trunk/KDE/kdebase/apps/; revision=1017482
2009-08-30- The selection changed timer only needs to be created for a DolphinView ↵Peter Penz
instance. - Set the extensions mode inside the ViewExtensionsFactory. svn path=/trunk/KDE/kdebase/apps/; revision=1017461
2009-08-29- fix focus issue in column-viewPeter Penz
- minor interface corrections svn path=/trunk/KDE/kdebase/apps/; revision=1017162
2009-08-29Restore "show hidden files" functionality in a generic way which works also ↵Peter Penz
for the column view. svn path=/trunk/KDE/kdebase/apps/; revision=1017091
2009-08-29As KFilePreviewGenerator takes care for refreshing the directory lister ↵Peter Penz
automatically now, there is no need to reload the directory in Dolphin. svn path=/trunk/KDE/kdebase/apps/; revision=1016976
2009-08-29SVN_SILENT compileChristoph Feck
svn path=/trunk/KDE/kdebase/apps/; revision=1016959
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-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-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-29Allow the revision control plugins to indicate information-, error- and ↵Peter Penz
operation-completed messages. svn path=/trunk/KDE/kdebase/apps/; revision=1004346
2009-07-27Improved Subversion test plugin to allow committing, updating, diffing, ↵Peter Penz
adding and removing of files. As soon as the test plugin gets moved to kdesdk, the code should be improved to use the libsvn interface. svn path=/trunk/KDE/kdebase/apps/; revision=1002839
2009-07-23The revision control plugin must be aware on which directory the ↵Peter Penz
context-menu-actions should get applied. Relying on the directory that has been used in beginRetrieval() does not work when having a treeview. svn path=/trunk/KDE/kdebase/apps/; revision=1001388
2009-07-22show the actions of a revision control plugin in the context menuPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1001270
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-07-11Fixed performance issues related to selections and deleting of files:Peter Penz
- Don't connect to KDirLister::itemDeleted(const KFileItem&), but KDirLister::itemsDeleted(const KFileItemList&). Otherwise Dolphin is informed about each single file deletion instead of getting the deleted items as a list. Thanks to David Faure for the hint! - DolphinViewContainer::updateStatusBar() can be expensive when a lot of files are selected, as the file size must get retrieved. Assure that fast calls for updateStatusBar() don't trigger a synchronous update, do the update after 300 ms where no further update has been triggered. - Dolphin provides a list of file items when emitting the selectionChanged() signal. Collecting the file items is a quite expensive operation, so use the same approach as when updating the statusbar: only emit the selection changed signal when no change has been done within 300 ms. This improves the performance when doing huge selections a lot. - Make updateStatusBar() a private method, the main window should not need to take care about updating the statusbar (this is done internally now by DolphinViewContainer). BUG: 199090 BUG: 195787 CCBUG: 199352 CCBUG: 188218 svn path=/trunk/KDE/kdebase/apps/; revision=995015
2009-07-08Performance improvement when selecting pasted/dropped items.Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=993585
2009-06-22Count selected items, not QItemSelectionRanges inFrank Reininghaus
DolphinView::selectedItemsCount(). This fixes the problem that the "Compare Files" action may be disabled or enabled incorrectly. BUG: 181134 svn path=/trunk/KDE/kdebase/apps/; revision=985402
2009-06-20clear the selection before renaming multiple itemsPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=984159
2009-06-08Mark the last visitied directory as active when going back in history.Peter Penz
BUG: 192811 svn path=/trunk/KDE/kdebase/apps/; revision=978757
2009-06-04Only reset the current URL, if the element is shown in the current view.Peter Penz
This fixes the issue that when going back the last visited directory is not marked. BUG: 192811 svn path=/trunk/KDE/kdebase/apps/; revision=977410
2009-05-26fixed krazy issues (see http://www.kdedevelopers.org/node/3919)Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=973269
2009-05-11select items after they have been copied/moved by a drag & drop operationPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=966685
2009-05-11Only select the clipboard items after the user triggered "Paste". This fixes ↵Peter Penz
the issue that items got selected accidently when creating items with a similar name to previously pasted items. BTW the code is also simpler now than before... CCBUG: 191723 svn path=/trunk/KDE/kdebase/apps/; revision=966623
2009-05-08assure that clipboard items don't get selected when changing the URLPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=965354
2009-05-08Select copied/moved items automatically if no item is already selected. This ↵Peter Penz
gives the user an indication where his pasted items are located and allows invoking operations like "Rename" in an easy way. BUG: 191723 svn path=/trunk/KDE/kdebase/apps/; revision=965344
2009-05-08remove unused method (relict from times when KFilePreviewGenerator was not ↵Peter Penz
available) svn path=/trunk/KDE/kdebase/apps/; revision=965332
2009-04-30Do not emit DolphinView's urlChanged(const KUrl&) signal if the viewFrank Reininghaus
is activated, as discussed with Peter. This fixes a crash on a failed assert if the DolphinView's and the KUrlNavigator's URLs are slightly different (i.e., if a slash has been added to the navigator's URL by KDirLister). I could not find any regressions caused by this change so far, but even if there are side effects, the upcoming beta and RC releases should give enough user feedback and time to fix them. BUG: 180494 svn path=/trunk/KDE/kdebase/apps/; revision=961519
2009-04-20Let the user choose if folders are always shown first in the views ofFrank Reininghaus
Dolphin and Konqueror (the default) or not. This setting can be changed in the View menu: "View->Sort By->Folders First". FEATURE: 62007 svn path=/trunk/KDE/kdebase/apps/; revision=956820
2009-04-15After restoring the current item when going back to a folder, the ↵Peter Penz
current-item URL must be cleared to prevent moving the focus when the directory content will be changed later. BUG: 189522 svn path=/trunk/KDE/kdebase/apps/; revision=954402
2009-03-30BUG: 187732Rahman Duran
Make Dolphin to remember selected files after view refresh. svn path=/trunk/KDE/kdebase/apps/; revision=946726
2009-03-30KFilePreviewGenerator::updatePreviews() is deprecated, use updateIcons() insteadPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=946717
2009-03-17After creating an item with the "Create New..." menu, the new item should ↵Peter Penz
get selected and it must be assured that the item stays visible. Thanks a lot to Rahman Duran for the original patch and the good discussions :-) Open issues: - F10 shortcut does not work yet (interface extension might be done in KNewMenu) - Does not work in column view yet, but this is a colum view specific issue. CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=940624
2009-03-12SVN_SILENT: coding style fixPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=938679
2009-02-25Restore support for pasting clipboard data (e.g. text) into a file, like ↵David Faure
konq-kde3 could do. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=931496
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-22clear the selection when Escape has been pressed (= same behavior like in ↵Peter Penz
Konqueror for KDE 3) BUG: 185184 svn path=/trunk/KDE/kdebase/apps/; revision=929983
2009-02-22SVN_SILENT: removed kDebugsPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=929967
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-01-25Refactor the folder expansion system. Main effect: instead of having a list ↵Simon Paul St James
of m_expandedViews which cannot yet be deleted, we more accurately identify the current source of the drag operation if any and store only this for later deletion. This also fixes folder-expansion not working in Column view. svn path=/trunk/KDE/kdebase/apps/; revision=916701