┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.h
diff options
context:
space:
mode:
authorOscar Blumberg <[email protected]>2007-02-22 16:45:53 +0000
committerOscar Blumberg <[email protected]>2007-02-22 16:45:53 +0000
commitcefcbf0ef0e960db68021715d1c600b901be8501 (patch)
treeb225829718a48f7920fb14578460fcdb6aae242a /src/infosidebarpage.h
parentbf50ced73473a225d681de6b62bc05571d969664 (diff)
* 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
Diffstat (limited to 'src/infosidebarpage.h')
-rw-r--r--src/infosidebarpage.h26
1 files changed, 23 insertions, 3 deletions
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<QLabel> m_infoWidgets; // TODO: use children() from QObject instead
+ QString m_infoLines;
+ QLabel* m_infos;
KVBox* m_actionBox;
Q3PtrList<QWidget> m_actionWidgets; // TODO: use children() from QObject instead
Q3ValueVector<KDEDesktopMimeType::Service> m_actionsVector;
+
+ QLabel* m_annotationLabel;
+ QPushButton* m_annotationButton;//Move to sthing sexy visually
+ MetadataLoader* m_metadata;
};
// TODO #1: move to SidebarPage?