┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
AgeCommit message (Collapse)Author
2008-03-13Don't force that the preview size must be >= the icon size. This gets ↵Peter Penz
confusing when the user uses the Zoom In/Zoom Out feature inside a view a lot (e. g. by Ctrl + scroll wheel). This is because decreasing the preview size would also decrease the icon size, but when increasing the preview size again the icon size remains... I even got confused myself by this "feature" although I knew the reason for it ;-) svn path=/trunk/KDE/kdebase/apps/; revision=785373
2008-03-12* the WA_Hover flag is set by KFileItemDelegate automatically nowPeter Penz
* mouse tracking must stay enabled svn path=/trunk/KDE/kdebase/apps/; revision=784871
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-03-05provide an unintrusive frame for previews of imagesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=782785
2008-02-21Fixed wrong comments. Discussed with David Faure: installing an event filter ↵Peter Penz
works for the icons-view and details-view, but not for the column-view which uses QListView child widgets internally... We decided to leave it as it is. svn path=/trunk/KDE/kdebase/apps/; revision=777838
2008-02-21* Install an event-filter for the view implementations. Whenever a view ↵Peter Penz
implementation gets the focus, it should request it's activation. * Let the metadata widget only get the focus by clicking. * Tried to install a similar filter for the wheel-event code duplication in the view-implementations, but the event filter is invoked _after_ the view implementation gets the wheel event... -> added a note the the 3 implementations as hint. svn path=/trunk/KDE/kdebase/apps/; revision=777757
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-21Bugfix: Currently, if you open dolphin, select a bunch of files, and right ↵Eduardo Robles Elvira
click and select Open With > whatever, all the files are opened. Which is the right thing. However, if you hit enter to open those selected files, no file is opened. Currently, the file is only opened if there's only *one* file selected. The attached patch fixes this problem. svn path=/trunk/KDE/kdebase/apps/; revision=777695
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-02-12Move the Ctrl-wheel zoom handling to dolphinview.Luciano Montanaro
The specialized views still need to ignore the Ctrl-qualified wheel events, though. svn path=/trunk/KDE/kdebase/apps/; revision=773976
2008-02-01Zoom in and out the icon view on Ctrl+Mouse wheel. Luciano Montanaro
CCMAIL: [email protected] --This li.Ine, and those below, will be ignored-- M src/dolphiniconsview.cpp svn path=/trunk/KDE/kdebase/apps/; revision=769728
2008-01-26reset the selection manager when the URL has been changed (otherwise the ↵Peter Penz
selection toggle button would stay visible) svn path=/trunk/KDE/kdebase/apps/; revision=766918
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-26* increase the performance of item previews: each item view provides an icon ↵Peter Penz
size hint -> the preview and item effects are only applied to the current size, not to the maximum of 128 x 128 pixels * make the icons of hidden files semitransparent like in KDE3 svn path=/trunk/KDE/kdebase/apps/; revision=766659
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
2008-01-05Remember the additional-info property (size, date, type, ...) for each view ↵Peter Penz
mode (icons view, details view, column view) individually. BUG: 154434 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=757791
2007-12-18So I guess that is the behaviour that we really want :)Rafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=750173
2007-12-18Revert the whole code regarding the discussed issue. Columns view still show ↵Rafael Fernández López
the "forbidden" cursor, so nothing is fixed while reverted. The drop-indicator is shown on files too... so something needs a fix here. Shouldn't be hard anyway CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=750168
2007-12-16The drag&drop helper did not make the difference between the different kind ↵Rafael Fernández López
of views. The only view that draws the hover indicator with rounded corners is the icon view mode. For that reason, the drop marker with the detailed view was drawn with rounded corners. For making it consistent, we draw the drop indicator as the hover effect indicator, so the only one that draws rounded corners is the icon one. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=749225
2007-12-14Moving code around in dolphin fixes DnD support in konqueror :)David Faure
svn path=/trunk/KDE/kdebase/apps/; revision=748476
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-28fix crash during drag & drop if the file item is not available (thanks to ↵Peter Penz
John Tapsell for the original fix in dolphiniconsview.cpp!) svn path=/trunk/KDE/kdebase/apps/; revision=742703
2007-11-27Do not crash if the index is not valid.John Tapsell
svn path=/trunk/KDE/kdebase/apps/; revision=742329
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-11-19fix minor margin issue for the item boundariesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=738873
2007-11-19Icons view: assure that the vertical spacing does not grow as fast as the ↵Peter Penz
horizontal spacing. For the default settings this means that the viewport can now be reached easier than before, while not wasting too much vertical space. svn path=/trunk/KDE/kdebase/apps/; revision=738783
2007-11-18Revert last fix, otherwise context menus on viewport don't work anymore. ↵Peter Penz
I'll try to find a clean patch later... svn path=/trunk/KDE/kdebase/apps/; revision=738274
2007-11-18fix crash for the following use case:Peter Penz
- open a view with no selection - press SHIFT + right mouse-click on an item - a context menu will be opened although no item has been selected -> assertion gets triggered later svn path=/trunk/KDE/kdebase/apps/; revision=738255
2007-11-15SVN_SILENT: make code more readablePeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=737279
2007-11-15Bypass a layout issue in QListView::visualRect(), where the horizontal ↵Peter Penz
position of items might get calculated in a wrong manner when the item name is too long. I'll try create a patch for Qt but as Dolphin must also work with Qt 4.3.0 this workaround must get applied at least for KDE 4.0. BUG: 152293 svn path=/trunk/KDE/kdebase/apps/; revision=737265
2007-10-30* fixed drag & drop issue in column view (dropping on files was not possible ↵Peter Penz
-> handled as viewport now) * only show the hover-drop-indicator on directories (dropping on file-items is handled like dropping on the viewport) * simplified signature of drop signal (source widget not required anymore) svn path=/trunk/KDE/kdebase/apps/; revision=731129
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-16polish look of column view:Peter Penz
- don't show a focused border above all columns - provide a small gap between the columns - assure that the background of inactive columns works well with more complex styles like Oxygen CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=726042
2007-10-07* assure that the columns of the colum-view get dimmed if the colum-view is ↵Peter Penz
inactive * updated documentation of DolphinController + minor cleanups svn path=/trunk/KDE/kdebase/apps/; revision=722452
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-10-01Code adaptation because of changes on libraries related to revision 719630Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=719642
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-17drag and drop fixes for the column view (implied a signal changed which ↵Peter Penz
affected other views too) svn path=/trunk/KDE/kdebase/apps/; revision=713430
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-09check whether the current index is valid and whether no other items are selectedPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=710361
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-18respect the item width and item height also when the item categorization has ↵Peter Penz
been enabled svn path=/trunk/KDE/kdebase/apps/; revision=689663
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