]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardmenu.h
Fix handling of several movies in dvd, improve chapters handling
[kdenlive] / src / dvdwizardmenu.h
index ef37af245a5444419bcae2b253e68811439cfeab..68ba88fdc0f664ad1e5a721965e0690eb5e7e7ac 100644 (file)
@@ -56,7 +56,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 +68,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:
 
@@ -146,6 +153,7 @@ private slots:
     void deleteButton();
     void updateColor();
     void updateColor(QColor c);
+    void setBackToMenu(bool backToMenu);
 };
 
 #endif