Commit graph

623 commits

Author SHA1 Message Date
Sebastian Sauer 7de91d8c3b and revert r823001 again since KonqPopupMenu handles this case.
svn path=/trunk/KDE/kdebase/apps/; revision=823007
2008-06-22 11:23:51 +00:00
Sebastian Sauer 6316519e94 check here too if m_newMenu went NULL. SVN_SILENT
svn path=/trunk/KDE/kdebase/apps/; revision=823001
2008-06-22 11:13:00 +00:00
Sebastian Sauer e4e0392ca4 fix crash on logout.
BUG:164653

svn path=/trunk/KDE/kdebase/apps/; revision=823000
2008-06-22 11:11:36 +00:00
Script Kiddy 1a914a8521 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=822978
2008-06-22 10:35:45 +00:00
Script Kiddy 2c5ca6de22 SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/apps/; revision=822007
2008-06-18 21:37:23 +00:00
Fredrik Höglund 0ef49830d5 Clear the selection when an item is activated, to match kdesktop behavior.
BUG: 163462

svn path=/trunk/KDE/kdebase/apps/; revision=821623
2008-06-18 00:16:44 +00:00
Fredrik Höglund f9fe32750c Connect the dataChanged() signal to the right slot.
svn path=/trunk/KDE/kdebase/apps/; revision=821608
2008-06-17 23:24:58 +00:00
Leonardo Finetti e6a6af8e90 Fixed code style.
svn path=/trunk/KDE/kdebase/apps/; revision=821606
2008-06-17 23:19:45 +00:00
Fredrik Höglund bde6600d14 * Fix the wrong item being highlighted when dragging over the view when the
view is scrolled down.
* Don't highlight items that don't accept drops.

svn path=/trunk/KDE/kdebase/apps/; revision=821605
2008-06-17 23:14:25 +00:00
Fredrik Höglund 6571f0597a * Keep track of when the user has broken the layout by moving the items in the view.
* When an item is removed and the layout has been broken by the user, just remove the
  item from the list and schedule a repaint, rather than invalidating the layout.

svn path=/trunk/KDE/kdebase/apps/; revision=821601
2008-06-17 22:58:07 +00:00
Fredrik Höglund c9071588bc Show a vertical scrollbar when there are more icons than will fit in
the view, and add support for scrolling the view.

BUG: 162571

svn path=/trunk/KDE/kdebase/apps/; revision=821595
2008-06-17 22:32:54 +00:00
Leonardo Finetti 8ccbc6c172 Configuration dialog: if the url is local check if it exist.
CCBUG: 164305


svn path=/trunk/KDE/kdebase/apps/; revision=821591
2008-06-17 21:55:33 +00:00
Leonardo Finetti db350827de Configuration dialog: check if the url isEmpty().
BUG: 164305


svn path=/trunk/KDE/kdebase/apps/; revision=821481
2008-06-17 15:34:12 +00:00
Script Kiddy c9f35237df SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=820661
2008-06-15 03:55:58 +00:00
Fredrik Höglund 76462f3261 Fix a compiler warning about KFileItem::acceptsDrops() being deprecated by
checking the item flags for the hovered index instead.

svn path=/trunk/KDE/kdebase/apps/; revision=819948
2008-06-12 17:42:11 +00:00
Fredrik Höglund 35408f2c52 Implement support for renaming files.
svn path=/trunk/KDE/kdebase/apps/; revision=819943
2008-06-12 17:24:35 +00:00
Aaron J. Seigo c88e0ee382 * don't paint dragging items as if they were still there
* repaint dragged items if the drag was cancelled

svn path=/trunk/KDE/kdebase/apps/; revision=819861
2008-06-12 12:22:29 +00:00
Aaron J. Seigo e99d962c97 drop within a folderview.
p.s. bugzilla has all the wrong granularity in bug reports.

BUG:163597

svn path=/trunk/KDE/kdebase/apps/; revision=819860
2008-06-12 12:13:09 +00:00
Aaron J. Seigo 4773eb8926 * remove an used var
* move more of the initialization to the init list so that it's quicker to check what is initialized (or not)

svn path=/trunk/KDE/kdebase/apps/; revision=819811
2008-06-12 08:09:00 +00:00
Script Kiddy 9e82776a67 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=819631
2008-06-11 16:22:52 +00:00
Rafael Fernández López 6ac5821abd Separator is ' ', not ';'. Thanks Anne.
svn path=/trunk/KDE/kdebase/apps/; revision=819492
2008-06-11 12:26:55 +00:00
Aaron J. Seigo 605ba7360a * highlight the item we are dragging over
* if the KFileItem droped on doesn't accept drops, don't pass it in to doDrop (fixes crash)

