┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.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-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
2009-08-29centralize namefilter handlingPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=1017117
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-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-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-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
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-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-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
2008-04-16* clear the selection toggle when zooming in or outPeter Penz
* clear the selection toggle when using the scroll wheel (this is only a temporary workaround until Qt-issue #200665 has been fixed) BUG: 159737 svn path=/trunk/KDE/kdebase/apps/; revision=797808
2008-04-16if the mouse is above an item and moved very fast outside the widget, no ↵Peter Penz
viewportEntered() signal might be emitted although the mouse has been moved above the viewport svn path=/trunk/KDE/kdebase/apps/; revision=797742
2008-03-30Third attempt for fixing the layout issue, this time without side effects ↵Peter Penz
and only with very minor performance overhead... svn path=/trunk/KDE/kdebase/apps/; revision=791824
2008-03-30Revert last commit; the issue seems to be reproducible only in combination ↵Peter Penz
with 'Sort by Type' and we have to find the real root cause instead of bypassing a wrong layout. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=791752
2008-03-29QListView might return a wrong x-position if the decoration size decreases. ↵Peter Penz
I temporary bypassed this in Dolphin, as I'm not 100 % sure whether it is really a QListView issue or related to KFileItemDelegate. To reproduce this issue with Qt-only quite a lot effort is needed -> I'll wait until Qt4.4 final is released... CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=791535
2008-03-20assure that the maximum size of the item-delegate gets updated before ↵Peter Penz
showing the icons view svn path=/trunk/KDE/kdebase/apps/; revision=788152
2008-03-20QListView does not support having a margin for grids. Originally it has been ↵Peter Penz
tried to bypass this by overwriting QListView::visualRect(), but this has some side effects (see #155378 and #155575). The clean approach is to return a proper size hint in the file item delegate. Currently a custom item delegate has been made for Dolphin, but we'll discuss whether it makes sense providing this feature already in KFileItemDelegate... BUG: 155378 BUG: 155575 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=788095
2008-03-12As the Qt-issue 160611 is solved in Qt4.4 and Fredrik has improved ↵Peter Penz
KFileItemDelegate, it is not necessary anymore drawing a custom drag & drop indication. svn path=/trunk/KDE/kdebase/apps/; revision=784851
2008-02-21Let the DolphinController be aware on which QAbstractItemView instance he is ↵Peter Penz
working. This allows to connect signals from the view implementations (icons view, details view, column view) directly to the slots of the DolphinController without a helper slot. svn path=/trunk/KDE/kdebase/apps/; revision=777737
2008-02-21Prevent code duplication by moving the duplications into the DolphinController.Peter Penz
Maybe it might be a good idea to let the DolphinController be aware also about his QAbstractItemView -> it might be possible to directly connect signals of the dolphin view implementations with the controller. I'll check this... (I did not backport this cleanup as I think it has too many changes to be handled as bugfix) CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=777719
2008-02-17* if the system font is changed during Dolphin is open, take care to update ↵Peter Penz
the used font of all views too (assuming that the user selected "system font" as font) * store the font weight instead of a bool property "isBold" Thanks to Rafael for the patch! CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=776188
2008-01-26Blend in a toggle button when hovering items. This allows selecting items ↵Peter Penz
without using the rubberband or Ctrl/Shift-keys in the single-click mode. Any feedback from users is highly welcome (I think people will either love or hate this feature, I'm really not sure -> it can be turned off too). svn path=/trunk/KDE/kdebase/apps/; revision=766901
2008-01-22svn merge -r764536:HEAD from 4.0 branch: refactor "additional info" actions ↵David Faure
and provide them in the part svn path=/trunk/KDE/kdebase/apps/; revision=764550
2008-01-17if the icons are aligned left to right, the vertical wheel event should be ↵Peter Penz
applied to the horizontal scrollbar BUG: 153343 svn path=/trunk/KDE/kdebase/apps/; revision=762722
2007-12-06Fixed wrong usage of QStyleOptionViewItem: caching of the file item in the ↵Peter Penz
constructor is too early (thanks to Fredrik for the hint!). This fixes 2 issues: * the selection color of the details view now uses the correct selection color * changing the colors of KDE results in updating the colors of all Dolphin views CCMAIL: [email protected] CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=745700
2007-12-04Allow turning off the feature that additional information might be shown in ↵Peter Penz
the icons view. Per default the setting is still on, but for people who prefer browsing with the details view and only temporary switch to the icons view (e. g. for having a larger preview), this feature gets a showstopper (discussed with Eike Hein). Got the OK from the translator team for adding the new string. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=744901
2007-11-20Allow using a common drag and drop pixmap also for the KCategorizedView. The ↵Peter Penz
code is currently encapsulated inside a DOLPHIN_DRAGANDDROP define, we'll clean this up when Qt 4.4 is out (-> KDE 4.1?) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=739375
2007-11-20Drag & drop fixes for all views: assure that a consistent pixmap for the ↵Peter Penz
drag object is used throughout all views (still open yet: KCategorizedView uses its custom code yet) svn path=/trunk/KDE/kdebase/apps/; revision=739322
2007-10-26Simplify DolphinController: don't remember the show-preview state in the ↵Peter Penz
controller and add an unnecessary additional signal; instead just read the state from the DolphinView svn path=/trunk/KDE/kdebase/apps/; revision=729726
2007-10-26due to the recent tagging freeze this commit contains several fixes in one:Peter Penz
* the filterbar now also filters directories (works also in the column-view :-)) * The "Additional Information" menu entry now also works for showing/hiding the columns of the details view. This also implies that the columns for the details view can now be adjusted per directory -> we have now a consistent behavior between the icons view and details view. Still open: the view properties dialog must be fixed * Don't show a "Nepomuk not available" error message when starting Dolphin and Nepomuk is not available. * Fix issue that the information panel blocked the application because of parsing the full meta data of a huge file. svn path=/trunk/KDE/kdebase/apps/; revision=729704
2007-10-05fixed most regressions due to the previous column-view refactoringPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=721706
2007-10-05Refactored DolphinColumnWidget so that it does not need a hierarchical ↵Peter Penz
KDirLister. This simplifies the code a lot and also bypasses the current problems with the KDirLister cache when working on hierarchical directories in parallel. There are some minor regressions which will be fixed, but all in all some improvements are visible already: - the loading of columns is a lot faster - preview in columns is working - no side effects in combination with the treeview-panel because of caching svn path=/trunk/KDE/kdebase/apps/; revision=721678
2007-10-02Allow showing additional information like type, size and date in parallel ↵Peter Penz
for the icons view (thanks to Fredrik for the extension of KFileItemDelegate!). svn path=/trunk/KDE/kdebase/apps/; revision=720283
2007-09-26* Fix memory leak (DolphinCategoryDrawer is leaking...)Peter Penz
* There is no need to explicitly turning on the category, as this is done automatically when reading out the view properties. @Rafael: I tested your error description and could not reproduce the problem anymore. If I miss something, please let me know, so that we can work together to fix this :-) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=717245
2007-09-17Create the new architecture for KCategorizedView. Now DolphinModel is ↵Rafael Fernández López
created, inheriting KDirModel for returning valid data for the role of the category of an item. DolphinSortFilterProxyModel implements now methods lessThanCategoryMethod and lessThanGeneralMethod from KCategorizedSortFilterProxyModel. The only thing that needs to be adapted is the keyboard navigation on the KCategorizedView. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=713319
2007-09-09Reactivate keyboard navigation again. Previously the Return key did not ↵Peter Penz
work, as the 'activated()' signal cannot be used (it ignores KDEs single vs. doubleclick setting). svn path=/trunk/KDE/kdebase/apps/; revision=710356
2007-07-18Assure that the item size is not exceeded -> the spacing is also respected ↵Peter Penz
for texts that cannot be wrapped svn path=/trunk/KDE/kdebase/apps/; revision=689651
2007-07-09Rename KListView to KCategorizedView as decidedRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=685767
2007-06-07First big step to make it possible that the DolphinView can be embedded as ↵Peter Penz
KPart into Konqueror (discussed with David Faure). A lot of refactoring of the DolphinView has been done: - The DolphinView does not contain the URL navigator, the filterbar and the statusbar anymore. Those widgets have been moved to DolphinViewContainer. - The DolphinView does not contain any reference to the main window anymore. Currently there are some minor regressions (the statusbar shows less informations, renaming has been deactivated), but they will get fixed during the next days. Also still a lot of interface cleanups must be done, but let's just do it step by step... svn path=/trunk/KDE/kdebase/apps/; revision=672692
2007-06-04Remove not necessary "class classname;"Laurent Montel
svn path=/trunk/KDE/kdebase/apps/; revision=671233
2007-06-02don't forget to clear the hover information when a drag leave event occursPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=670856
2007-06-02Provide a hover information when dragging items above other items. TODO: ↵Peter Penz
this code can be removed again when issue #160611 is solved in Qt 4.4. svn path=/trunk/KDE/kdebase/apps/; revision=670848