Commit graph

807 commits

Author SHA1 Message Date
Ignat Semenov 1c98a957f2 Cosmetic:place the helper functions outside the Folderiew class code 2012-02-04 15:23:35 +04:00
Ignat Semenov e02b62d10c Allow the user to choose between ascending and descending sort order.
FIXED-IN:4.9
FEATURE:180646
2012-02-04 12:16:33 +04:00
Marco Martin 183506398d rename themechanged slot, don't cover the base one 2012-02-03 15:18:40 +01:00
Ignat Semenov c2d6531eaa Do not account for the vertical frame margins in the listview item size calculation to save vertical space.
BUG:261207
FIXED-IN:4.8.1
2012-02-03 17:27:59 +04:00
Ignat Semenov 5404ec63a2 Enable the "show selection marker" and "click to view folder" features in the popup view according to the parent icon view settings. 2012-02-03 15:22:00 +04:00
Ignat Semenov dafd25bc94 Set up the sorting and filtering in the popup view according to the parent icon view settings.
BUG:211002
REVIEW:103851
2012-02-03 15:10:28 +04:00
Script Kiddy c63e66a139 SVN_SILENT made messages (.desktop file) 2012-01-31 16:19:58 +01:00
Script Kiddy 3f6b776571 SVN_SILENT made messages (.desktop file) 2012-01-29 11:35:27 +01:00
Ignat Semenov a82bb8cb44 Account for the SVG margins in itemSize() when the item width is calculated based on the text width.
REVIEW:103735
2012-01-20 15:00:20 +04:00
Ignat Semenov 5329fb57af Fix the icon text misalignment with the focus frame on icon shrink. 2012-01-18 19:13:01 +04:00
Aaron Seigo 87832fdb0c always repaint when double clicking as this prevents icons stuck in small size 2012-01-13 16:07:56 +01:00
Ignat Semenov ec2f11fa3e Use Qt::AlignVCenter instead of Qt::AlighTop for the FolderView icons. This fixes a visual glitch where the icon would srink towards the top, not the center, after a mouse click. 2012-01-12 20:39:26 +04:00
Ignat Semenov 7c3264a637 Make the icons in IconView shrink on mouseDoubleClickedEvent() instead of mousePressEvent() if KDE is set to double-click.
This fixes a visual glitch with the icons shrinking twice under double-click global settings.
REVIEW: 103679
2012-01-12 19:56:50 +04:00
Jekyll Wu 0cc78a14df Merge remote-tracking branch 'origin/KDE/4.8'
Conflicts:
	dolphin/src/main.cpp
2012-01-10 20:09:21 +08:00
Script Kiddy c069f12930 SVN_SILENT made messages (.desktop file) 2012-01-09 08:30:24 +01:00
Script Kiddy b4a08a254f SVN_SILENT made messages (.desktop file) 2012-01-03 16:51:07 +01:00
Ignat Semenov 26d161ea5e Merge branch 'master' of git://anongit.kde.org/kde-baseapps 2012-01-03 19:21:34 +04:00
Ignat Semenov f5eb9ffa53 Automatically hide the "+" selection marker when using a double-click global mouse setting.
Cleanup ActionOverlay button hiding code.

CCMAIL: peter.penz19@gmail.com
REVIEW: 103618
2012-01-03 17:45:41 +04:00
Jaime Torres a381834cae Assign, instead of compare i18n("None")
replace == by =.

REVIEW: 103599
2012-01-02 18:40:38 +01:00
Script Kiddy 45412692c1 SVN_SILENT made messages (.desktop file) 2011-12-22 11:37:00 +01:00
Aaron Seigo 22d41a00e2 use KProtocolInfo
thx to frederik for the suggestion
2011-12-21 17:07:05 +01:00
Aaron Seigo 10a7c8aaa0 remove all duplication between configAccepted and configChanged
Accepted is called from inside FolderView (via signals) and only needs to WRITE config values
Changed is called by Applet and must APPLY all values in the config

previous to this, changes to filtering we not caught properly by configChanged and a lot of
work was being done twice

it's also a fewer lines of code :)
2011-12-21 12:03:37 +01:00
Aaron Seigo 861daaf920 consolidate url setting 2011-12-21 11:38:51 +01:00
Aaron Seigo 82158d81de check the positive in the if(), add a comment noting what is happening here 2011-12-21 11:37:36 +01:00
Aaron Seigo 1100d7e57c desktop:/ is not seen as local, so special case it 2011-12-21 11:25:29 +01:00
Aaron Seigo 47fdc16dd3 instead of returning early (which prevented containment related code from being run), open the url if connected 2011-12-21 11:25:29 +01:00
Aaron Seigo 29e23bf067 remove an old fixme 2011-12-21 11:16:03 +01:00
Script Kiddy 9b71190909 SVN_SILENT made messages (.desktop file) 2011-12-17 09:44:01 +01:00
Sujith Haridasan c4baf7897e Fixing a TODO in folderview. This patch checks if the URL is remote
URL and checks the network status and does the necessary action.
Need to uncomment the showMessage to display the status about host
not connected, when KDE 4.9 version is open for development.
2011-12-17 09:16:21 +05:30
Script Kiddy fba0fb7d89 SVN_SILENT made messages (.desktop file) 2011-12-11 08:36:39 +01:00
Aaron Seigo 127d7c3991 fix sort by date
BUG:256623
2011-12-06 23:20:41 +01:00
Aaron Seigo 71193e2a70 as containment: let containment handle drops, with the exception of drag moves where we also have to check for movement over the iconview 2011-12-04 19:28:07 +01:00
Gregor Tätzner fed2ad9911 Folder View pointed at Trash doesn't update the context menu properly
enable empty_trash action in contextualActions when the url is pointing
to trash:/. contextualActions checks to see if the url protocol is trash
before adding the empty_trash action, but does not check to see if it
should be enabled or not.

