┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
AgeCommit message (Collapse)Author
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
2007-07-09Rename KListView to KCategorizedView as decidedRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=685767
2007-07-06Make KListView capable of drawing categories on our own way. This make ↵Rafael Fernández López
things easier when we are trying to customize it. We can also benefit from KStyle if some day it supports category drawing. KListView keyboard navigation. Tricier than I thought. Pending renaming to KCategorizedView. Seems a good name. svn path=/trunk/KDE/kdebase/apps/; revision=684478
2007-06-27connecting the the activated() signal does not work when using the double ↵Peter Penz
click setting within KDE svn path=/trunk/KDE/kdebase/apps/; revision=680989
2007-06-27activated signal actually does that :)Rafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=680979
2007-06-20don't pass a custom viewport URL to the context menu anymore, as this cannot ↵Peter Penz
work together with the menu actions svn path=/trunk/KDE/kdebase/apps/; revision=678175
2007-06-19when requesting a context menu provide a URL for the viewport, because in ↵Peter Penz
the column view this URL can differ from the navigator URL svn path=/trunk/KDE/kdebase/apps/; revision=677704
2007-06-17don't hardcode the spacing...Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=676762
2007-06-17New and powerful KListView. Still pending class renaming. There are two Rafael Fernández López
methods that I need to think about it, and boost. Small issues like reloading all data when sorting role suddenly changes. In general terms it will work nice when you sort by name or size. We have to work further when we sort by other roles. Nice times. svn path=/trunk/KDE/kdebase/apps/; revision=676732
2007-06-13provide a common drawing method for the hover indication during drag & drop ↵Peter Penz
until issue/wish #160611 is solved in Qt4.4 svn path=/trunk/KDE/kdebase/apps/; revision=675042
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-05Removed some unnecessary includesMax Blazejak
svn path=/trunk/KDE/kdebase/apps/; revision=671563
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
2007-06-02Assure that the selection is cleared if a click on the viewport is done.Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=670761
2007-05-18although not required at the moment, this alignment makes sense with the ↵Peter Penz
improved KFileItemDelegate implementation from Fredrik (hope Fredrik commits on Monday :-)) svn path=/trunk/KDE/kdebase/apps/; revision=666163
2007-05-17don't increase the decoration size if the icons are aligned from left to rightPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=665573
2007-05-15some finetuning for the icons view:Peter Penz
- rename gridWidth() and gridHeight() settings property to itemWidth() and itemHeight() to avoid confusion with the grid size property of QListView - assure that the grid spacing is respected - decrease default text width - allow having more than 1 text line doing a proper wrapping svn path=/trunk/KDE/kdebase/apps/; revision=665097
2007-05-14The wrapping flag of QStyleOptionViewItemV2 gets lost, as the instance is ↵Peter Penz
assigned to a QStyleOptionViewItem object later on (QStyleOptionViewItem AbstractItemView::viewOptions() const) -> enable the wrapping in the QListView itself. svn path=/trunk/KDE/kdebase/apps/; revision=664830
2007-05-14although the wrapping is enabled, eliding the text might be required -> ↵Peter Penz
don't specify Qt::ElideNone svn path=/trunk/KDE/kdebase/apps/; revision=664803
2007-05-12provide a hover information in the statusbar if the mouse cursor enters an itemPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=663779
2007-05-10layout improvements in the icons view:Peter Penz
* do a text wrapping if the number of lines is > 1 (TODO: bugfix of KFileItemDelegate necessary, currently the text might overlap with the icon) * increase the height for the text area if an additional information like type, date, ... is shown svn path=/trunk/KDE/kdebase/apps/; revision=663320
2007-05-09include cleanupDirk Mueller
svn path=/trunk/KDE/kdebase/apps/; revision=663054
2007-05-01Respect global single/double click setting for the icons- and details view ↵Peter Penz
(thanks to Sam Abed for the patch!). PS: I did not introduce an executed()-signal in KListView, as: * In general we want to avoid having Kxxx-view classes for existing Qxxx-view classes like this was the case in KDE3. Qt4 allows us to use custom models + delegates and hence there should be no need to introduce KListView, KTreeView or KColumnView. * It looks like KListView will be renamed to KCategoryView and it's open yet whether it it will be available outside the scope of a file manager for KDE 4.0. * The details view is derived from QTreeView and the columns view is derived from QColumnView -> adjusting KListView won't help here :-) svn path=/trunk/KDE/kdebase/apps/; revision=659994
2007-04-14select the decoration per defaultPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=654034
2007-04-10allow to enable the categorization feature for sortingPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=652200
2007-04-10Added Rafael López's item categorizer into Dolphin (it's currently ↵Peter Penz
deactivated in dolphiniconsview.cpp until it's in shape for the public). svn path=/trunk/KDE/kdebase/apps/; revision=652156
2007-04-09adapt Dolphin to kdelibs coding style ↵Peter Penz
(http://techbase.kde.org/Policies/Kdelibs_Coding_Style) by using: astyle --indent=spaces=4 --brackets=linux \ --indent-labels --pad=oper --unpad=paren \ --one-line=keep-statements --convert-tabs \ --indent-preprocessor \ `find -type f -name '*.cpp'` `find -type f -name '*.h'` svn path=/trunk/KDE/kdebase/apps/; revision=651981
2007-03-14Cleanup of iconview-settings dialog (no obsolete Q3 classes, ...) and fix ↵Peter Penz
broken zooming in icons view. svn path=/trunk/KDE/kdebase/apps/; revision=642610
2007-03-13Use KFontRequester for dialogs as suggested by Ellen at ↵Peter Penz
http://wiki.openusability.org/guidelines/index.php/Practical_Examples:Configuration_Dialogs. TODO: get rid of Qt3 classes in these dialogs and use a more sensible spacing/margin svn path=/trunk/KDE/kdebase/apps/; revision=642269
2007-03-11Allow to set the 'AdditionalInformation' property from KFileItemDelegate for ↵Peter Penz
each folder. Use case: - Icons view for images: set 'Size' as additional property - Icons view for media: show 'MIME type' as additional property - Default Icons view: don't show any addtional property for a clean layout. TODO: KFileItemDelagate::AdditionalInformation intersects with KDirModel::Columns when used in combination with the details view. Assure that the user does not get confronted with such implementation details in the user interface. svn path=/trunk/KDE/kdebase/apps/; revision=641525
2007-03-11Fixed some drag & drop issues:Peter Penz
- allow drag & drop inside the view - prevent a dragging from a directory into itself - use QModelIndex instead of the position svn path=/trunk/KDE/kdebase/apps/; revision=641451
2007-03-10support return key for navigation (thanks to Luca Gugelmann for the patch!)Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=641273
2007-03-02Enable hover effects in the icon view.Fredrik Höglund
svn path=/trunk/KDE/kdebase/apps/; revision=638644
2007-03-01assure that the icon size is always <= the preview sizePeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=638387
2007-03-01Allow zooming in and zooming out in the icons view.Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=638386
2007-02-28Allow to configure which additional information ↵Peter Penz
(KFileItemDelegate::AdditionalInformation) should be shown for the icons view. svn path=/trunk/KDE/kdebase/apps/; revision=638135
2007-02-28Jippie: file previews are generated again! Thanks to Fredrik for giving me a ↵Peter Penz
hint how to do it (if I would have known that it is so easy, I'd have implemented it already some weeks ago...). It's very nice that the details view now also is able to show previews (Kudos to Interview & KDirModel). svn path=/trunk/KDE/kdebase/apps/; revision=638081
2007-02-28Fix: a logical arrangement from top to bottom means having a flow from left ↵Peter Penz
to right and vice versa svn path=/trunk/KDE/kdebase/apps/; revision=638047
2007-02-28Instead of using the ListMode of the icon view for the left to right ↵Peter Penz
alignment, still use the IconMode and adjust the alignment properties. Minor issue open: it seems that KFileItemDelegate currently does not care about the alignment properties of QStyleOptionViewItem, it always centers the the icons + text; I'll have a look on this... svn path=/trunk/KDE/kdebase/apps/; revision=637907
2007-02-27The icons view and details view don't use hardcoded (test-) values anymore, ↵Peter Penz
instead the settings for fonts, grid size, ... are read out. The settings dialogs itself will be reworked later if it is clear what should be configurable in which manner. At least the current settings dialog allows to play with the new capabilities we got by KFileItemDelegate, just lets see what we can improve later on... svn path=/trunk/KDE/kdebase/apps/; revision=637792
2007-02-17Some minor polishing: use a grid for the icons view, give the toggle button ↵Peter Penz
of the URL navigator an icon svn path=/trunk/KDE/kdebase/apps/; revision=634601
2007-02-16Reanimated drag & drop support again after introducing the ↵Peter Penz
DolphinController. It is now also possible to move the items inside an icon view like discussed on kde-devel/kde-usability. svn path=/trunk/KDE/kdebase/apps/; revision=634228
2007-02-14Step one for having DolphinParts for the icons and details view, which can ↵Peter Penz
be used by Konqueror. TODO: currently dropping of items is deactivated, as I want to wait for Davids feedback whether the direction is ok. svn path=/trunk/KDE/kdebase/apps/; revision=633703
2007-02-11don't accept drops into the same view if it is not done above a directoryPeter Penz
svn path=/trunk/playground/utils/dolphin/; revision=632656
2007-01-21Cleanup of DolphinContextMenu:Peter Penz
- don't use any deprecated methods anymore - temporary deactivated the "Open With..." submenu. There's a crash in KDirModel when invoking KFileItem::mimetype(); although the same code worked with an older version of kdelibs, I assume this is a Dolphin issue -> I'll do some further analyses... svn path=/trunk/playground/utils/dolphin/; revision=626023
2007-01-06Reanimated drag & drop support for the icons view.Peter Penz
svn path=/trunk/playground/utils/dolphin/; revision=620649
2006-12-15Update for using a proxy model: prevent accessing the model by model() and ↵Peter Penz
doing a cast do KDirModel afterwards. Instead the access to the KDirModel is done by a member variable. Still the proxy model does not seem to work and leads to a crash as soon as the QListView should work with the proxy model -> in the meantime in line 112 from DolphinView.cpp the KDirModel is used instead of the proxy model. svn path=/trunk/playground/utils/dolphin/; revision=613768
2006-12-08Cleanup of signal/slot handling between the dolphin view and the main ↵Peter Penz
window: now the main window listens to the signals from the dolphin view and connects to private slots (previously the dolphin view connected to public slots of the main window). Also prevent naming all slots by the prefix 'slot', describe instead what the method does. svn path=/trunk/playground/utils/dolphin/; revision=611617