]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardmenu.h
Updated DVD wizard (added load/save dvd projects)
[kdenlive] / src / dvdwizardmenu.h
index ef37af245a5444419bcae2b253e68811439cfeab..d1ac8371707eb38cf2b3d85709d0c19ddb584545 100644 (file)
@@ -26,6 +26,7 @@
 #include <QGraphicsTextItem>
 #include <QGraphicsPixmapItem>
 #include <QGraphicsRectItem>
+#include <QDomElement>
 
 #include <KDebug>
 
@@ -56,7 +57,7 @@ class DvdButton : public QGraphicsTextItem
 {
 
 public:
-    DvdButton(const QString & text): QGraphicsTextItem(text), m_target(0), m_command(QString("title 1")) {}
+    DvdButton(const QString & text): QGraphicsTextItem(text), m_target(0), m_command(QString("jump title 1")), m_backToMenu(false) {}
     enum { Type = UserType + 1 };
     void setTarget(int t, QString c) {
         m_target = t;
@@ -68,14 +69,21 @@ public:
     QString command() const {
         return m_command;
     }
+    bool backMenu() const {
+        return m_backToMenu;
+    }
     int type() const {
         // Enable the use of qgraphicsitem_cast with this item.
         return Type;
     }
+    void setBackMenu(bool back) {
+        m_backToMenu = back;
+    }
 
 private:
     int m_target;
     QString m_command;
+    bool m_backToMenu;
 
 protected:
 
@@ -121,6 +129,9 @@ public:
     bool menuMovie() const;
     QString menuMoviePath() const;
     bool isPalMenu() const;
+    void changeProfile(bool isPal);
+    QDomElement toXml() const;
+    void loadXml(QDomElement xml);
 
 private:
     Ui::DvdWizardMenu_UI m_view;
@@ -138,7 +149,6 @@ private slots:
     void buildImage();
     void checkBackground();
     void checkBackgroundType(int ix);
-    void changeProfile(int ix);
     void updatePreview();
     void buttonChanged();
     void addButton();
@@ -146,6 +156,7 @@ private slots:
     void deleteButton();
     void updateColor();
     void updateColor(QColor c);
+    void setBackToMenu(bool backToMenu);
 };
 
 #endif