BUG: 259356
REVIEW: 103282
2011-12-03 18:33:04 +01:00
Gregor Tätzner 2850f9e4fe Revert "Fix folderview doesn't update context menu (thanks, David Greengras)"
I screwed up the commit message sry.
This reverts commit 1ef96e6e7c.
2011-12-03 18:27:02 +01:00
Gregor Tätzner 1ef96e6e7c Fix folderview doesn't update context menu (thanks, David Greengras) 2011-12-03 17:52:57 +01:00
Script Kiddy d047bee6b6 SVN_SILENT made messages (.desktop file) 2011-12-02 09:58:31 +01:00
Aaron Seigo 3afe554123 mime ptr may be null apparently
BUG:285037
2011-12-01 17:16:32 +01:00
Script Kiddy f6b06ed0f8 SVN_SILENT made messages (.desktop file) 2011-11-29 16:47:26 +01:00
Aaron Seigo 55c9e2774a update the past action only when showing it
BUG:243041
2011-11-20 18:00:56 +01:00
Script Kiddy a52d8406eb SVN_SILENT made messages (.desktop file) 2011-11-14 09:28:37 +01:00
Script Kiddy b67e042474 SVN_SILENT made messages (.desktop file) 2011-11-07 08:55:39 +01:00
Script Kiddy 95de3b6edb SVN_SILENT made messages (.desktop file) 2011-10-09 09:09:19 +02:00
Romain Perier 5e93e6d56c Don't connect the slot AbstractItemView::iconSettingsChanged(int) to the signal KGlobalSettings::iconChanged(int).
This slot moved to the FolderView class itself, so this is no longer needed. Also, It removes warnings from the terminal.

REVIEW: 102719
2011-09-30 11:10:16 +02:00
Script Kiddy cb39ffe49a SVN_SILENT made messages (.desktop file) 2011-09-27 16:41:03 +02:00
Aaron Seigo e36f73c7fc only try to change the name once
BUG:270414
2011-09-21 15:01:03 +02:00
Script Kiddy 932a17accc SVN_SILENT made messages (.desktop file) 2011-09-12 09:37:32 +02:00
Script Kiddy 447eb53947 SVN_SILENT made messages (.desktop file) 2011-09-09 09:18:36 +02:00
Aaron Seigo 236109ab73 Merge branch 'master' of git://anongit.kde.org/kde-baseapps 2011-09-08 17:38:06 +02:00
Aaron Seigo 4c8d10c1c9 clearer (hopefully :) text 2011-09-08 17:37:54 +02:00
Script Kiddy 65c12b8213 SVN_SILENT made messages (.desktop file) 2011-09-08 09:00:21 +02:00
Aaron Seigo de8ecd318a Merge branch 'master' of git://anongit.kde.org/kde-baseapps 2011-09-05 12:31:39 +02:00
Aaron Seigo 43e27148af make hover-shows-popup an option
REVIEW:102300
BUG:250703
2011-09-05 12:30:43 +02:00
Script Kiddy cbfb0be09b SVN_SILENT made messages (.desktop file) 2011-09-04 09:13:37 +02:00
Script Kiddy fee7e968ee SVN_SILENT made messages (.desktop file) 2011-08-31 09:06:20 +02:00
Script Kiddy 7a3c49220b SVN_SILENT made messages (.desktop file) 2011-08-28 08:48:25 +02:00
Script Kiddy b4cb0543c3 SVN_SILENT made messages (.desktop file) 2011-08-25 09:32:05 +02:00
Script Kiddy 8ccdaebdaf SVN_SILENT made messages (.desktop file) 2011-08-18 08:50:30 +02:00
Script Kiddy ab2955c2bc SVN_SILENT made messages (.desktop file) 2011-08-12 08:40:48 +02:00
Script Kiddy fb99bdde94 SVN_SILENT made messages (.desktop file) 2011-08-06 09:29:32 +02:00
Script Kiddy a39222f9a2 SVN_SILENT made messages (.desktop file) 2011-08-04 10:39:16 +02:00
Montel Laurent d592f31cde normalize signals/slots 2011-07-31 13:33:56 +02:00
Script Kiddy 37247c0086 SVN_SILENT made messages (.desktop file) 2011-07-30 09:43:30 +02:00
Script Kiddy 4edf4654ab SVN_SILENT made messages (.desktop file) 2011-07-28 10:03:21 +02:00
Script Kiddy 449d4adba3 SVN_SILENT made messages (.desktop file) 2011-07-26 11:09:16 +02:00
Script Kiddy 7c05040cbd SVN_SILENT made messages (.desktop file) 2011-07-25 09:32:26 +02:00
Script Kiddy 9ff5395e22 SVN_SILENT made messages (.desktop file) 2011-07-24 09:24:14 +02:00
Script Kiddy 4c5ce663b7 SVN_SILENT made messages (.desktop file) 2011-07-22 09:33:17 +02:00
Script Kiddy 692846f74c SVN_SILENT made messages (.desktop file) 2011-07-21 09:25:41 +02:00
Script Kiddy 8acaf0cccc SVN_SILENT made messages (.desktop file) 2011-07-20 09:22:53 +02:00
Aaron Seigo 2eef7c9d23 various fixes to applet title, including making configChanged work properly and not storing so many members 2011-07-19 10:27:07 +02:00
Aaron Seigo 8b78977ac1 Merge branch 'master' of ssh://git.kde.org/kde-baseapps 2011-07-19 10:27:01 +02:00
Aaron Seigo c71917b7d9 don't reference the defaults in the .desktop file 2011-07-18 15:51:12 +02:00
Script Kiddy efa7da60c2 SVN_SILENT made messages (.desktop file) 2011-07-12 10:35:32 +02:00
Nicolas Lécureuil 5229d189f4 Fix unknown slot 2011-07-11 20:43:22 +02:00
Script Kiddy 3126eb3e21 SVN_SILENT made messages (.desktop file) 2011-07-11 10:55:04 +02:00
Script Kiddy e4004ac126 SVN_SILENT made messages (.desktop file) 2011-07-06 10:40:22 +02:00
Script Kiddy 66cbe2f9f9 SVN_SILENT made messages (.desktop file) 2011-06-21 11:00:18 +02:00
Script Kiddy 39b83bdffb SVN_SILENT made messages (.desktop file) 2011-06-20 10:20:37 +02:00
Farhad Hedayati Fard fc5cd12616 Fix folderview behaivior on saving custom locations and
default widget title in init() function.

