]> git.sesse.net Git - kdenlive/blobdiff - src/profilesdialog.h
Add recursive search when opening a document with missing clip, heavily based on...
[kdenlive] / src / profilesdialog.h
index 2e0d032b10207d42bb27415e964fdec382628383..00b2369425873e2b63afdc46864e8cae5cc1794f 100644 (file)
@@ -32,21 +32,35 @@ class ProfilesDialog : public QDialog {
 public:
     ProfilesDialog(QWidget * parent = 0);
 
-    static QStringList getProfileNames();
+    void fillList(const QString selectedProfile = QString());
     static QString getProfileDescription(QString name);
     static QMap< QString, QString > getSettingsForProfile(const QString profileName);
     static QMap< QString, QString > getSettingsFromFile(const QString path);
     static QString getPathFromDescription(const QString profileDesc);
     static MltVideoProfile getVideoProfile(QString name);
+    static QMap <QString, QString> getProfilesInfo();
+
+protected:
+    virtual void closeEvent(QCloseEvent *event);
 
 private slots:
     void slotUpdateDisplay();
+    void slotCreateProfile();
+    bool slotSaveProfile();
+    void slotDeleteProfile();
+    void slotSetDefaultProfile();
+    void slotProfileEdited();
+    virtual void accept();
 
 private:
     Ui::ProfilesDialog_UI m_view;
     QStringList m_mltProfilesList;
     QStringList m_customProfilesList;
+    int m_selectedProfileIndex;
+    bool m_profileIsModified;
     bool m_isCustomProfile;
+    void saveProfile(const QString path);
+    bool askForSave();
 };