]> git.sesse.net Git - kdenlive/blobdiff - src/profilesdialog.h
Make renderjobs code a bit easier to read, fix detection of broken render scripts
[kdenlive] / src / profilesdialog.h
index ada0736a6fc0642d92ca16085f7b91a1b961bae1..d9f1c0d77898b3bca8ac34999ae791a84c5a6a83 100644 (file)
@@ -31,6 +31,8 @@ class ProfilesDialog : public QDialog
 
 public:
     ProfilesDialog(QWidget * parent = 0);
+    /** @brief Using this constructor, the dialog only allows editing one profile. */
+    ProfilesDialog(QString profilePath, QWidget * parent = 0);
 
     void fillList(const QString selectedProfile = QString());
     static QMap< QString, QString > getSettingsForProfile(const QString profileName);
@@ -65,7 +67,7 @@ public:
      *  @param profile The profile that gives width & height
      *  @param eval The string to be evaluated, for example: "%width / 2"
      *  @return the evaluated value */
-    static double getStringEval(const MltVideoProfile &profile, QString eval);
+    static double getStringEval(const MltVideoProfile &profile, QString eval, QPoint frameSize = QPoint());
 
     /** @brief Get the descriptive text for given colorspace code (defined by MLT)
      *  @param colorspace An int as defined in mlt_profile.h
@@ -81,7 +83,7 @@ protected:
     virtual void closeEvent(QCloseEvent *event);
 
 private slots:
-    void slotUpdateDisplay();
+    void slotUpdateDisplay(QString currentProfile = QString());
     void slotCreateProfile();
     bool slotSaveProfile();
     void slotDeleteProfile();
@@ -94,6 +96,8 @@ private:
     int m_selectedProfileIndex;
     bool m_profileIsModified;
     bool m_isCustomProfile;
+    /** @brief If we are in single profile editing, should contain the path for this profile. */
+    QString m_customProfilePath;
     void saveProfile(const QString path);
     bool askForSave();
 };