CCBUG: 271777
2011-06-02 11:54:46 +04:30
Script Kiddy 141fc67571 SVN_SILENT made messages (.desktop file) 2011-05-29 10:08:26 +02:00
Script Kiddy 353c73e0c7 SVN_SILENT made messages (.desktop file) 2011-05-17 10:47:38 +02:00
Michael Pyne 15ff58a8c3 folderview: Don't use i18np for floats.
Fixes thumbnail previews on photos from having an I18N_ARGUMENT_MISSING
output.
2011-05-15 19:09:55 -04:00
Script Kiddy e9b231bd42 SVN_SILENT made messages (.desktop file) 2011-05-15 09:48:59 +02:00
Script Kiddy 883da1f8a7 SVN_SILENT made messages (.desktop file) 2011-05-11 09:15:34 +02:00
Script Kiddy 2f6e454ef9 SVN_SILENT made messages (.desktop file) 2011-05-09 09:30:57 +02:00
Raphael Kubo da Costa f9656e750c Make folderview understand application/x-kde-dndextract.
The code was copied almost as-is from Dolphin's implementation. It
should now be possible to drag and drop files from any archive opened
in Ark to folderview.

It previously worked with some archive types due to a weird code path
in Ark which should not exist.

PS: Fredrik, I ended up using pathOrUrl() because I can't pass KUrl
via DBus.

Reviewed-by: Fredrik Höglund

CCMAIL: fredrik@kde.org
BUG: 189322
FIXED-IN: 4.6.4

(cherry picked from commit d37a244a3c)
2011-05-01 23:40:19 -03:00
Script Kiddy 38df1e9d67 SVN_SILENT made messages (.desktop file) 2011-04-27 10:10:44 +02:00
Friedrich W. H. Kossebau f52c8a2693 --deprecated: use new version of KIO::filePreview(...) 2011-03-14 02:15:25 +01:00
Montel Laurent 1b2b8834eb add missing i18n 2011-03-11 09:47:11 +01:00
Frank Reininghaus 46158e551f Fix compilation of folderview.cpp
Please verify that your code builds correctly before you commit.

