X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/40896c02d996f69f7bf4e8adebe28acdbff8d350..76a46fd9094b17eb99e8a42cca8562fdc0b3814c:/src/panels/information/informationpanelcontent.h diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h index ca9afab09..8daeb95b0 100644 --- a/src/panels/information/informationpanelcontent.h +++ b/src/panels/information/informationpanelcontent.h @@ -32,6 +32,7 @@ class PhononWidget; class PixmapViewer; class PlacesItemModel; class QPixmap; +class QDialogButtonBox; class QString; class QLabel; class QScrollArea; @@ -40,13 +41,9 @@ namespace KIO { class PreviewJob; } -#ifndef HAVE_BALOO -class KFileMetaDataWidget; -#else namespace Baloo { class FileMetaDataWidget; } -#endif /** * @brief Manages the widgets that display the meta information @@ -68,20 +65,39 @@ public: void showItem(const KFileItem& item); /** - * Shows the meta information for the items \p items. + * Shows the meta information for the items \p items and its preview */ void showItems(const KFileItemList& items); + KFileItemList items(); + /** - * Opens a menu which allows to configure which meta information - * should be shown. - * - * TODO: Move this code to the class InformationPanel + * Refreshes the preview display, hiding it if needed + */ + void refreshPreview(); + + /** + * Switch the metadatawidget into configuration mode + */ + void configureShownProperties(); + + /* + * Set the auto play media mode for the file previewed + * Eventually starting media playback when turning it on + * But not stopping it when turning it off */ - void configureSettings(const QList& customContextMenuActions, const QPointF& pos); + void setPreviewAutoPlay(bool autoPlay); signals: void urlActivated( const QUrl& url ); + void configurationFinished(); + +public slots: + /** + * Is invoked after the file meta data configuration dialog has been + * closed and refreshes the displayed meta data by the panel. + */ + void refreshMetaData(); protected: /** @see QObject::eventFilter() */ @@ -108,12 +124,6 @@ private slots: void slotHasVideoChanged(bool hasVideo); - /** - * Is invoked after the file meta data configuration dialog has been - * closed and refreshes the visibility of the meta data. - */ - void refreshMetaData(); - private: /** * Sets the text for the label \a m_nameLabel and assures that the @@ -129,6 +139,11 @@ private: */ void adjustWidgetSizes(int width); + /** + * Refreshes the image in the PixmapViewer + */ + void refreshPixmapView(); + private: KFileItem m_item; @@ -138,14 +153,13 @@ private: PixmapViewer* m_preview; PhononWidget* m_phononWidget; QLabel* m_nameLabel; -#ifndef HAVE_BALOO - KFileMetaDataWidget* m_metaDataWidget; -#else Baloo::FileMetaDataWidget* m_metaDataWidget; -#endif QScrollArea* m_metaDataArea; + QLabel* m_configureLabel; + QDialogButtonBox* m_configureButtons; PlacesItemModel* m_placesItemModel; + bool m_isVideo; }; #endif // INFORMATIONPANELCONTENT_H