Commit graph

206 commits

Author SHA1 Message Date
Peter Penz 49eb864b03 Unify the search interface for non-indexed and indexed folders
svn path=/trunk/KDE/kdebase/apps/; revision=1154073
2010-07-24 16:37:07 +00:00
Peter Penz 4f0f6e6156 Rename AdditionalInfoManager to AdditionalInfoAccessor
svn path=/trunk/KDE/kdebase/apps/; revision=1126483
2010-05-14 05:27:47 +00:00
Peter Penz cb9669d71c If an information entry will be added to KFileItemDelegate (like done recently), adjusting the corresponding code in Dolphin is a real pain, as the new information will be shown in Dolphin the following way:
- As additional columns in the details view
 - As additional lines in the icons view
 - As menu entries in the "Sort By" and "Additional Information" groups
 - As popup menu entries in the details view header popup
 - As checkable entries in the View Properties dialog

To prevent similar painful transitions in future, the class AdditionalInfoManager has been introduced. All parts in Dolphin that access/show/store additional information, use the AdditionalInfoManager now. If a new information entry will be added in KFileItemDelegate in future, only a small adjustment in AdditionalInfoManager will be required.

Still open currently:
- AdditionalInfoDialog does not use AdditionalInfoManager yet
- DolphinView::Sorting should be replaced by KFileItemDelegate::Information, so that the sorting can also be done in a generic way.
- The data for KFileItemDelegate::PathOrUrl is not determined

The open issues will get fixed during the next days.

Kudos to the brave warriors Sebastian and Frank, that tried to add a new information ;-)

CCMAIL: sebastian@trueg.de
CCMAIL: frank78ac@googlemail.com

svn path=/trunk/KDE/kdebase/apps/; revision=1126410
2010-05-13 22:06:10 +00:00
Kevin Ottens de2cc4bd59 Depend directly on kcmutils.
svn path=/trunk/KDE/kdebase/apps/; revision=1125889
2010-05-12 15:58:45 +00:00
Peter Penz a20edc49bd Invert default behavior regarding loading of version control plugins: Only load plugins that have been explicitly enabled by the user instead of loading all plugins per default.
Most users won't use version control plugins at all and there is no need in wasting memory and performance. A user interface has been added in the "Services" settings for version control plugins. The user interface is only shown, if at least one plugin is available on the system.

svn path=/trunk/KDE/kdebase/apps/; revision=1111101
2010-04-04 20:45:09 +00:00
Peter Penz 2dc23d4e6d Remove the SVN plugin from the Dolphin sources. The plugin will get part of kdesdk (request will be submitted on reviewboard during the next days).
svn path=/trunk/KDE/kdebase/apps/; revision=1110250
2010-04-02 16:00:14 +00:00
Peter Penz 47d3113922 Split the class DolphinController into the two classes DolphinViewController and ViewModeController.
The ViewModeController offers a defined interface to control view mode implementations like icons view, details view and column view. The DolphinViewController allows those view mode implementations to control the parent DolphinView in a limited way.

svn path=/trunk/KDE/kdebase/apps/; revision=1109228
2010-03-30 20:19:32 +00:00
Peter Penz 47e80ef6b9 Don't recreate and destroy the tooltip widget on each show/hide operation, just use set the widget visible/invisible and update the content instead
svn path=/trunk/KDE/kdebase/apps/; revision=1107992
2010-03-27 13:08:46 +00:00
Peter Penz a3cc212100 Enable the meta data configuration dialog again after the KFileMetaDataWidget code has been moved to kdelibs
svn path=/trunk/KDE/kdebase/apps/; revision=1107432
2010-03-25 16:34:40 +00:00
Peter Penz 884e95cc98 Version control: Move the maintainance of pending threads into a custom class. Also the UpdateItemStatesThread differs now between protecting the globally shared plugin and the locally shared data.
svn path=/trunk/KDE/kdebase/apps/; revision=1107125
2010-03-24 22:21:09 +00:00
Peter Penz caf017c2fe Use KFileMetaDataWidget from kdelibs. Still open: Provide dialog which wraps KFileMetaDataConfigurationWidget.
svn path=/trunk/KDE/kdebase/apps/; revision=1106465
2010-03-22 22:23:02 +00:00
Luboš Luňák 4bb1ba9217 welcome to the world of kdeinit applications
svn path=/trunk/KDE/kdebase/apps/; revision=1103978
2010-03-16 12:30:46 +00:00
Peter Penz 54a1499586 Provide a KMetaDataModel for KMetaDataWidget.
This allows to extend the model with custom meta data (might e. g. be useful for Gwenview).

