From cefcbf0ef0e960db68021715d1c600b901be8501 Mon Sep 17 00:00:00 2001 From: Oscar Blumberg Date: Thu, 22 Feb 2007 16:45:53 +0000 Subject: * Starts to add Nepomuk supports to dolphin (currently, only annotations are supported) * Little changes in InfoSidebarPage (no more multiple label for infos & Q3Layout>QLayout) * Support infos for multiple files (only total size, what else ?) svn path=/trunk/KDE/kdebase/apps/; revision=636272 --- src/infosidebarpage.h | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index ad1e71357..cebb7f4aa 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -48,6 +48,7 @@ class QLabel; class KVBox; class Q3Grid; class PixmapViewer; +class MetadataLoader; /** * @brief Prototype for a information sidebar. @@ -113,6 +114,12 @@ private slots: */ void startService(int index); + /** + * Opens a dialog to change the annotation of the currently selected + * file(s). + */ + void changeAnnotation(); + private: /** * Connects to signals from the currently active Dolphin view to get @@ -149,6 +156,16 @@ private: */ void insertActions(); + /** + * Show the annotation of a file in the sidebar. + */ + void showAnnotation(const KUrl& file); + + /** + * Show the annotations of multiple files in the sidebar. + */ + void showAnnotations(const KUrl::List& files); + bool m_multipleSelection; bool m_pendingPreview; QTimer* m_timer; @@ -158,13 +175,16 @@ private: PixmapViewer* m_preview; QLabel* m_name; - int m_currInfoLineIdx; - Q3Grid* m_infoGrid; - Q3PtrList m_infoWidgets; // TODO: use children() from QObject instead + QString m_infoLines; + QLabel* m_infos; KVBox* m_actionBox; Q3PtrList m_actionWidgets; // TODO: use children() from QObject instead Q3ValueVector m_actionsVector; + + QLabel* m_annotationLabel; + QPushButton* m_annotationButton;//Move to sthing sexy visually + MetadataLoader* m_metadata; }; // TODO #1: move to SidebarPage? -- cgit v1.3