CCMAIL:hf.farhad@gmail.com
2011-03-10 19:36:26 +01:00
Farhad Hedayati Fard c39d6e0f1f Replaced KLineEdit with an editable KComboBox in folderview's config dialog for custom title setting.
REVIEW:100834
2011-03-11 19:58:28 +03:30
Farhad Hedayati Fard 40f36dd3cd Added option to hide the titlebar in folderview, use default title or full path as the title of folderview, using completion box on the current KLineEdit.
REVIEW: 100750
2011-03-06 18:23:14 +03:30
Script Kiddy 30ece17b38 SVN_SILENT made messages (.desktop file) 2011-03-04 08:40:53 +01:00
Script Kiddy 90b0eefd97 SVN_SILENT made messages (.desktop file) 2011-02-03 07:24:26 +01:00
Script Kiddy eb75a90d23 SVN_SILENT made messages (.desktop file) 2011-02-02 08:24:54 +01:00
Aaron Seigo b1f29cf95d fix slider connection, let Applet set the buttons 2011-02-01 10:06:05 -08:00
Aaron Seigo 0714dda8df fix 2-click drag, w/correct painting on selection 2011-01-30 12:13:37 -08:00
Aaron J. Seigo e2a3b1c1be make hover triggering configurable; will backport for 4.6.1 as well
CCMAIL:wstephenson@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=1217557
2011-01-27 21:28:43 +00:00
Script Kiddy d7daa710ed SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1213663
2011-01-11 09:07:40 +00:00
Marco Martin 852a859c69 kill the rubberband when a context event happens
BUG:261614

svn path=/trunk/KDE/kdebase/apps/; revision=1210314
2010-12-30 16:32:35 +00:00
Script Kiddy 9992a731e1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1198064
2010-11-17 09:42:13 +00:00
Aaron J. Seigo 42d534c535 fix clicked painting when set to double click, patch by Lindsay Roberts
BUG:256297

svn path=/trunk/KDE/kdebase/apps/; revision=1196275
2010-11-12 22:17:20 +00:00
Kevin Ottens 6f329924d7 Add missing debug includes.
svn path=/trunk/KDE/kdebase/apps/; revision=1195229
2010-11-10 16:03:55 +00:00
Jonathan Marten 72cc56510b Fix typo in signal name
Object::connect: No such signal KComboBox::currentIndexChagned(int) in kdebase/apps/plasma/applets/folderview/folderview.cpp:712
Object::connect:  (sender name:   'placesCombo')
Object::connect:  (receiver name: '2settingsFolder View')

svn path=/trunk/KDE/kdebase/apps/; revision=1195178
2010-11-10 14:42:44 +00:00
Script Kiddy 20e9f977a7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1191511
2010-10-31 09:11:11 +00:00
Script Kiddy ad11a42a81 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1186710
2010-10-17 09:10:25 +00:00
Fredrik Höglund d9ee1462fc Fix the model being dynamically sorted when the view is set to unsorted.
Based on a patch by Jason Harvey <kdebgz.9.almoff@spamgourmet.com>.

BUG: 227157
FIXED-IN: 4.5.3

svn path=/trunk/KDE/kdebase/apps/; revision=1185295
2010-10-12 20:59:24 +00:00
Script Kiddy ff4d736673 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1177799
2010-09-21 10:01:09 +00:00
Aaron J. Seigo 7e127cfd9b check the item for validity just to be safe
svn path=/trunk/KDE/kdebase/apps/; revision=1177604
2010-09-20 18:45:45 +00:00
Aaron J. Seigo ecb5ef89ee ensure the file items returned are valid
BUG:251842

svn path=/trunk/KDE/kdebase/apps/; revision=1177602
2010-09-20 18:43:30 +00:00
Marco Martin 6539d709dc configChanged() support
since reloading is costly it checks if something is actually changed
before reloading

patch by Rohan Garg
CCMAIL:rohangarg@ubuntu.com
CCMAIL:fredrik@kde.org


svn path=/trunk/KDE/kdebase/apps/; revision=1175746
2010-09-15 19:16:44 +00:00
Björn Ruberg 99f240ebe4 BUG: 167243
Made folderview use the new non-modal dialogs option of knewfilemenu. Folderview is no more blocking the whole plasma shell when creating files or directorys


svn path=/trunk/KDE/kdebase/apps/; revision=1173205
2010-09-08 23:04:09 +00:00
Aaron J. Seigo b5a7d71e2d allow iconviews to be configured as to wether folder drill-down should be triggered by click or hover; this is use to allow the drill down to be started with a mouse click and then further drill down to be on hover only.
svn path=/trunk/KDE/kdebase/apps/; revision=1171792
2010-09-05 07:14:26 +00:00
Aaron J. Seigo 22c1f4b10b better fix for the "update the view on icon settings change" bug
CCBUG:245850

svn path=/trunk/KDE/kdebase/apps/; revision=1167465
2010-08-24 17:27:53 +00:00
Aaron J. Seigo 6e6744c5f1 respond to icon changes
BUG:245850

