]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanelcontent.h
Use KFileMetaDataWidget from kdelibs. Still open: Provide dialog which wraps KFileMet...
[dolphin.git] / src / panels / information / informationpanelcontent.h
index b39dcc70be18815c5dec418fb2eb3f4963699d38..92a1c62d7bd849e816d6f4469e7a792694092d9c 100644 (file)
 #include <kurl.h>
 #include <kvbox.h>
 
+class KFileItem;
+class KFileMetaDataWidget;
+class KSeparator;
+class MetaTextLabel;
 class PhononWidget;
 class PixmapViewer;
-class MetaDataWidget;
-class MetaTextLabel;
 class QPixmap;
 class QString;
-class KFileItem;
-class KSeparator;
 class QLabel;
 class QScrollArea;
 
@@ -52,7 +52,7 @@ public:
     /**
      * Shows the meta information for the item \p item.
      * The preview of the item is generated asynchronously,
-     * the other meta informations are fetched synchronously.
+     * the other meta information are fetched synchronously.
      */
     void showItem(const KFileItem& item);
 
@@ -67,6 +67,9 @@ public:
      */
     void configureSettings();
 
+signals:
+    void urlActivated( const KUrl& url );
+
 protected:
     /** @see QObject::eventFilter() */
     virtual bool eventFilter(QObject* obj, QEvent* event);
@@ -110,17 +113,22 @@ 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;
 
     bool m_pendingPreview;
     QTimer* m_outdatedPreviewTimer;
-    QLabel* m_nameLabel;
 
     PixmapViewer* m_preview;
-    KSeparator* m_previewSeparator;
     PhononWidget* m_phononWidget;
-    MetaDataWidget* m_metaDataWidget;
+    QLabel* m_nameLabel;
+    KFileMetaDataWidget* m_metaDataWidget;
     QScrollArea* m_metaDataArea;
 };