X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d324e790d62c8a341abd06e845f8fe8d64aa8ef3..39f89141b06c:/src/panels/information/informationpanelcontent.h diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h index 923bb762f..f918b8582 100644 --- a/src/panels/information/informationpanelcontent.h +++ b/src/panels/information/informationpanelcontent.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Peter Penz * + * Copyright (C) 2009-2010 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 * @@ -20,16 +20,13 @@ #ifndef INFORMATIONPANELCONTENT_H #define INFORMATIONPANELCONTENT_H -#include - #include +#include #include #include -class KFileItem; -class KMetaDataWidget; -class KSeparator; -class MetaTextLabel; +class KFileItemList; +class KFileMetaDataWidget; class PhononWidget; class PixmapViewer; class QPixmap; @@ -41,7 +38,7 @@ class QScrollArea; * @brief Manages the widgets that display the meta information * for file items of the Information Panel. */ -class InformationPanelContent : public Panel +class InformationPanelContent : public QWidget { Q_OBJECT @@ -96,6 +93,12 @@ private slots: void slotPlayingStarted(); void slotPlayingStopped(); + /** + * Is invoked after the file meta data configuration dialog has been + * closed and refreshes the visibility of the meta data. + */ + void refreshMetaData(); + private: /** * Checks whether the an URL is repesented by a place. If yes, @@ -113,6 +116,12 @@ private: */ void setNameLabelText(const QString& text); + /** + * Adjusts the sizes of the widgets dependent on the available + * width given by \p width. + */ + void adjustWidgetSizes(int width); + private: KFileItem m_item; @@ -122,7 +131,7 @@ private: PixmapViewer* m_preview; PhononWidget* m_phononWidget; QLabel* m_nameLabel; - KMetaDataWidget* m_metaDataWidget; + KFileMetaDataWidget* m_metaDataWidget; QScrollArea* m_metaDataArea; };