Commit graph

18772 commits

Author SHA1 Message Date
Ignat Semenov 9d30c8d1f4 Sort Icons -> Sort By for consistency with Dolphin 2013-04-24 16:57:30 +04:00
Ignat Semenov 1b4a5b4aa0 make Descending a checkbox, not a combo 2013-04-24 16:57:27 +04:00
Ignat Semenov 91b007d428 change i18nc context comment for simplicity 2013-04-24 16:56:26 +04:00
Ignat Semenov a8ddc6bb67 simplify alignment action strings 2013-04-24 16:56:26 +04:00
Ignat Semenov efbd7ec1fb Verbify Layout and Alignment, reword Layout for less technical 2013-04-24 16:56:26 +04:00
Ignat Semenov fcb97d234e verbify Sorting for consistency 2013-04-24 16:56:26 +04:00
Ignat Semenov ec33d65184 an attempt at categorizing the settings 2013-04-24 16:56:25 +04:00
Ignat Semenov 7fd7f69ab9 icon arrangement mega-patch for usability and maintainability
This splits the enum IconView::Flow into two enums
- IconView::Layout { Rows, Columns }
- IconView::Alignment { Left, Right }

Note that Qt::Alignment is not used to emphasize the fact that
these two properties are orthogonal (layoutDirection() is used
e.g. to place the scrollbar at the correct side of the screen,
whereas IconView::Alignment is about the side of the screen
the user want their icons to stick to.

This patch greatly improves the readability of the IconView
layouting code, as well as the user-friendliness of the
applet's Display configuration page, with a distinct separation
of the two layout-related factors.

Corresponding context menu actions have been added. They update
the configuration dialog combos when selected if the dialog is
open at that moment.

CCBUG:306537
2013-04-24 16:56:23 +04:00
Ignat Semenov b77e0f6655 only show Unsorted when the view is manually sorted 2013-04-24 16:47:29 +04:00
Ignat Semenov fe3290d9db avoid a potential stall: QComboBox::maxCount() -> QComboBox::count() 2013-04-24 16:47:28 +04:00
Ignat Semenov 3a7b07633d hardcoded -1 -> enum FolderView::Unsorted 2013-04-24 16:47:28 +04:00
Ignat Semenov 7665ee95af keep 4 context menu checkboxes and Display page in sync 2013-04-24 16:47:28 +04:00
Ignat Semenov 9bf43b7459 update the order, direction, flow combos on menu actions 2013-04-24 16:47:28 +04:00
Ignat Semenov 8b3cb0f09e if the user has moved the icons, update the combo 2013-04-24 16:47:28 +04:00
Ignat Semenov 7d6669c25b even less code duplication 2013-04-24 16:47:28 +04:00
Ignat Semenov f407bf3f33 --code duplication 2013-04-24 16:47:28 +04:00
Ignat Semenov 69370f22f8 consistency++ 2013-04-24 16:47:28 +04:00
Ignat Semenov 7518b54ce3 not necessary 2013-04-24 16:47:28 +04:00
Ignat Semenov 2b272d99d5 QActionGroup + foreach loop -> less code 2013-04-24 16:47:28 +04:00
Ignat Semenov d77e60ce6b add a "Folders first" checkbox to the Display config page
Allow the user to set the "Folders first" option using the Settings dialog.

BUG:306537
2013-04-24 16:47:21 +04:00
Ignat Semenov 7e2883afcf add a "Sort order" combo to the Display config page
Allow the user to change sorting order using the Settings dialog.
2013-04-24 16:47:13 +04:00
Ignat Semenov 35da405097 rename the flow enums for better readability 2013-04-24 16:47:13 +04:00
Ignat Semenov 08556ebdd3 add "Arrange icons" submenu to the context menu
Allow the user to change icon flow in an icon view using the context menu.

BUG:306537
2013-04-24 16:47:05 +04:00
Emmanuel Pescosta e92b4ba227 Scroll to newly pasted files.
If multiple files are pasted, scroll to the first pasted file.

BUG: 315722
REVIEW: 109950
FIXED-IN: 4.11.0
2013-04-23 22:50:01 +02:00
Script Kiddy 0a66a62bfd SVN_SILENT made messages (.desktop file) 2013-04-23 21:53:29 +02:00
Frank Reininghaus 5ae4a6f155 Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	plasma/applets/folderview/folderview.cpp

CCMAIL: ignat.semenov@blue-systems.com

@Ignat: We've been following a merge-based approach in kde-baseapps
for quite some time now, see

http://lists.kde.org/?t=134744909400005&r=1&w=1

It would be nice if you could merge KDE/4.10 into master after any
non-trivial changes in folderview to prevent that others have to
figure out how to resolve the merge conflicts. Thanks!
2013-04-23 19:40:42 +02:00
Frank Reininghaus a16562cd55 Disable Find/Replace in the "rename inline" line edit
These actions do not work correctly because renaming is considered
finished as soon as the line edit loses focus, which happens when the
"Replace" dialog pops up.

BUG: 317772
FIXED-IN: 4.10.3
2013-04-23 19:31:08 +02:00
Frank Reininghaus f8bf257734 Do not dereference null pointer in KItemListViewAccessible
BUG: 316285
FIXED-IN: 4.10.3
2013-04-23 19:25:52 +02:00
Script Kiddy 22a283a411 SVN_SILENT made messages (.desktop file) 2013-04-23 17:07:03 +02:00
Frank Reininghaus 34d0ad722e Comment out assertion to fix a crash when filtering in Icons/Compat View
I'm not sure yet if there is a problem somewhere else in the code. For
the time being, I think it's better to replace the assert by a TODO
comment to prevent that users find out the hard way that there is
something that we're not quite sure about.

BUG: 317827
FIXED-IN: 4.10.3
2013-04-22 21:36:57 +02:00
Frank Reininghaus 52a38ee90c Always determine icons for the visible items first
When entering a folder, KFileItemModelRolesUpdater has not yet been
informed about the visible index range by the view when it tries to
determine icons synchronously. This resulted in the problem that it
tried to determine icons for all items in random order, and some visible
icons were somtimes still unknown after the "synchronous icon loading"
timeout of 200 ms.

This commit tries to improve the situation by loading icons starting
with the first item in increasing order. This should make it less likely
that some visible items still have unknown icons after 200 ms.

BUG: 316129
FIXED-IN: 4.10.3
REVIEW: 109843
2013-04-22 21:21:31 +02:00
Script Kiddy fef35712c1 SVN_SILENT made messages (.desktop file) 2013-04-22 08:55:40 +02:00
Script Kiddy 8877befbbd SVN_SILENT made messages (.desktop file) 2013-04-20 15:43:04 +02:00
Script Kiddy b212ee8147 SVN_SILENT made messages (.desktop file) 2013-04-20 09:44:11 +02:00
Script Kiddy 8a299ad08c SVN_SILENT made messages (.desktop file) 2013-04-19 13:27:40 +02:00
Ignat Semenov 574cd6de32 avoid a potential stall: QComboBox::maxCount() -> QComboBox::count() 2013-04-16 22:51:01 +04:00
Ignat Semenov 08d003fbdc avoid a potential stall: QComboBox::maxCount() -> QComboBox::count() 2013-04-16 22:47:50 +04:00
Christoph Feck 66a1267458 Merge remote-tracking branch 'origin/KDE/4.10' 2013-04-15 21:41:18 +02:00
Christoph Feck 277ec25250 Fix missing connections from Port spin boxes
BUG: 318157
FIXED-IN: 4.10.3
2013-04-15 21:29:08 +02:00
Eike Hein 6fb5b07f62 Merge branch 'KDE/4.10' 2013-04-15 16:27:18 +02:00
Eike Hein ac18ec1712 Fix inadvertent losses of custom icon positions due to config handling.
The configChanged() implementation could unnecessarily schedule a
reload due to a bug in a has-this-config-element-changed comparison,
which would result in icon position losses in scenarios such as
changing the wallpaper or the workspace theme, without having touched
any sorting-related options. Further, OK'ing the config dialog could
undo the unsorted state entered by moving an icon while the dialog
was open; this is now handled by updating the sorting mode combo box
in the dialog after the icon is dropped.

The later relies on a preceding fix in kde-workspace.git to make
Applet::isUserConfiguring() work for containments if Folder View is
used as desktop containment.
2013-04-15 16:20:03 +02:00
Eike Hein 49bbb88343 Merge branch 'KDE/4.10' 2013-04-15 10:42:50 +02:00
Eike Hein f979fab6c8 Tint icon by selection color if selected, consistent with Dolphin. 2013-04-15 10:42:34 +02:00
Eike Hein 15428f1910 Default to main view sorting defaults if the main view is unsorted. 2013-04-15 10:42:25 +02:00
Aurélien Gâteau 3a345558f8 Merge remote-tracking branch 'origin/KDE/4.10' 2013-04-12 16:31:03 +02:00
Aurélien Gâteau c3a7ba4e0e Fix moving image while transitioning to hover pixmap
See: http://youtu.be/OMYO0U0kSL0

REVIEW: 109960
FIXED-IN: 4.10.3
2013-04-12 16:28:52 +02:00
Ignat Semenov ed34d83fd5 no need to check pointer before deleting it 2013-04-11 16:38:56 +04:00
Ignat Semenov b7364ade72 no need to check pointer before deleting it 2013-04-11 16:31:04 +04:00
Kai Uwe Broulik 05fb81861a Move Bluetooth places items to Device section of places list
REVIEW: 109622
BUG: 301276
2013-04-02 16:07:29 +02:00
Luca Beltrame cb47cfdb17 Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	plasma/applets/folderview/folderview.cpp
2013-03-27 16:50:22 +01:00