]> git.sesse.net Git - kdenlive/blobdiff - src/titledocument.h
Remove problematic character in ui file
[kdenlive] / src / titledocument.h
index 5fcc3d0350d794684aeab2e358746f8e309ef479..19c1b9dbbc8829383d6f607a57706db880949e04 100644 (file)
@@ -16,6 +16,9 @@
  ***************************************************************************/
 #ifndef TITLEDOCUMENT_H
 #define TITLEDOCUMENT_H
+
+#include <QDomDocument>
+
 #include <KUrl>
 
 class QGraphicsScene;
@@ -28,6 +31,12 @@ public:
     void setScene(QGraphicsScene* scene);
     bool saveDocument(const KUrl& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
     int loadDocument(const KUrl& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
+    QDomDocument xml(QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
+    int loadFromXml(QDomDocument doc, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
+    /** \brief Get the background color (incl. alpha) from the document, if possibly
+     * \returns The background color of the document, inclusive alpha. If none found, returns (0,0,0,0) */
+    QColor getBackgroundColor();
+
 private:
     QString colorToString(const QColor&);
     QString rectFToString(const QRectF&);