svn path=/trunk/KDE/kdebase/apps/; revision=819371
2008-06-11 05:49:35 +00:00
Aaron J. Seigo 1041104333 silly == when it should be = error; now dropping on folders works.
svn path=/trunk/KDE/kdebase/apps/; revision=819369
2008-06-11 05:41:09 +00:00
Script Kiddy 3bc41b36b8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=819272
2008-06-10 20:52:13 +00:00
Aaron J. Seigo b43676f838 use KonqOperations::doDrop. unfortunately the popup menu goes away immediately, and modifier shortcuts such as ctrl/shift are also innexplicably ignored. so .. the drop code is there, just need to figure out what even maddness is going on.
svn path=/trunk/KDE/kdebase/apps/; revision=819237
2008-06-10 20:14:16 +00:00
Andrew Lake b320b7b756 Display path when custom paths are selected.
svn path=/trunk/KDE/kdebase/apps/; revision=818927
2008-06-10 01:40:01 +00:00
Aaron J. Seigo 1df1a51a99 make folderview a containment as well so people can start playing with it as they seem to not be able to comprehend the idea
svn path=/trunk/KDE/kdebase/apps/; revision=818916
2008-06-10 00:48:24 +00:00
Pino Toscano 95f0c66c09 make use of PLASMA_LIBS, that works in any case
svn path=/trunk/KDE/kdebase/apps/; revision=818690
2008-06-09 08:57:12 +00:00
Pino Toscano e118068c31 include the plasma include dir
svn path=/trunk/KDE/kdebase/apps/; revision=818687
2008-06-09 08:35:10 +00:00
Fredrik Höglund 2726b5cf10 Add the context menu for the icons in the folder view, and add
the "Create New", "Undo" and "Paste" actions to the applet's
context menu.

CCBUG: 155057
BUG: 163043

svn path=/trunk/KDE/kdebase/apps/; revision=818609
2008-06-08 23:49:24 +00:00
Fredrik Höglund 55e7f80ee3 Add the folderview applet to the build.
svn path=/trunk/KDE/kdebase/apps/; revision=818604
2008-06-08 22:37:49 +00:00
Script Kiddy 4deafe090e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=817864
2008-06-06 21:47:30 +00:00
Script Kiddy f8cb96b3cc SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/apps/; revision=817018
2008-06-05 02:24:59 +00:00
Marco Martin 736e7ef223 add folderviews with drag and drop on desktop
as discussed in irc this at first won't work when the containment will
be a folderview itself, until we will have menu plugins planned for KDE
4.2

svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=816866
2008-06-04 20:51:39 +00:00
Script Kiddy 45c36cc638 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=816270
2008-06-03 14:23:53 +00:00
Fredrik Höglund 4a6e66e781 Use the desktop font configured in systemsettings.
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=815499
2008-06-02 00:17:53 +00:00
Rafael Fernández López d6bc8c6b36 Natural comparison and proper case insensitive filter
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=815478
2008-06-01 22:12:11 +00:00
Rafael Fernández López b66cac2eac Make the filter no case aware
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=815467
2008-06-01 21:40:13 +00:00
Rafael Fernández López c7642d7d6c Filter out everything that does not match the filter rules set by the user. That means folders are also filtered out. Filters can be separated with ';'. That means one could do something like
'*.jpg;*.png'. We probably also want to remove all spaces from the filter, as well as making them non-case aware. At the moment "foo.JPG" would be filtered out if our filter was "*.jpg".

CCMAIL: fredrikh@kde.org

svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=815459
2008-06-01 21:24:36 +00:00
Script Kiddy 83e05462a3 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=815343
2008-06-01 15:00:04 +00:00
Script Kiddy 27de865cf4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=814782
2008-05-31 09:41:27 +00:00
Script Kiddy 4e95e91b45 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=813908
2008-05-28 21:39:47 +00:00
Marco Martin 60d272ba14 new BackgroundHint:
TranslucentBackground, now used by folder view.
when an applet has TranslucentBackground set, it loads
"widgets/tranlucentbackground" as its own background
when that svg does not exists in theh them it falls back to
"widgets/background" instead of translucentbackground of the default
theme

svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=813283
2008-05-27 10:57:09 +00:00
Script Kiddy 562e60ac97 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=812438
2008-05-25 13:57:31 +00:00
Riccardo Iaconelli 5537435ff5 Revert "Before we make a contaiment out of it (are we going to make it for 4.1 with the freeze?), and we're able to choose it..."
This reverts commit 812032.

svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=812171
2008-05-24 18:27:38 +00:00
Riccardo Iaconelli df0932c8bd Before we make a contaiment out of it (are we going to make it for 4.1 with the freeze?), and we're able to choose it,
at least add an option to make folderview's background transparent, so it doesn't hurt your eyes. ;-)
Not sure about what doing by default, but I guess I'll keep it opaque (as it is now), so people understand that is a
plasmoid.

ACK'd on review board by logixoul.

BUG: 162526

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>

svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=812032
2008-05-24 12:53:37 +00:00
Andrew Lake d975e781aa Make text use Plasma theme colors.
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=811838
2008-05-23 20:06:25 +00:00
Script Kiddy a1f27eb622 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=811725
2008-05-23 16:07:41 +00:00
Script Kiddy 73062e405c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=811328
2008-05-22 18:37:15 +00:00
Script Kiddy b55c7c5608 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=810784
2008-05-21 15:51:57 +00:00
Robert Knight 25f55e17a1 Show clear button in 'Filter' field. Use KLineEdit instead of QLineEdit.
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=810465
2008-05-20 19:56:02 +00:00
Robert Knight af84498935 Use the folder browsing dialog instead of the file browsing dialog to select a location for the folder view to display.
svn path=/trunk/KDE/kdebase/workspace/plasma/containments/folderview/; revision=810461
2008-05-20 19:47:13 +00:00
Script Kiddy 5b8abe2cc0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=810203
2008-05-20 09:02:53 +00:00
Script Kiddy 30b97e432f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/apps/; revision=809748
2008-05-19 11:22:53 +00:00
Fredrik Höglund 649e993f25 It turns out we already have a contentsRect() in QGraphicsLayoutItem.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=809481
2008-05-18 23:23:33 +00:00
Laurent Montel c05dbcd28b Extract messages
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=805013
2008-05-07 11:23:29 +00:00
Sven Burmeister d73b4c5c34 Add file-filter feature to enable the user to have an office-folderview, a picture-folderview etc.
TODO: Add tag-filtering to allow project-folderviews

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=804367
2008-05-05 19:44:07 +00:00
Fredrik Höglund af1579d1d2 Enable text wrapping.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=803459
2008-05-02 22:49:18 +00:00
Fredrik Höglund fa0f1991e6 - initStyleOption() is provided by QGraphicsWidget now.
- Use the widget's style and font instead of the global ones.

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=803457
2008-05-02 22:36:07 +00:00
Fredrik Höglund 6b43e43436 Use the icon size configured for the desktop in systemsettings rather than
a hard coded value.

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=803370
2008-05-02 18:04:13 +00:00
Fredrik Höglund 1e92e540e8 Add a configuration interface for selecting the folder.
Based on a patch by Sven Burmeister.

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=803363
2008-05-02 17:34:22 +00:00
Fredrik Höglund 75377a9d9b Port the folderview applet to the recent API changes, and re-enable it.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=803099
2008-05-01 22:40:57 +00:00
Aaron J. Seigo d2b64aa903 .desktop file naming fixes
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=799944
2008-04-22 22:14:25 +00:00
Fredrik Höglund 39a8797116 Implement support for drag and drop.
It's now possible to reposition the items within the view, drag items out of
the view, and drop files into it.

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=795539
2008-04-10 17:01:45 +00:00
Fredrik Höglund 0aea467cad Fix the service type.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=795538
2008-04-10 16:54:00 +00:00
Laurent Montel db5e070d36 Not necessary
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=790948
2008-03-27 21:40:15 +00:00
Fredrik Höglund 46693f3ff4 Add a sorting proxy model that sorts the folder contents alphabetically,
with directories first.

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=790620
2008-03-27 01:00:31 +00:00
Fredrik Höglund 429358702a Activate icons when they're clicked or double-clicked, depending on the global
single vs. double click setting.

svn path=/trunk/playground/base/plasma/applets/folderview/; revision=790604
2008-03-27 00:12:29 +00:00
Script Kiddy a9862a1240 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=789675
2008-03-24 21:22:04 +00:00
Script Kiddy 987d952b6a SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=788563
2008-03-21 21:02:06 +00:00
Fredrik Höglund 69d954ebc3 Add support for rubber band selections.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=787307
2008-03-18 22:38:42 +00:00
Fredrik Höglund 31f8fb0f68 Enable text shadows.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=786769
2008-03-17 21:52:36 +00:00
Fredrik Höglund 0c7ff90ba7 Add the beginnings of a generic folder view applet.
svn path=/trunk/playground/base/plasma/applets/folderview/; revision=786400
2008-03-16 22:49:10 +00:00