┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
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-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-03-14Adapt DolphinCategoryDrawer to new changes on kdelibs :)Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=1103215
2010-02-03Fix height calculation of "Additional Information" labelChristoph Feck
CCBUG: 220632 svn path=/trunk/KDE/kdebase/apps/; revision=1084630
2010-02-03Respect floating point font sizesChristoph Feck
BUG: 220632 svn path=/trunk/KDE/kdebase/apps/; revision=1084629
2010-01-31removed clearSelection() code, it is not needed anymore with Qt 4.6 and done ↵Peter Penz
automatically internally svn path=/trunk/KDE/kdebase/apps/; revision=1082869
2010-01-05- Details view and column view: Just use the height as indicator for the ↵Peter Penz
scrolling steps when using the wheel. Don't decrease the steps for larger icon sizes. - Icons view: Use slightly larger scrolling steps. BUG: 191418 BUG: 192958 svn path=/trunk/KDE/kdebase/apps/; revision=1070438
2009-12-30Fix wrong fontMetrics when using custom fontsChristoph Feck
svn path=/trunk/KDE/kdebase/apps/; revision=1067898
2009-12-13give KCategorizedView the chance to react on dragMoveEvents()Peter Penz
CCBUG: 208646 svn path=/trunk/KDE/kdebase/apps/; revision=1062054
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-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-29centralize namefilter handlingPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1017117
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-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 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-07-31SVN_SILENT: warning--Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1005229
2009-07-28Adapt KCategorizedView and KCategoryDrawer changes from kdelibsRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=1003883
2009-07-14Improve selection behaviour concerning the new "jump to next/previousFrank Reininghaus
row using right/left arrow" and "jump to next/previous column using down/up arrow" when using the Icon View's "Rows" and "Columns" arrangement, respectively, in the following cases: 1. In "Columns" arrangement, if the first item is selected and Ctrl-Down is pressed repeatedly, don't deselect the first item when jumping to the next column. 2. In "Rows" arrangement, if the first item in the second row is active and then Left and finally Shift-Left is pressed, don't re-select the first item in the second row unexpectedly. 3. If an item in the middle of the second row is selected, make sure that selection with Shift-Left/Shift-Right is reversible even if the previous/next row is reached. svn path=/trunk/KDE/kdebase/apps/; revision=996758
2009-07-05Wrap the cursor on the right/left side to have a similar keyboard behavior ↵Peter Penz
like in Konqueror for KDE 3. Thanks to Tahseen Mohammad for the patch! No backport to KDE 4.3.x is done until the patch has proven to work well under all circumstances. BUG: 152985 CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=991780
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-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-07The layout algorithm of QListView in Qt4.5 also respects the style-hint ↵Peter Penz
QStyle::SH_ScrollView_FrameOnlyAroundContents. To assure that Dolphin uses the maximum available width for the size hint of the items, the style-hint must be included too for Qt 4.5. I tested this fix also with Qt4.4 and it seems that the style-hint returns always 0 in this case -> this patch seems to be backward compatible... svn path=/trunk/KDE/kdebase/apps/; revision=922900
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-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-05QAbstractItemView::scrollTo() may get called by QListView::keyPressEvent(), ↵Peter Penz
so m_enableScrollTo (which is checked in DolphinIconsView::scrollTo()) must be enabled before. This fixes the issue that the autoscrolling does not work if exactly one item is selected and an invisible item should get focused because of a key press. BUG: 179049 svn path=/trunk/KDE/kdebase/apps/; revision=906179
2009-01-02Instead of increasing the grid spacing, increase the item size, so that ↵Peter Penz
there is more space for the text. svn path=/trunk/KDE/kdebase/apps/; revision=904408
2008-12-30optimize the grid size of the icons view to prevent having gaps on the right ↵Peter Penz
border (= row arrangement) or on the bottom border (= column arrangement) svn path=/trunk/KDE/kdebase/apps/; revision=903417
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-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-09use a smaller step size when using the scroll wheelPeter Penz
BUG: 177238 svn path=/trunk/KDE/kdebase/apps/; revision=894987
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-30fixed issue that the text width gets very small when turning on previews in ↵Peter Penz
the columns arrangement BUG: 174801 svn path=/trunk/KDE/kdebase/apps/; revision=890925
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-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-10-24* Move code from DolphinDropController to DragAndDropHelper.Peter Penz
* Move code which checks whether the dragging of a MIME type is supported to DragAndDropHelper. This allows adding an improved support for dropping compressed files from Ark to Dolphin later... CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=875611
2008-10-22* don't show a tooltip if a rubberband selection is donePeter Penz
* hide a tooltip if a drag operation has been started BUG: 173148 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=874641
2008-09-28Use KonqOperations::doDrop() instead of a custom dropping code. Still some ↵Peter Penz
minor issues are open (Dolphin currently gets no feedback anymore when the operations have been finished), but they will be solved during the next week. BUG: 168154 svn path=/trunk/KDE/kdebase/apps/; revision=865708
2008-08-26Provide a common iconsize-widget for the settings dialog of the icons-, ↵Peter Penz
details- and column-view. The current version still requires some improvements (Labels on the left + right, preview, ...). svn path=/trunk/KDE/kdebase/apps/; revision=852961
2008-08-15For the URL control of Dolphin and Konqueror to be LTR on RTL desktops ↵Diego Iastrubni
(those are URLs, and are not affected by the direction of the desktop). Force the filterbar of Dolphin to be LTR as well, as again it deals with files/directories which are english/latin letters most of the time. svn path=/trunk/KDE/kdebase/apps/; revision=847671
2008-08-05First step of refactoring to improve the zooming capabilities of views:Peter Penz
* Let classes that use DolphinView know about the currently used zoom level. * Provide more zoom levels for all views (the settings dialogs have not been adjusted yet). * Fixed issue that when using the wheel that the enabled state of the zoom actions has not been updated. svn path=/trunk/KDE/kdebase/apps/; revision=842715
2008-06-27Also allow to use the selection toggle when double click is used. This ↵Peter Penz
allows to select/deselect files without CTRL key. BUG: 165115 svn path=/trunk/KDE/kdebase/apps/; revision=825325
2008-06-03jump to the URL of the clipboard content if a middle click on an empty area ↵Peter Penz
inside the view is done svn path=/trunk/KDE/kdebase/apps/; revision=816421
2008-05-07don't disable the scrollTo() functionality if a QAbstractItemView state is ↵Peter Penz
set (e. g. DragSelectingState requires the scrollTo() functionality) svn path=/trunk/KDE/kdebase/apps/; revision=805216
2008-05-07enable the scrollTo() functionality if it has been triggered by a key-pressPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=804928
2008-05-06Fixed issue that the vertical scrollbar jumps back to the initial state ↵Peter Penz
during previews are loaded in the icons view. BUG: 161086 BUG: 160513 svn path=/trunk/KDE/kdebase/apps/; revision=804790