]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivesettingsdialog.h
Complete rewrite of the video4linux capture to use MLT, in progress.
[kdenlive] / src / kdenlivesettingsdialog.h
index 2e265e47d7627dcb36c31519aa71c3a8eba9fb87..e305d8701a78d176f433b760fff7e8152870fd45 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <QDialog>
 
+#include <QMap>
 #include <KConfigDialog>
 #include <KProcess>
 
@@ -40,18 +41,18 @@ 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);
@@ -64,9 +65,12 @@ private slots:
     void slotCheckAlsaDriver();
     void slotAddTranscode();
     void slotDeleteTranscode();
+    void slotShuttleModified();
     void slotDialogModified();
     void slotEnableCaptureFolder();
     void slotUpdateHDMIModes();
+    void slotUpdatev4lDevice();
+    void slotUpdatev4lCaptureProfile();
 
 private:
     KPageWidgetItem *m_page1;
@@ -89,14 +93,18 @@ 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();
 
 signals:
     void customChanged();
     void doResetProfile();
-    void updatePreviewSettings();
     void updateCaptureFolder();
 };