svn path=/trunk/KDE/kdebase/apps/; revision=1102749
2010-03-13 13:38:40 +00:00
Peter Penz c73266cb59 fix link issue if Nepomuk is not installed
svn path=/trunk/KDE/kdebase/apps/; revision=1099444
2010-03-05 15:38:08 +00:00
Peter Penz 2b286a9f04 Rename NfoTranslator to KNfoTranslator, so that KMetaDataWidget can be moved to kdelibs for KDE SC 4.5 (some interfaces of KMetaDataWidget need to be cleaned up first).
KNfoTranslator is marked as private class, as it is not clear yet whether it should be used by other classes like KFileMetaInfo.

svn path=/trunk/KDE/kdebase/apps/; revision=1098897
2010-03-04 16:24:20 +00:00
Peter Penz 4e370297de Show meta information also for files, which are not indexed (or in the case if Nepomuk is turned off).
Beside the new translations the fix is based on several other fixes in kdelibs + strigi and cannot be backported to KDE SC 4.4.x.

As soon as the meta data widget has been moved to kdelibs, this meta data information will also be available in the properties dialog.

BUG: 193592

svn path=/trunk/KDE/kdebase/apps/; revision=1096472
2010-02-26 18:03:13 +00:00
Luboš Luňák a2f0d69558 replace X11-specific code with generic
svn path=/trunk/KDE/kdebase/apps/; revision=1093243
2010-02-20 11:52:46 +00:00
Laurent Montel 8dd3b9d3be Implement todo (create a dialog box when ok is enable/disable when text is empty or not)
(and fix restore size, in old version we didn't save size before to delete element)

svn path=/trunk/KDE/kdebase/apps/; revision=1080045
2010-01-25 13:14:39 +00:00
Peter Penz 2570a42d38 - search by modification date of the file, not when the file has been tagged or something similar
- make "search files modified today" work

Thanks to Daniel Winter for the patch! 

CCMAIL: dw@danielwinter.de

svn path=/trunk/KDE/kdebase/apps/; revision=1070440
2010-01-05 17:35:58 +00:00
Maciej Mrozowski cf0e6bcfe6 Better fix for compilation without Nepomuk - like Sebastian noted SDO is being searched for automatically. It was just sufficient to wrap soprano_add_ontology with Nepomuk_FOUND in this case.
svn path=/trunk/KDE/kdebase/apps/; revision=1064414
2009-12-20 21:57:43 +00:00
Maciej Mrozowski f3ee79bb68 [kdebase/apps/dolphin/CMakeLists.txt] Fixed compilation without Nepomuk
CCMAIL: kde-buildsystem@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=1064077
2009-12-20 04:28:22 +00:00
Luboš Luňák ea258a5f09 +include(SopranoAddOntology)
svn path=/trunk/KDE/kdebase/apps/; revision=1063929
2009-12-19 15:43:53 +00:00
Peter Penz af7ced9047 Allow to disable version control plugins. It's too late already for providing a UI (string freeze...) and it should not be necessary to disable a plugin, but in the worst case (e. g. plugin crashes under certain circumstances) it is good to have a non-GUI fallback.
svn path=/trunk/KDE/kdebase/apps/; revision=1061740
2009-12-12 22:44:05 +00:00
Peter Penz a960935b00 * allow to filter the search result by images or text-documents
* minor cleanups

svn path=/trunk/KDE/kdebase/apps/; revision=1061550
2009-12-12 05:59:45 +00:00
Peter Penz 4724888b0c use KNewStuff3 instead of the deprecated KNewStuff2
svn path=/trunk/KDE/kdebase/apps/; revision=1060003
2009-12-07 21:20:28 +00:00
Laurent Montel 61f49c3d4c use cmake macro
svn path=/trunk/KDE/kdebase/apps/; revision=1054655
2009-11-26 12:29:38 +00:00
Sebastian Trueg 482fea3ec6 fixed linking
svn path=/trunk/KDE/kdebase/apps/; revision=1054299
2009-11-25 20:52:06 +00:00
Helio Castro bb603e5b4d Fix trunk compilation using proper soprano Vocabulary, since moved from nie.h nepomuk.
svn path=/trunk/KDE/kdebase/apps/; revision=1053540
2009-11-24 09:58:10 +00:00
Peter Penz 7662e0e4d4 Prepare the search criterion selector to use the new Nepomuk::Query::Term instead of a QString. The implementation still needs to be adapted, but this will be straight forward.
svn path=/trunk/KDE/kdebase/apps/; revision=1053447
2009-11-24 07:15:24 +00:00
Peter Penz 35ba6eb132 * show only a minimized set of search options per default
* remember the search options when closing Dolphin, so that the user can adjust his "default search template"

svn path=/trunk/KDE/kdebase/apps/; revision=1052499
2009-11-21 22:08:59 +00:00
Frank Reininghaus 487215f0c4 When navigating back/forward in the DolphinPart inside Konqueror, remember
1. the current item,
2. the scroll position of the view, and
3. the expansion state of the details view.

Before 3. can be implemented in Dolphin itself, some changes in
KUrlNavigator are required.

This fix will be in KDE 4.4.

BUG: 193549
BUG: 198073
BUG: 213137

svn path=/trunk/KDE/kdebase/apps/; revision=1049164
2009-11-14 15:51:47 +00:00
Peter Penz f0cab33518 Don't show the search options, if no Nepomuk is available. Hopefully Nepomuk will get a hard build dependency quite soon, those #ifdef-code is really ugly and difficult to maintain...
svn path=/trunk/KDE/kdebase/apps/; revision=1048135
2009-11-12 19:45:55 +00:00
Peter Penz a317de2dc5 SVN_SILENT: stay consistent with other indentations
svn path=/trunk/KDE/kdebase/apps/; revision=1047278
2009-11-10 21:41:14 +00:00
Andreas Hartmetz bbf2836138 link with gold (knewstuff2 for dolphin) and remove a few redundant linked libraries already included by others
svn path=/trunk/KDE/kdebase/apps/; revision=1046917
2009-11-09 23:09:16 +00:00
Peter Penz 232e7eaad7 move the "Download New Services..." entry from the Settings menu to the service configuration dialog
svn path=/trunk/KDE/kdebase/apps/; revision=1046788
2009-11-09 18:13:36 +00:00
Peter Penz d009bf5eae allow to configure which meta data should be shown for tooltips
svn path=/trunk/KDE/kdebase/apps/; revision=1045705
2009-11-06 16:51:42 +00:00
Peter Penz 896ee459af * enable the loading of version control plugins (thanks to Aaron for the hint)
* Don't terminate the thread that receives the item states when changing a view. Instead let the thread get finished and ignore the result.


svn path=/trunk/KDE/kdebase/apps/; revision=1045674
2009-11-06 15:43:08 +00:00
Jonathan Schmidt-Dominé 5114ab58bc Initial ServiceMenu-KHotNewStuff-stuff
TODO: fix the existing servicemenus (some install-scripts are broken, some do not provide a simple CLI-interface)
TODO: add support for single-desktop-file-servicemenus (for example the "open as root")


svn path=/trunk/KDE/kdebase/apps/; revision=1045663
2009-11-06 14:56:35 +00:00
Peter Penz ee20ff929c Install fileviewversioncontrolplugin.desktop as servicetype, so that version control plugins can be found by Dolphin. Open issue: The instantiation fails and the following errors are returned:
dolphin(13505)/kdecore (KLibrary) kde4Factory: The library "/home/kde4peter/kde/lib/kde4/fileviewsvnplugin.so" does not offer a qt_plugin_instance function.
dolphin(13505)/kdecore (KLibrary) kde3Factory: The library "/home/kde4peter/kde/lib/kde4/fileviewsvnplugin.so" does not offer an "init_fileviewsvnplugin" function.

svn path=/trunk/KDE/kdebase/apps/; revision=1044902
2009-11-04 21:37:12 +00:00
Peter Penz 565bd3bf23 Don't call QThread::wait() in the destructor - in the worst case an issue in Nepomuk will block Dolphin for several seconds. Refactored the load-meta-data-thread in a way that the meta data widget does not require to wait for a result of the thread.
svn path=/trunk/KDE/kdebase/apps/; revision=1044848
2009-11-04 19:14:39 +00:00
Peter Penz f5f2ccf8ee Fixed link issue - I'm sorry: I had installed a temporary version of KMetaDataWidget from kdelibs and did not recognize the issue...
svn path=/trunk/KDE/kdebase/apps/; revision=1044545
2009-11-04 00:46:45 +00:00
Peter Penz 74c1d61aa3 Since Qt 4.5 it is possible to have translucient windows. The tooltip approach having a delegate and custom drawing + animation code for transparent tooltips has now been replaced by a translucient window where any kind of (animated) widget can be embedded. Still a lot of finetuning has to be done, but maybe this code can be part of kdelibs in KDE 4.5 (systemsettings currently used the Dolphin tooltips code).
Additionally the tooltip uses now KMetaDataWidget instead of using KMetaInfo. This assures that no blocking of the application will occur even if there is a buggy Strigi analyzer that ignores the maximum size-setting and might block the retrieving of the meta data.

BUG: 182941
BUG: 195878

svn path=/trunk/KDE/kdebase/apps/; revision=1044485
2009-11-03 21:48:27 +00:00
Peter Penz 73007f7d63 After some discussions at http://reviewboard.kde.org/r/1938 it turned out that moving KMetaDataWidget and KMetaDataConfigurationDialog to kdelibs should be postponed to KDE 4.5. The main reason is that adding application specific properties is not possible with the current API in a generic way. Also the topic how to hide properties application specific is an open point...
So now all adjustments from the review have been adapted to the Dolphin code. After KDE 4.4 has been released some refactoring will be done so that the open topics above are handled in a nice way.

svn path=/trunk/KDE/kdebase/apps/; revision=1041547
2009-10-28 07:18:00 +00:00
Peter Penz efecb5021c Imported Adam Kidders search configuration widgets from playground/base/nepomuk/search_widgets_test. I adjusted some names of classes and members and also changed some parts of the implementation, but conceptually the concept is 1:1 like provided by Adam in playground.
Currently the UI works quite well, but the creating of the query string has not been integrated yet.

svn path=/trunk/KDE/kdebase/apps/; revision=1039572
2009-10-23 21:06:33 +00:00
Peter Penz 884b5ad3a9 add A search options widget, which later on will include Adam Kidder's search prototype from playground
svn path=/trunk/KDE/kdebase/apps/; revision=1036776
2009-10-17 19:24:05 +00:00
Peter Penz 5e123c68d7 * move classes for searching into an own folder (new classes will be added soon)
* Postpone the creation of the searchcompleter, until the editor gets focused. This improves the startup time of Dolphin (reading all available tags is an expensive operation).

svn path=/trunk/KDE/kdebase/apps/; revision=1036658
2009-10-17 15:05:50 +00:00
Peter Penz 7d4242d2c7 Fixed compilation issue if HAVE_NEPOMUK is not set. This #ifdef HAVE_NEPOMUK stuff is really a pain :-(
svn path=/trunk/KDE/kdebase/apps/; revision=1036067
2009-10-16 13:45:47 +00:00
Peter Penz 3852f31c30 * improved interface + documentation of MetaDataWidget
* provide a configuration dialog for adjusting the visibility of the meta data

svn path=/trunk/KDE/kdebase/apps/; revision=1036058
2009-10-16 13:01:11 +00:00
Peter Penz 660c1fd767 restore functionality that ratings, comments and tags get stored after the user changed the values
svn path=/trunk/KDE/kdebase/apps/; revision=1034884
2009-10-13 20:48:38 +00:00
Peter Penz eaeee9f7d6 Start of refactoring so that the metadata widget can be moved outside of Dolphin for other applications. The temporary removed code will be integrated again within the next 10 days (-> currently no meta data is shown and cannot be updated).
svn path=/trunk/KDE/kdebase/apps/; revision=1033585
2009-10-10 14:13:50 +00:00