┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
AgeCommit message (Collapse)Author
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
2009-01-21Two KFilePreviewGenerator's operating on the same KDirModel can lead to ↵Simon Paul St James
infinite loops of preview generation. If view is not delete'd (e.g. as a result of a FolderExpander), then m_previewGenerator won't be either: delete it manually to prevent having two active at once. svn path=/trunk/KDE/kdebase/apps/; revision=914799
2009-01-19hide the tooltips when a key is pressed (thanks to Shaun Reich for the ↵Peter Penz
initial patch) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=913383
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
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-16Assure that the view gets focused when:Peter Penz
* Enter or Ctrl+Enter is pressed in the URL navigator * when the filter bar gets closed BUG: 158232 svn path=/trunk/KDE/kdebase/apps/; revision=897739
2008-12-12SVN_SILENT: removed trailing spacesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=895978
2008-12-08Port to KDirModel::simplifiedUrlListDavid Faure
svn path=/trunk/KDE/kdebase/apps/; revision=894264
2008-12-03Add addIsCutSelection, and port as much code as possible to KDirModel::mimeData.David Faure
svn path=/trunk/KDE/kdebase/apps/; revision=891905
2008-12-03SVN_SILENT: assure that the order of the methods match in the h + cpp filePeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=891866
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-14when renaming a variable number of items, it is important that the selection ↵Peter Penz
order does not define the new sort order -> the sort order with the renamed files should stay similar with the old sort order svn path=/trunk/KDE/kdebase/apps/; revision=884344
2008-11-13When only one item is selected, show the item name in the statusbar instead ↵Peter Penz
of "1 Folder selected" or "1 File selected". This is useful in combination with the keyboard navigation. BUG: 172564 svn path=/trunk/KDE/kdebase/apps/; revision=883928
2008-11-13when changing the view mode if the preview is turned on, the directory must ↵Peter Penz
get reloaded so that the KFilePreviewGenerator can update the previews svn path=/trunk/KDE/kdebase/apps/; revision=883921
2008-11-13fixed issue that the preview size might get applied to the previous view ↵Peter Penz
when switching to a new view svn path=/trunk/KDE/kdebase/apps/; revision=883912
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-05* use KIO::itemsSummaryString() againPeter Penz
* assure that the strings for selections can be translated in a correct manner svn path=/trunk/KDE/kdebase/apps/; revision=880527
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-02when a drag operation is done above an inactive view, activate the view ↵Peter Penz
automatically svn path=/trunk/KDE/kdebase/apps/; revision=879233
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-26assure that the zoom level is updated when refreshing the viewPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=876079