From eaeee9f7d68d120b1982f24e73d8183db3418261 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 10 Oct 2009 14:13:50 +0000 Subject: 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 --- src/panels/information/metadatawidget.h | 58 +++++++-------------------------- 1 file changed, 12 insertions(+), 46 deletions(-) (limited to 'src/panels/information/metadatawidget.h') diff --git a/src/panels/information/metadatawidget.h b/src/panels/information/metadatawidget.h index b1e774492..1a84dab0d 100644 --- a/src/panels/information/metadatawidget.h +++ b/src/panels/information/metadatawidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007 by Sebastian Trueg * + * Copyright (C) 2009 by Peter Penz * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -17,61 +17,27 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ -#ifndef METADATA_WIDGET_H -#define METADATA_WIDGET_H +#ifndef METADATAWIDGET_H +#define METADATAWIDGET_H -#include +#include -#include - -namespace Nepomuk { - class Tag; -} +class KFileItem; +class KFileItemList; +/** + * @brief + */ class MetaDataWidget : public QWidget { Q_OBJECT public: - MetaDataWidget(QWidget* parent = 0); + explicit MetaDataWidget(QWidget* parent = 0); virtual ~MetaDataWidget(); - /** - * \return true if the KMetaData system could be found and initialized. - * false if KMetaData was not available at compile time or if it has not - * been initialized properly. - */ - static bool metaDataAvailable(); - - void setRatingVisible(bool visible); - bool isRatingVisible() const; - - void setCommentVisible(bool visible); - bool isCommentVisible() const; - - void setTagsVisible(bool visible); - bool areTagsVisible() const; - -public Q_SLOTS: - void setFile(const KUrl& url); - void setFiles(const KUrl::List& urls); - -signals: - /** - * This signal gets emitted if the metadata for the set file was changed on the - * outside. NOT IMPLEMENTED YET. - */ - void metaDataChanged(); - -private Q_SLOTS: - void slotCommentChanged(const QString&); - void slotRatingChanged(unsigned int rating); - void metadataUpdateDone(); - void slotTagClicked( const Nepomuk::Tag& ); - void slotLoadingFinished(); - -protected: - bool eventFilter(QObject* obj, QEvent* event); + void setItem(const KFileItem& item); + void setItems(const KFileItemList& items); private: class Private; -- cgit v1.3.1