┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
AgeCommit message (Collapse)Author
2010-02-25Forward port of SVN commit 1096089: Fix regression that columns stay empty ↵Peter Penz
when switching between URLs that differ by more than one sub directory. Thanks to Frank Reininghaus for the analysis. CCBUG: 227785 CCBUG: 227748 svn path=/trunk/KDE/kdebase/apps/; revision=1096093
2010-02-23Remove all code that is related to DolphinController'sFrank Reininghaus
requestUrlChange signal. This signal was removed in r1080351, so the code isn't needed any more. svn path=/trunk/KDE/kdebase/apps/; revision=1095213
2010-02-21Forward port of SVN commit 1093803: Assure that the changed selection model ↵Peter Penz
is reconnected when changing columns. This fixes the regression that some operations have been disabled on sub columns. Thanks to Frank Reininghaus for the analyses. CCBUG: 226749 svn path=/trunk/KDE/kdebase/apps/; revision=1093807
2010-02-16Make sure that DolphinView's m_expanderActive member is handledFrank Reininghaus
correctly, and emit DolphinDetailsViewExpander's completed() signal only if the folder loading is really finished. This fixes possible problems when restoring the current item and scroll position of the view if these require a preceding folder expansion. svn path=/trunk/KDE/kdebase/apps/; revision=1090926
2010-01-26Reorganise some code in DolphinView and DolphinViewContainer. ThisFrank Reininghaus
makes it possible to restore the expanded folders in the Details View when navigating in history (based on r1056438 and r1079843). Also remove DolphinView::activateItem(const KUrl&) and DolphinView's m_loadingDirectory member (they are not needed any more). This will be in KDE 4.5. BUG: 169886 svn path=/trunk/KDE/kdebase/apps/; revision=1080549
2010-01-25* Adjust code to use the improved KUrlNavigator API.Peter Penz
* Open a new tab if the URL navigator requests it. * Get rid of a cyclic dependency between DolphinViewContainer and DolphinMainWindow. BUG: 181223 svn path=/trunk/KDE/kdebase/apps/; revision=1079843
2010-01-14Use KFileItem::text() instead of name() for pretty printed filenamesSebastian Trueg
svn path=/trunk/KDE/kdebase/apps/; revision=1074761
2010-01-14If the root directory lister is different from the internally used directory ↵Peter Penz
lister (e. g. in the column view), it is important to synchronize them. This fixes the issue that the enabled state of the "Create New..." menu in the column view has not been updated. BUG: 222329 svn path=/trunk/KDE/kdebase/apps/; revision=1074441
2010-01-06SVN_SILENT: ah, forgot to remove temporary testing code...Peter Penz
CCBUG: 210256 svn path=/trunk/KDE/kdebase/apps/; revision=1070848
2010-01-06Send the selectionChanged() signal without delay in case the selection has ↵Peter Penz
been changed from 0 to n or from n to 0. This ensure that the edit-actions are updated without delay. BUG: 210256 svn path=/trunk/KDE/kdebase/apps/; revision=1070844
2010-01-06Fixed issue that Ctrl+A sometimes did not result in an update of the ↵Peter Penz
Information Panel. As a sideeffect some code simplification has been done, which was possible because of the column view refactorization some time ago. svn path=/trunk/KDE/kdebase/apps/; revision=1070740
2010-01-06Fixed issue that when starting Dolphin with the column view a wrong layout ↵Peter Penz
has been shown. BUG: 211149 BUG: 214515 svn path=/trunk/KDE/kdebase/apps/; revision=1070708
2009-12-19Don't rely on that the same proxy model is used for all views. Trigger a ↵Peter Penz
refresh of the directory (done from the cache) and remember the selection. This fixes also the issue that the selection got lost when previews have been enabled or when the column view was used. BUG: 217562 CCBUG: 211149 svn path=/trunk/KDE/kdebase/apps/; revision=1063960
2009-12-17* respect the --select startup optionPeter Penz
* minor cleanups related to selecting items in general svn path=/trunk/KDE/kdebase/apps/; revision=1063329
2009-12-03removed workaround for KDE 4.0, that is obviously not required anymorePeter Penz
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=1058033
2009-11-30When the view is reloaded in Dolphin or the DolphinPart insideFrank Reininghaus
Konqueror, restore the selection, the current item, the scroll position, and the expanded folders in the Details View. BUG: 169893 BUG: 187732 svn path=/trunk/KDE/kdebase/apps/; revision=1056438
2009-11-25Restore the "Edit->Selection" menu from Konqueror 3 for fileFrank Reininghaus
management. It includes the actions "Select All" and "Select Items Matching a Pattern". This feature will be in KDE 4.4. FEATURE: 197536 svn path=/trunk/KDE/kdebase/apps/; revision=1053976
2009-11-14SVN_SILENT: Remove trailing white spaceFrank Reininghaus
svn path=/trunk/KDE/kdebase/apps/; revision=1049182
2009-11-14When navigating back/forward in the DolphinPart inside Konqueror, rememberFrank Reininghaus
1. the current item, 2. the scroll position of the view, and 3. the expansion state of the details view. Before 3. can be implemented in Dolphin itself, some changes in KUrlNavigator are required. This fix will be in KDE 4.4. BUG: 193549 BUG: 198073 BUG: 213137 svn path=/trunk/KDE/kdebase/apps/; revision=1049164
2009-10-25Do not zoom the icons if the user presses Control and the left mouseFrank Reininghaus
button while using the mouse wheel. The user is probably trying to scroll the view during a rubberband selection in that case. Also simplify the code a bit by handling the icon zooming in DolphinView::eventFilter(). BUG: 190703 svn path=/trunk/KDE/kdebase/apps/; revision=1040021
2009-10-19Fixed possible crash when switching between 2 views. In this case ↵Peter Penz
DolphinView::itemView() can temporary be 0 and it is important that no signals/slot connection is existing for the (by deleteLater()) deleted instance. Thanks a lot to Frank Reininghaus for the analysis! CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=1037671
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