${CMAKE_THREAD_LIBS_INIT}
)
+if(BUILD_JogShuttle)
+ target_link_libraries(kdenlive
+ ${CMAKE_SOURCE_DIR}/lib/libmedia_ctrl.a
+ )
+endif(BUILD_JogShuttle)
+
if(Q_WS_X11)
include_directories(${X11_Xlib_INCLUDE_PATH})
target_link_libraries(kdenlive ${X11_LIBRARIES})
list1[i]->hide();
}
+#ifdef USE_JOGSHUTTLE
int keysCount = JogShuttle::keysCount(device);
for (int i = 0; i < keysCount; i++) {
// according to the user-selected language, so they do not appear in random order.
QMap<QString, QString> mappable_actions(m_mappable_actions);
QList<QString> action_names = mappable_actions.keys();
+ QList<QString>::Iterator iter = action_names.begin();
+ kDebug() << "::::::::::::::::";
+ while (iter != action_names.end()) {
+ kDebug() << *iter;
+ ++iter;
+ }
+
+ kDebug() << "::::::::::::::::";
+
qSort(action_names);
+ iter = action_names.begin();
+ while (iter != action_names.end()) {
+ kDebug() << *iter;
+ ++iter;
+ }
+ kDebug() << "::::::::::::::::";
// Here we need to compute the action_id -> index-in-action_names. We iterate over the
// action_names, as the sorting may depend on the user-language.
if (i < actions_map.size())
button->setCurrentIndex(action_pos[actions_map[i]]);
}
-
+#endif
}
KdenliveSettingsDialog::~KdenliveSettingsDialog() {}
KdenliveSettings::setShuttledevicepaths(devPathList);
QTimer::singleShot(200, this, SLOT(slotUpdateShuttleDevice()));
- kDebug() << "Devices reloded";
+ kDebug() << "Devices reloaded";
#endif //USE_JOGSHUTTLE
}
-set(kdenlive_SRCS
- ${kdenlive_SRCS}
- lib/external/media_ctrl/mediactrl.h
- lib/external/media_ctrl/mediactrl.c
- PARENT_SCOPE
-)
-
-
-# Create a static library from media_ctrl
-#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --std=c99")
-#include_directories(
-# ${CMAKE_BINARY_DIR}
-#)
-#add_library(media_ctrl STATIC
-# mediactrl.h
-# mediactrl.c
-#)
+if(BUILD_JogShuttle)
+ # Create a static library media_ctrl
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --std=c99")
+ include_directories(
+ ${CMAKE_BINARY_DIR}
+ )
+ add_library(media_ctrl STATIC
+ mediactrl.c
+ )
+endif(BUILD_JogShuttle)