+ m_view.marker_save->setIcon(KIcon("document-save-as"));
+ m_view.marker_save->setToolTip(i18n("Save markers"));
+ m_view.marker_load->setIcon(KIcon("document-open"));
+ m_view.marker_load->setToolTip(i18n("Load markers"));
+ m_view.analysis_delete->setIcon(KIcon("trash-empty"));
+ m_view.analysis_delete->setToolTip(i18n("Delete analysis data"));
+ m_view.analysis_load->setIcon(KIcon("document-open"));
+ m_view.analysis_load->setToolTip(i18n("Load analysis data"));
+ m_view.analysis_save->setIcon(KIcon("document-save-as"));
+ m_view.analysis_save->setToolTip(i18n("Save analysis data"));
+
+ // Check for Nepomuk metadata
+#ifdef USE_NEPOMUK
+ #if KDE_IS_VERSION(4,6,0)
+ if (!url.isEmpty()) {
+ Nepomuk::ResourceManager::instance()->init();
+ Nepomuk::Resource res( url.path() );
+ // Check if file has a license
+ if (res.hasProperty(Nepomuk::Vocabulary::NIE::license())) {
+ QString ltype = res.property(Nepomuk::Vocabulary::NIE::licenseType()).toString();
+ m_view.clip_license->setText(i18n("License: %1", res.property(Nepomuk::Vocabulary::NIE::license()).toString()));
+ if (ltype.startsWith("http")) {
+ m_view.clip_license->setUrl(ltype);
+ connect(m_view.clip_license, SIGNAL(leftClickedUrl(QString)), this, SLOT(slotOpenUrl(QString)));
+ }
+ }
+ else m_view.clip_license->setHidden(true);
+ }
+ else m_view.clip_license->setHidden(true);
+ #else
+ m_view.clip_license->setHidden(true);
+ #endif
+#else
+ #ifdef USE_NEPOMUKCORE
+
+ if (!url.isEmpty()) {
+ Nepomuk2::ResourceManager::instance()->init();
+ Nepomuk2::Resource res( url.path() );
+ // Check if file has a license
+ if (res.hasProperty(Nepomuk2::Vocabulary::NIE::license())) {
+ QString ltype = res.property(Nepomuk2::Vocabulary::NIE::licenseType()).toString();
+ m_view.clip_license->setText(i18n("License: %1", res.property(Nepomuk2::Vocabulary::NIE::license()).toString()));
+ if (ltype.startsWith("http")) {
+ m_view.clip_license->setUrl(ltype);
+ connect(m_view.clip_license, SIGNAL(leftClickedUrl(QString)), this, SLOT(slotOpenUrl(QString)));
+ }
+ }
+ else m_view.clip_license->setHidden(true);
+ }
+ else m_view.clip_license->setHidden(true);
+ #else
+ m_view.clip_license->setHidden(true);
+ #endif
+#endif
+
+ slotFillMarkersList(m_clip);
+ slotUpdateAnalysisData(m_clip);
+