svn path=/trunk/KDE/kdebase/apps/; revision=1167207
2010-08-24 01:17:56 +00:00
Albert Astals Cid dbbedf6210 do not rely on extract-messages.sh doing the work for us
svn path=/trunk/KDE/kdebase/apps/; revision=1166361
2010-08-21 16:32:56 +00:00
Laurent Montel 4bca99f41a Not necessary we don't use this variable
svn path=/trunk/KDE/kdebase/apps/; revision=1160969
2010-08-09 11:47:20 +00:00
Laurent Montel 64a31de6d8 Fix includes
svn path=/trunk/KDE/kdebase/apps/; revision=1160967
2010-08-09 11:43:35 +00:00
Laurent Montel b5c37de5e6 Fix forward declaration
svn path=/trunk/KDE/kdebase/apps/; revision=1160966
2010-08-09 11:40:42 +00:00
Marco Martin 0039bb8fb3 reload the model after url change
svn path=/trunk/KDE/kdebase/apps/; revision=1158770
2010-08-03 16:56:44 +00:00
Marco Martin 5a048e0f77 reload the url in configChanged()
svn path=/trunk/KDE/kdebase/apps/; revision=1158744
2010-08-03 15:30:22 +00:00
Aaron J. Seigo 0003713384 patch by Iamluc to show when a folder is empty; maintainer said he considers this a bugfix. certainly a ++elegance.
svn path=/trunk/KDE/kdebase/apps/; revision=1155060
2010-07-26 20:29:25 +00:00
Script Kiddy 8b45c0ad1e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1144877
2010-07-01 06:52:15 +00:00
Nicolas Lécureuil 35596f75c3 Fix crash when adding folderview in the panel
BUG: 241285


svn path=/trunk/KDE/kdebase/apps/; revision=1136853
2010-06-10 22:53:02 +00:00
Fredrik Höglund 62ba35a2c1 Update the listview to use the new painting code.
svn path=/trunk/KDE/kdebase/apps/; revision=1133942
2010-06-02 22:28:24 +00:00
Fredrik Höglund 04e30a3654 Improve readability and performance of the filtering code in the proxy model.
* Return true at the top of filterAcceptsRow() if no filter is set.
* Keep a list of the regexps used for name filtering instead of recreating
  them each time in filterAcceptsRow().
* Don't do any regexp matching when the name filter is "*".
* Store the mimetype list in a QSet instead of in a QStringList.
* Don't resolve the mimetype if the mimetype set is empty.
* Do the pattern test before the mimetype test.

svn path=/trunk/KDE/kdebase/apps/; revision=1133009
2010-05-31 21:54:09 +00:00
Fredrik Höglund 2967a37cc6 Really fix the crash when changing preview settings and the applet
is on the panel.

FIXED-IN: 4.4.5
BUG: 239995

svn path=/trunk/KDE/kdebase/apps/; revision=1132999
2010-05-31 21:12:10 +00:00
Fredrik Höglund 81ab22fd02 Revert the krazy2 fix that broke the filter settings.
This is a partial revert of r1083788.
CCMAIL: andresbajotierra@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=1132980
2010-05-31 20:30:06 +00:00
Script Kiddy c5cdb67921 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1132275
2010-05-30 06:45:17 +00:00
Aaron J. Seigo 491139ee6b tweak out the Apply button, hide the Header title when appropriate
BUG:201675

svn path=/trunk/KDE/kdebase/apps/; revision=1129004
2010-05-21 00:27:08 +00:00
Fredrik Höglund 9f399c7e44 Set dynamicSortFilter to true in the proxy model.
This fixes icons not being sorted with Qt 4.7.

svn path=/trunk/KDE/kdebase/apps/; revision=1126376
2010-05-13 21:16:58 +00:00
Fredrik Höglund 31c4e12e5a If a containment action is assigned to the left mouse button,
give it precedence over elastic-band selections.

Fixed in: 4.4.4
BUG: 183599

svn path=/trunk/KDE/kdebase/apps/; revision=1126346
2010-05-13 19:38:13 +00:00
Fredrik Höglund 5921621a54 Fix a crash in configAccepted() when changing the preview settings
when the applet is on the panel.

Fixed in: 4.4.4
BUG: 233794

svn path=/trunk/KDE/kdebase/apps/; revision=1126342
2010-05-13 19:12:39 +00:00
Stephan Binner a2f7847f94 SVN_SILENT i18n style guide fixes
svn path=/trunk/KDE/kdebase/apps/; revision=1124548
2010-05-09 11:06:38 +00:00
Fredrik Höglund 6ebd616304 - Show regular tooltips for folders except when dragging icons.
- Add an action button in the icon overlay that opens the folder popup.
 
BUG: 192821
BUG: 212882

svn path=/trunk/KDE/kdebase/apps/; revision=1124317
2010-05-08 20:31:36 +00:00
Fredrik Höglund df0122af96 Split the folder testing code out into a separate class.
svn path=/trunk/KDE/kdebase/apps/; revision=1124160
2010-05-08 00:11:24 +00:00
Shantanu Tushar Jha 60ba2e581d Add simple Type-and-Select feature.
BUG: 187241


svn path=/trunk/KDE/kdebase/apps/; revision=1118646
2010-04-25 15:03:12 +00:00
Script Kiddy 41915ef374 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1115065
2010-04-15 06:07:57 +00:00
Aaron J. Seigo 78f80ae307 delay showing the busy widget; less visual noise on local browsing
svn path=/trunk/KDE/kdebase/apps/; revision=1114478
2010-04-13 17:53:35 +00:00
Fredrik Höglund b0d6cf6363 - Use Plasma::WindowEffects to override the shadow instead of using
Xlib directly.
- Enable the blur effect and set the blur region for the popups.

