┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
AgeCommit message (Collapse)Author
2010-07-24Sourcecode hierarchy cleanup: Create folder "views" and move view related ↵Peter Penz
sources to it svn path=/trunk/KDE/kdebase/apps/; revision=1154146
2010-07-10Fix forward declationLaurent Montel
svn path=/trunk/KDE/kdebase/apps/; revision=1148408
2010-05-14Fix temporary regression of sorting introduced by SVN commit 1126410Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1126487
2010-03-30Split the class DolphinController into the two classes DolphinViewController ↵Peter Penz
and ViewModeController. The ViewModeController offers a defined interface to control view mode implementations like icons view, details view and column view. The DolphinViewController allows those view mode implementations to control the parent DolphinView in a limited way. svn path=/trunk/KDE/kdebase/apps/; revision=1109228
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-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-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-13removed unused member variable (the dependency to DolphinMainWindow has been ↵Peter Penz
removed before KDE SC 4.0... ;-)) svn path=/trunk/KDE/kdebase/apps/; revision=1074238
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
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-12Removed enums SortByRating and SortByTags. They never have been activated ↵Peter Penz
yet because of performance issues... svn path=/trunk/KDE/kdebase/apps/; revision=1061595
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-19Fix some spelling mistakes in comments.Raphael Kubo da Costa
svn path=/trunk/KDE/kdebase/apps/; revision=1037779
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-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 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-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 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-31Fix forward declarationLaurent Montel
svn path=/trunk/KDE/kdebase/apps/; revision=1004949
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-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-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-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-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-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-03-30BUG: 187732Rahman Duran
Make Dolphin to remember selected files after view refresh. svn path=/trunk/KDE/kdebase/apps/; revision=946726
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-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-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
2009-01-14Cleanup panel related class names: The terms "sidebar"/"sidebarpage" are ↵Peter Penz
relicts from the KDE 3 version of Dolphin and are called "Panels" in the KDE 4 version of Dolphin. Yes, renaming classes may take more than 1 year ;-) svn path=/trunk/KDE/kdebase/apps/; revision=911089
2008-12-21When common view properties are used for all folders, the internal ↵Peter Penz
properties should not be changed during the lifetime of a DolphinView instance. This allows to e. g. split a view and work with different view modes on each view. BUG: 174102 svn path=/trunk/KDE/kdebase/apps/; revision=899571
2008-12-12SVN_SILENT: removed trailing spacesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=895978
2008-12-03use KDirModel::mimeData() for cut/copy operations as suggested by David FaurePeter Penz
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=891865
2008-11-03* Show the total size of files in the statusbar (thanks to Bram Schoenmakers ↵Peter Penz
for the patch). * Changed the format of the string to be consistent with the format used when doing a selection. Maybe it would be useful adjusting KIO::itemsSummaryString() instead using a custom output format. Currently KIO::itemsSummaryString() shows "20 Items (5 Files, 15 Folders) - (200 KiB Total)", which is quite confusing IMO, as the total size is only counted for the files. Dolphin currently shows: "15 Folders, 5 Files (200 KiB)" BUG: 161462 svn path=/trunk/KDE/kdebase/apps/; revision=879405
2008-11-02Assure that automatically expanding of a folder also works when the new ↵Peter Penz
folder has a different view mode. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=879143
2008-10-24Assure that no reloading is done if KDirLister emits a redirection, only ↵Peter Penz
change the the URL. Thanks to David Faure and Albert Alstals Cid for the detailed analysis! BUG: 155591 svn path=/trunk/KDE/kdebase/apps/; revision=875554
2008-10-23SVN_SILENT Fix typos in kdebaseEnrique Matías Sánchez
svn path=/trunk/KDE/kdebase/apps/; revision=875089