]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivesettingsdialog.h
jogshuttle: make shuttle device selection more straightforward
[kdenlive] / src / kdenlivesettingsdialog.h
index b41e691dcb0e8d23bd31a3ad8bb75a9c36ba5928..3a9c1c7b01032c98a72146a7379b2aac29712cf7 100644 (file)
@@ -21,8 +21,7 @@
 #ifndef KDENLIVESETTINGSDIALOG_H
 #define KDENLIVESETTINGSDIALOG_H
 
-#include <QDialog>
-
+#include <QMap>
 #include <KConfigDialog>
 #include <KProcess>
 
@@ -40,31 +39,47 @@ class KdenliveSettingsDialog : public KConfigDialog
     Q_OBJECT
 
 public:
-    KdenliveSettingsDialog(QWidget * parent = 0);
+    KdenliveSettingsDialog(const QMap<QString, QString>& mappable_actions, QWidget * parent = 0);
     ~KdenliveSettingsDialog();
     void showPage(int page, int option);
     void checkProfile();
 
 protected slots:
     void updateSettings();
+    void updateWidgets();
     virtual bool hasChanged();
 
 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();
     void slotReadAudioDevices();
-    void slotUpdateRmdRegionStatus();
+    void slotUpdateGrabRegionStatus();
     void slotCheckAlsaDriver();
     void slotAddTranscode();
     void slotDeleteTranscode();
+    /** @brief Update current transcoding profile. */
+    void slotUpdateTranscodingProfile();
+    /** @brief Enable / disable the update profile button. */
+    void slotEnableTranscodeUpdate();
+    /** @brief Update display of current transcoding profile parameters. */
+    void slotSetTranscodeProfile();
+    void slotShuttleModified();
     void slotDialogModified();
+    void slotEnableCaptureFolder();
+    void slotUpdatev4lDevice();
+    void slotUpdatev4lCaptureProfile();
+    void slotManageEncodingProfile();
+    void slotUpdateDecklinkProfile(int ix = 0);
+    void slotUpdateProxyProfile(int ix = 0);
+    void slotUpdateV4lProfile(int ix = 0);
+    void slotUpdateGrabProfile(int ix = 0);
+    void slotEditVideo4LinuxProfile();
+    void slotReloadBlackMagic();
+    void slotReloadShuttleDevices();
 
 private:
     KPageWidgetItem *m_page1;
@@ -87,14 +102,19 @@ private:
     QString m_defaultPath;
     KProcess m_readProcess;
     bool m_modified;
+    bool m_shuttleModified;
+    QMap<QString, QString> m_mappable_actions;
+    QVector<KComboBox*> m_shuttle_buttons;
     void initDevices();
     void loadTranscodeProfiles();
     void saveTranscodeProfiles();
+    void loadCurrentV4lProfileInfo();
+    void saveCurrentV4lProfile();
+    void loadEncodingProfiles();
 
 signals:
     void customChanged();
     void doResetProfile();
-    void updatePreviewSettings();
     void updateCaptureFolder();
 };