svn path=/trunk/KDE/kdebase/apps/; revision=1100854
2010-03-08 21:03:19 +00:00
Aaron J. Seigo 5829a42b4f if we are a containment and have no scrolling to do ... don't.
BUG:183599

svn path=/trunk/KDE/kdebase/apps/; revision=1099064
2010-03-05 00:09:07 +00:00
Script Kiddy b60b74f3b4 SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/apps/; revision=1097842
2010-03-02 09:26:45 +00:00
Fredrik Höglund c6709bf6ae Fix the icon view always being resorted when a new file is created.
Fixed for: 4.4.1
BUG: 227157

svn path=/trunk/KDE/kdebase/apps/; revision=1095736
2010-02-24 23:09:57 +00:00
André Wöbbeking d68cc1f763 also include knewfilemenu.h instead of knewmenu.h
svn path=/trunk/KDE/kdebase/apps/; revision=1090581
2010-02-15 15:03:28 +00:00
Aaron J. Seigo c62b3310cd updateScreenRegion assumes we have an icon view
svn path=/trunk/KDE/kdebase/apps/; revision=1088050
2010-02-10 02:36:11 +00:00
Script Kiddy 60be6c2b5b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1085566
2010-02-05 13:31:20 +00:00
Aaron J. Seigo fb86402646 really rather ugly, but we really can't be using QDesktopWidget here as it's broken on far too many multi-screen setups
svn path=/trunk/KDE/kdebase/apps/; revision=1085254
2010-02-04 18:42:35 +00:00
Fredrik Höglund 0ad36d8510 - Don't connect to the finished() signal in the fadeOut animation more
than once.
- Stop the animation going in the opposite direction before starting
  a fade out/fade in animation.

svn path=/trunk/KDE/kdebase/apps/; revision=1084788
2010-02-03 19:14:20 +00:00
Fredrik Höglund 80dcf48cae - Port the metadata code to use the new ontology names in strigi.
- Disable the ID3 code, since the strigi analyzer is broken.

svn path=/trunk/KDE/kdebase/apps/; revision=1084776
2010-02-03 19:04:09 +00:00
Fredrik Höglund 42a106a51a Don't add drop actions for creating applets when the containment is immutable.
Fixed for: KDE 4.4
BUG: 219638

svn path=/trunk/KDE/kdebase/apps/; revision=1084193
2010-02-02 17:22:17 +00:00
Fredrik Höglund 021143b168 Process the string with KStringHandler::preProcessWrap() before
adding it to the QTextLayout.

svn path=/trunk/KDE/kdebase/apps/; revision=1083827
2010-02-02 00:32:50 +00:00
Darío Andrés Rodríguez e594092fbf - Fix several krazy2-reported issue
- Fixed some compilation warnings


svn path=/trunk/KDE/kdebase/apps/; revision=1083788
2010-02-01 22:31:43 +00:00
Fredrik Höglund 401b4fbcda Fix compiler warnings about unused variables.
svn path=/trunk/KDE/kdebase/apps/; revision=1082456
2010-01-30 15:35:23 +00:00
Fredrik Höglund 73406eee64 Don't repaint a larger area than what's necessary when toggling the selection
from the action overlay.

svn path=/trunk/KDE/kdebase/apps/; revision=1082374
2010-01-30 11:33:34 +00:00
Fredrik Höglund a8b6e80502 - Mark the whole widget as dirty when the content margins change,
not just the area inside the new contents rect.

  This fixes artifacts left on the screen when panels are added.

- Clear the region cache after shifting the icons.

svn path=/trunk/KDE/kdebase/apps/; revision=1081548
2010-01-28 17:49:40 +00:00
Fredrik Höglund bd6caa08cb Use the full grid space available to the items when computing the
bounding rect.

The item rects are set to this size in the initial layout pass,
but are later adjusted to the size actually used the first time
they're painted.

This can result in a larger bounding rect being computed after
the initial layout than what would be computed when resizing the
view after all the icons have been painted.

Fixed for: KDE 4.4 RC3.
BUG: 185179

svn path=/trunk/KDE/kdebase/apps/; revision=1081083
2010-01-27 17:48:06 +00:00
Fredrik Höglund 2aaf7b93a5 Make sure the bounding rect for the moved icons includes the whole grid cells.
svn path=/trunk/KDE/kdebase/apps/; revision=1081058
2010-01-27 16:38:06 +00:00
David Faure c43f0a1c2c Deprecated KNewMenu and make it derive from KNewFileMenu (BIC, but SC; the only way to avoid duplicating code until kde5)
Port all of kdebase' use of KNewMenu to KNewFileMenu.
Also port from KonqNameAndUrlInputDialog to KNameAndUrlInputDialog,
and from KonqMenuActions to KFileItemActions in dolphincontextmenu.cpp

svn path=/trunk/KDE/kdebase/apps/; revision=1080547
2010-01-26 12:04:56 +00:00
Darío Andrés Rodríguez d0ced1b6b4 - Preserve the icons' position when modifying the preview settings
CCBUG: 182712

