svn path=/trunk/kdenlive/; revision=4124
LINK_LIBRARIES(
${LIBMLT_LIBRARY}
${LIBMLTPLUS_LIBRARY}
LINK_LIBRARIES(
${LIBMLT_LIBRARY}
${LIBMLTPLUS_LIBRARY}
)
set(kdenlive_render_SRCS
)
set(kdenlive_render_SRCS
add_subdirectory( widgets )
add_subdirectory( mimetypes )
add_subdirectory( widgets )
add_subdirectory( mimetypes )
-find_package(Nepomuk REQUIRED)
+find_package(Nepomuk)
+
+if (Nepomuk_FOUND)
+ INCLUDE_DIRECTORIES(NEPOMUK_INCLUDES )
+ set( optional_libs NEPOMUK_LIBRARIES )
+ add_definitions(-DNEPOMUK)
+endif (Nepomuk_FOUND)
+
if (APPLE)
find_package(OpenGL)
if (APPLE)
find_package(OpenGL)
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/widgets
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/widgets
)
LINK_LIBRARIES(
${LIBMLT_LIBRARY}
${LIBMLTPLUS_LIBRARY}
)
LINK_LIBRARIES(
${LIBMLT_LIBRARY}
${LIBMLTPLUS_LIBRARY}
kde4_add_ui_files(kdenlive_UI
widgets/timeline_ui.ui
widgets/monitor_ui.ui
kde4_add_ui_files(kdenlive_UI
widgets/timeline_ui.ui
widgets/monitor_ui.ui
${KDE4_KNEWSTUFF2_LIBS}
${LIBMLTPLUS_LIBRARY}
${LIBMLT_LIBRARY}
${KDE4_KNEWSTUFF2_LIBS}
${LIBMLTPLUS_LIBRARY}
${LIBMLT_LIBRARY}
${KDE4_KNOTIFYCONFIG_LIBRARY}
${KDE4_KROSSUI_LIBS}
)
${KDE4_KNOTIFYCONFIG_LIBRARY}
${KDE4_KROSSUI_LIBS}
)
#include <KMessageBox>
#include <KIO/NetAccess>
#include <KFileItem>
#include <KMessageBox>
#include <KIO/NetAccess>
#include <KFileItem>
#include <nepomuk/global.h>
#include <nepomuk/resourcemanager.h>
//#include <nepomuk/tag.h>
#include <nepomuk/global.h>
#include <nepomuk/resourcemanager.h>
//#include <nepomuk/tag.h>
#include <QMouseEvent>
#include <QStylePainter>
#include <QMouseEvent>
#include <QStylePainter>
m_listViewDelegate = new ItemDelegate(m_listView);
m_listView->setItemDelegate(m_listViewDelegate);
m_listViewDelegate = new ItemDelegate(m_listView);
m_listView->setItemDelegate(m_listViewDelegate);
if (KdenliveSettings::activate_nepomuk()) {
Nepomuk::ResourceManager::instance()->init();
if (!Nepomuk::ResourceManager::instance()->initialized()) {
if (KdenliveSettings::activate_nepomuk()) {
Nepomuk::ResourceManager::instance()->init();
if (!Nepomuk::ResourceManager::instance()->initialized()) {
KdenliveSettings::setActivate_nepomuk(false);
}
}
KdenliveSettings::setActivate_nepomuk(false);
}
}
}
ProjectList::~ProjectList()
}
ProjectList::~ProjectList()
m_listView->blockSignals(true);
clip->setText(1, properties.value("description"));
m_listView->blockSignals(false);
m_listView->blockSignals(true);
clip->setText(1, properties.value("description"));
m_listView->blockSignals(false);
if (KdenliveSettings::activate_nepomuk() && (type == AUDIO || type == VIDEO || type == AV || type == IMAGE || type == PLAYLIST)) {
// Use Nepomuk system to store clip description
Nepomuk::Resource f(clip->clipUrl().path());
f.setDescription(properties.value("description"));
}
if (KdenliveSettings::activate_nepomuk() && (type == AUDIO || type == VIDEO || type == AV || type == IMAGE || type == PLAYLIST)) {
// Use Nepomuk system to store clip description
Nepomuk::Resource f(clip->clipUrl().path());
f.setDescription(properties.value("description"));
}
emit projectModified();
}
}
emit projectModified();
}
}
item->setIcon(0, QPixmap(cachedPixmap));
}
}
item->setIcon(0, QPixmap(cachedPixmap));
}
}
if (!url.isEmpty() && KdenliveSettings::activate_nepomuk()) {
// if file has Nepomuk comment, use it
Nepomuk::Resource f(url.path());
if (!url.isEmpty() && KdenliveSettings::activate_nepomuk()) {
// if file has Nepomuk comment, use it
Nepomuk::Resource f(url.path());
if (!annotation.isEmpty()) item->setText(1, annotation);
item->setText(2, QString::number(f.rating()));
}
if (!annotation.isEmpty()) item->setText(1, annotation);
item->setText(2, QString::number(f.rating()));
}
// Add cut zones
QList <QPoint> cuts = clip->cutZones();
if (!cuts.isEmpty()) {
// Add cut zones
QList <QPoint> cuts = clip->cutZones();
if (!cuts.isEmpty()) {
#include <KTreeWidgetSearchLine>
#include <KUrl>
#include <KTreeWidgetSearchLine>
#include <KUrl>
#include <nepomuk/kratingpainter.h>
#include <nepomuk/resource.h>
#include <nepomuk/kratingpainter.h>
#include <nepomuk/resource.h>
#include "definitions.h"
#include "timecode.h"
#include "kdenlivesettings.h"
#include "definitions.h"
#include "timecode.h"
#include "kdenlivesettings.h"
if (option.state & (QStyle::State_Selected)) {
painter->fillRect(r1, option.palette.highlight());
}
if (option.state & (QStyle::State_Selected)) {
painter->fillRect(r1, option.palette.highlight());
}
KRatingPainter::paintRating(painter, r1, Qt::AlignCenter, index.data().toInt());
KRatingPainter::paintRating(painter, r1, Qt::AlignCenter, index.data().toInt());
} else {
QItemDelegate::paint(painter, option, index);
}
} else {
QItemDelegate::paint(painter, option, index);
}