abstractclipitem.cpp
transitionsettings.cpp
recmonitor.cpp
- jogshuttle.cpp
addtransitioncommand.cpp
edittransitioncommand.cpp
addfoldercommand.cpp
editclipcommand.cpp
)
+if(NO_JOGSHUTTLE)
+ add_definitions(-DNO_JOGSHUTTLE)
+else(NO_JOGSHUTTLE)
+ set(kdenlive_SRCS jogshuttle.cpp ${kdenlive_SRCS})
+endif(NO_JOGSHUTTLE)
+
kde4_add_kcfg_files(kdenlive_SRCS GENERATE_MOC kdenlivesettings.kcfgc )
kde4_add_executable(kdenlive ${kdenlive_SRCS} ${kdenlive_UI})
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
+#ifndef NO_JOGSHUTTLE
#include <linux/input.h>
+#endif /* NO_JOGSHUTTLE */
#include "profilesdialog.h"
#include "kdenlivesettings.h"
QWidget *p5 = new QWidget;
m_configShuttle.setupUi(p5);
+#ifndef NO_JOGSHUTTLE
connect(m_configShuttle.kcfg_enableshuttle, SIGNAL(stateChanged(int)), this, SLOT(slotCheckShuttle(int)));
connect(m_configShuttle.shuttledevicelist, SIGNAL(activated(int)), this, SLOT(slotUpdateShuttleDevice(int)));
slotCheckShuttle(KdenliveSettings::enableshuttle());
+ m_configShuttle.shuttledisabled->hide();
+#else
+ m_configShuttle.kcfg_enableshuttle->hide();
+ m_configShuttle.kcfg_enableshuttle->setDisabled(true);
+#endif /* NO_JOGSHUTTLE */
page5 = addPage(p5, i18n("JogShuttle"), "input-mouse");
QWidget *p6 = new QWidget;
m_configEnv.kcfg_defaultimageapp->setText(service->exec());
}
+#ifndef NO_JOGSHUTTLE
void KdenliveSettingsDialog::slotCheckShuttle(int state) {
m_configShuttle.config_group->setEnabled(state);
if (m_configShuttle.shuttledevicelist->count() == 0) {
//KdenliveSettings::setShuttledevice(device);
m_configShuttle.kcfg_shuttledevice->setText(device);
}
+#endif /* NO_JOGSHUTTLE */
void KdenliveSettingsDialog::rebuildVideo4Commands() {
QString captureCommand;
private slots:
void slotUpdateDisplay();
void rebuildVideo4Commands();
+#ifndef NO_JOGSHUTTLE
void slotCheckShuttle(int state = 0);
void slotUpdateShuttleDevice(int ix = 0);
+#endif /* NO_JOGSHUTTLE */
void slotEditImageApplication();
void slotEditAudioApplication();
void slotEditVideoApplication();
#include "transitionsettings.h"
#include "renderwidget.h"
#include "renderer.h"
+#ifndef NO_JOGSHUTTLE
#include "jogshuttle.h"
+#endif /* NO_JOGSHUTTLE */
#include "clipproperties.h"
#include "wizard.h"
#include "editclipcommand.h"
MainWindow::MainWindow(const QString &MltPath, QWidget *parent)
: KXmlGuiWindow(parent),
- m_activeDocument(NULL), m_activeTimeline(NULL), m_renderWidget(NULL), m_jogProcess(NULL), m_findActivated(false), m_initialized(false) {
+ m_activeDocument(NULL), m_activeTimeline(NULL), m_renderWidget(NULL),
+#ifndef NO_JOGSHUTTLE
+ m_jogProcess(NULL),
+#endif /* NO_JOGSHUTTLE */
+ m_findActivated(false), m_initialized(false) {
setlocale(LC_NUMERIC, "POSIX");
setFont(KGlobalSettings::toolBarFont());
parseProfiles(MltPath);
newFile(false);
}
+#ifndef NO_JOGSHUTTLE
activateShuttleDevice();
+#endif /* NO_JOGSHUTTLE */
projectListDock->raise();
}
m_effectList->reloadEffectList();
}
+#ifndef NO_JOGSHUTTLE
void MainWindow::activateShuttleDevice() {
if (m_jogProcess) delete m_jogProcess;
m_jogProcess = NULL;
break;
}
}
+#endif /* NO_JOGSHUTTLE */
void MainWindow::configureNotifications() {
KNotifyConfigWidget::configure(this);
}
m_buttonAudioThumbs->setChecked(KdenliveSettings::audiothumbnails());
m_buttonVideoThumbs->setChecked(KdenliveSettings::videothumbnails());
+#ifndef NO_JOGSHUTTLE
activateShuttleDevice();
+#endif /* NO_JOGSHUTTLE */
}
class RecMonitor;
class CustomTrackView;
class RenderWidget;
+#ifndef NO_JOGSHUTTLE
class JogShuttle;
+#endif /* NO_JOGSHUTTLE */
class DocClipBase;
class Render;
RenderWidget *m_renderWidget;
+#ifndef NO_JOGSHUTTLE
JogShuttle *m_jogProcess;
+#endif /* NO_JOGSHUTTLE */
KRecentFilesAction *m_fileOpenRecent;
KAction *m_projectSearch;
void readOptions();
void saveOptions();
+#ifndef NO_JOGSHUTTLE
void activateShuttleDevice();
void slotShuttleAction(int code);
+#endif /* NO_JOGSHUTTLE */
void connectDocumentInfo(KdenliveDoc *doc);
void findAhead();
void doOpenFile(const KUrl &url, KAutoSaveFile *stale);
void slotAddCustomEffect(QAction *result);
void slotAddTransition(QAction *result);
void slotAddProjectClip(KUrl url);
+#ifndef NO_JOGSHUTTLE
void slotShuttleButton(int code);
+#endif /* NO_JOGSHUTTLE */
void slotShowClipProperties(DocClipBase *clip);
void slotActivateEffectStackView();
void slotActivateTransitionView();
</widget>
</item>
<item row="1" column="0" >
+ <widget class="QLabel" name="shuttledisabled" >
+ <property name="text" >
+ <string>Jog Shuttle device disabled.</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" >
<widget class="QGroupBox" name="config_group" >
<property name="enabled" >
<bool>false</bool>
</layout>
</widget>
</item>
- <item row="2" column="0" >
+ <item row="3" column="0" >
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>