svn path=/trunk/KDE/kdebase/apps/; revision=1078287
2010-01-21 22:59:59 +00:00
Fredrik Höglund fa1343bd64 Make the text shadows twice as dark.
Fixed for: KDE 4.4 RC2
BUG: 223055

svn path=/trunk/KDE/kdebase/apps/; revision=1077296
2010-01-19 22:11:26 +00:00
Fredrik Höglund 997ee31955 - Prevent icons from being placed at fractional grid positions when
they're manually positioned near the edge of the icon view and align
  to grid is enabled.
- Take the direction of the flow into account when aligning icons to the grid.
- Fix an off-by-one error in nextGridPosition().

Fixed for: KDE 4.4 RC2
BUG: 195996

svn path=/trunk/KDE/kdebase/apps/; revision=1077284
2010-01-19 21:38:31 +00:00
Fredrik Höglund c1cb689a14 Increase the delay between hovering an icon and showing the folder popup
to one second when the icon view doesn't have a popup open and it's been
longer than 1.5 seconds since the last popup was opened or closed.

CCBUG: 212882

svn path=/trunk/KDE/kdebase/apps/; revision=1077237
2010-01-19 19:29:36 +00:00
Fredrik Höglund 700c44cde0 - Call KDirLister::isFinished() instead of tracking this in the IconView.
This also fixes the assumption that the lister is active when the IconView
  is created, which when false will result in a permanent loading animation.

- Set the minimum size hint for icon view to the size of one grid cell.

  This gives the applet a more reasonable size after moving it from
  from the panel to the desktop.

Fixed for: KDE 4.4 RC2
BUG: 205680

svn path=/trunk/KDE/kdebase/apps/; revision=1074263
2010-01-13 18:55:07 +00:00
Fredrik Höglund 3827e8895c Hide the editor before changing the focus, to prevent the editor
data from being committed twice.

svn path=/trunk/KDE/kdebase/apps/; revision=1073828
2010-01-12 22:51:21 +00:00
Fredrik Höglund 6add07d93c - Ignore icons that haven't been laid out yet when searching for an
empty position in the grid.
- Mark icons that didn't have a saved position as laid out after
  they've been laid out in the post layout pass.
- Remove an early return that caused the icon view to not be repainted
  after the post layout pass was completed.

Fixed for: KDE 4.4 RC2
BUG: 190374

svn path=/trunk/KDE/kdebase/apps/; revision=1073823
2010-01-12 22:44:23 +00:00
Davide Bettio 65cbf6d9f9 Embeding HTML code with hardcoded style into text property is a bad idea.
svn path=/trunk/KDE/kdebase/apps/; revision=1073735
2010-01-12 19:02:02 +00:00
Fredrik Höglund 3e15ef5688 Use QDesktopWidget::availableGeometry() instead of the biggest rectangle
in Corona::availableScreenRegion().

The biggest rectangle isn't always the best choice.

BUG: 202537

svn path=/trunk/KDE/kdebase/apps/; revision=1070144
2010-01-04 23:54:00 +00:00
Fredrik Höglund 9157332e8c Correctly handle the case where the content margins are changed after
the saved icons positions are loaded, but before the layout process
is completed.

svn path=/trunk/KDE/kdebase/apps/; revision=1070135
2010-01-04 23:35:31 +00:00
Max Blazejak d57acb1702 setWidgetToAnimate -> setTargetWidget as changed in the plasma API
svn path=/trunk/KDE/kdebase/apps/; revision=1069805
2010-01-04 09:54:32 +00:00
Fredrik Höglund a06854cd00 Set the _KDE_SHADOW_OVERRIDE hint on the folderview popups.
svn path=/trunk/KDE/kdebase/apps/; revision=1069547
2010-01-03 18:12:11 +00:00
Fredrik Höglund 5364c13d60 Use widgets/tooltip as the background in the folder popups.
svn path=/trunk/KDE/kdebase/apps/; revision=1069546
2010-01-03 18:07:14 +00:00
Script Kiddy 603ee6fb13 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1068962
2010-01-02 11:35:49 +00:00
Script Kiddy f6992715b6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1068486
2010-01-01 11:09:03 +00:00
Script Kiddy 0adb9812f8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1068118
2009-12-31 11:34:58 +00:00
Script Kiddy 624d104e22 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1067354
2009-12-29 12:23:43 +00:00
Carlo Segato 08d9a28736 on windows FramelessWindowHint is required to make WA_TranslucentBackground work
svn path=/trunk/KDE/kdebase/apps/; revision=1062417
2009-12-14 18:06:56 +00:00
Fredrik Höglund 1e2e793464 Apply the palette to the icon view.
BUG: 218660

svn path=/trunk/KDE/kdebase/apps/; revision=1062416
2009-12-14 17:59:40 +00:00
Pino Toscano f8a83aa223 reorder to match initialisation order
svn path=/trunk/KDE/kdebase/apps/; revision=1062019
2009-12-13 15:23:19 +00:00
Fredrik Höglund aa7007e067 Pass QApplication::desktop() as the parent widget to KonqOperations
instead of view() or 'this'.

