]> git.sesse.net Git - kdenlive/blobdiff - src/profilesdialog.h
Fix up a busted preprocessor check [PATCH by Ray Lehtiniemi]
[kdenlive] / src / profilesdialog.h
index 8c5c67218b9b8757d85456175c55a58702b85e6e..04dbe8dc72c07ad0af0cbbd9bf0905033534025d 100644 (file)
 #ifndef PROFILESDIALOG_H
 #define PROFILESDIALOG_H
 
-#include <QDialog>
 
+#include "definitions.h"
 #include "ui_profiledialog_ui.h"
 
-class ProfilesDialog : public QDialog
-{
-  Q_OBJECT
-  
-  public:
+class ProfilesDialog : public QDialog {
+    Q_OBJECT
+
+public:
     ProfilesDialog(QWidget * parent = 0);
 
-  static QStringList getProfileNames();
-  static QMap< QString, QString > getSettingsForProfile(const QString profileName);
-  static QMap< QString, QString > getSettingsFromFile(const QString path);
+    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:
+private slots:
     void slotUpdateDisplay();
+    void slotCreateProfile();
+    bool slotSaveProfile();
+    void slotDeleteProfile();
+    void slotSetDefaultProfile();
+    void slotProfileEdited();
+    virtual void accept();
 
-  private:
+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();
 };