This fixes a crash that can occur if the parent widget is deleted while
KonqOperations is showing a dialog box.

It also fixes a potential crash if view() returns 0.

BUG: 204844
BUG: 206343

svn path=/trunk/KDE/kdebase/apps/; revision=1061675
2009-12-12 17:13:37 +00:00
Fredrik Höglund a54534673f Fix a compiler warning.
svn path=/trunk/KDE/kdebase/apps/; revision=1061669
2009-12-12 16:37:44 +00:00
Fredrik Höglund b57271f28f Always use the theme text color in the popup view.
The rationale is that the popup view uses the standard dialog
background, while the parent folderview uses a translucent
background or no background. The text color configured for
the applet might not be suitable for both background types.

svn path=/trunk/KDE/kdebase/apps/; revision=1061668
2009-12-12 16:36:20 +00:00
Fredrik Höglund 2e59bc2b68 Fix a crash in the popup view during drag and drop.
Based on the backtrace in bug 207872, which is marked as a duplicate
of bug 212406.

BUG: 212406

svn path=/trunk/KDE/kdebase/apps/; revision=1061663
2009-12-12 16:21:15 +00:00
Script Kiddy 01fb53831d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1060237
2009-12-08 10:50:27 +00:00
Script Kiddy 01b433da53 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1059331
2009-12-06 10:39:11 +00:00
Adenilson Cavalcanti Da Silva f873fb08f2 Patches to make kdebase compile with current animation code.
svn path=/trunk/KDE/kdebase/apps/; revision=1057994
2009-12-03 19:32:42 +00:00
Yuen Hoe Lim b8158c1ba5 Made folderview popups inherit file preview settings.
svn path=/trunk/KDE/kdebase/apps/; revision=1057448
2009-12-02 12:56:35 +00:00
Fredrik Höglund 7fcd1974d0 Use white text by default in the icon view when the applet is used
as a containment.

svn path=/trunk/KDE/kdebase/apps/; revision=1056429
2009-11-30 06:44:13 +00:00
Fredrik Höglund e3c300edd0 Don't start the fade out animation when the overlay is hidden or when
the animation is already running.

svn path=/trunk/KDE/kdebase/apps/; revision=1055277
2009-11-27 18:54:05 +00:00
Fredrik Höglund 6cdcf4be07 Use the new action-overlays SVG in the theme.
svn path=/trunk/KDE/kdebase/apps/; revision=1054854
2009-11-26 23:14:21 +00:00
Marco Martin 3e4f79e8c5 move halopainter unchanged in libplasma, keep it private and expose
drawhalo in PaintUtils
iconwidgets uses it if there is no backgroundcolor explicitly setted
CCMAIL:fredrik@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=1054830
2009-11-26 21:57:36 +00:00
Fredrik Höglund 353a7320bd Add a string for use after the message freeze.
svn path=/trunk/KDE/kdebase/apps/; revision=1054412
2009-11-26 00:18:52 +00:00
Fredrik Höglund c149ab1664 Include a menu item for emptying the trash bin in the context menu when
showing the trash folder.

BUG: 203790

svn path=/trunk/KDE/kdebase/apps/; revision=1054407
2009-11-26 00:07:24 +00:00
Bruno Bigras bf3939131c Animate the ActionOverlay icon, fix the drag and drop and hide the overlay when a file is deleted
svn path=/trunk/KDE/kdebase/apps/; revision=1053962
2009-11-25 06:25:09 +00:00
Fredrik Höglund 47ec04f6cd Only draw the icon as pressed when it's under the mouse.
svn path=/trunk/KDE/kdebase/apps/; revision=1053944
2009-11-25 02:50:12 +00:00
Fredrik Höglund ae868ab594 Emit clicked() from mousePressEvent() for consistency with other buttons.
svn path=/trunk/KDE/kdebase/apps/; revision=1053943
2009-11-25 02:44:29 +00:00
Fredrik Höglund 6d6ae7c6b1 Add a hovered and a pressed state to the action icon.
svn path=/trunk/KDE/kdebase/apps/; revision=1053938
2009-11-25 02:21:26 +00:00
Bruno Bigras eb5f8860dc Reduce the timeout to 500msecs for the ActionOverlay
svn path=/trunk/KDE/kdebase/apps/; revision=1053926
2009-11-25 01:31:45 +00:00
Bruno Bigras 8b3ed2bd68 Implement 'Hover action icons in the icon view' for folderview
BUG: 180913

svn path=/trunk/KDE/kdebase/apps/; revision=1053896
2009-11-25 00:06:26 +00:00
Script Kiddy 4af02b47dc SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=1053570
2009-11-24 10:24:48 +00:00
Shafqat Bhuiyan 444514029b Close all popups when user clicks on an item
svn path=/trunk/KDE/kdebase/apps/; revision=1053378
2009-11-23 23:18:38 +00:00