]> git.sesse.net Git - kdenlive/commitdiff
Start improving title creator
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 31 Mar 2008 10:20:40 +0000 (10:20 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 31 Mar 2008 10:20:40 +0000 (10:20 +0000)
svn path=/branches/KDE4/; revision=2150

src/graphicsscenerectmove.cpp
src/graphicsscenerectmove.h
src/projectlist.cpp
src/renderer.cpp
src/renderer.h
src/titlewidget.cpp
src/titlewidget.h
src/widgets/titlewidget_ui.ui

index d0ceb8c8c483b17d9e351a3faa76cc360aa27a02..98c63d7c959bed02a4b438ec3125e4e9796d3c58 100644 (file)
@@ -1,77 +1,84 @@
-#include "graphicsscenerectmove.h"
+
 #include <KDebug>
 #include <QGraphicsSceneMouseEvent>
 #include <QGraphicsRectItem>
 #include <QGraphicsView>
 #include <QCursor>
+#include <QList>
+
+#include "graphicsscenerectmove.h"
 
-QGraphicsItem* selected = NULL;
-int button = 0;
-int resizeMode = -1;
-enum resizeMode {NoResize, TopLeft, BottomLeft, TopRight, BottomRight, Left, Right, Up, Down};
-GraphicsSceneRectMove::GraphicsSceneRectMove(QObject *parent): QGraphicsScene(parent) {
+GraphicsSceneRectMove::GraphicsSceneRectMove(QObject *parent): QGraphicsScene(parent), m_selectedItem(NULL), resizeMode(NoResize) {
     //grabMouse();
     zoom = 1.0;
 }
 
-void GraphicsSceneRectMove::mouseMoveEvent(QGraphicsSceneMouseEvent* e) {
-
-    if (selected && selected->type() == 3 && e->buttons() & Qt::LeftButton) {
-
-        QGraphicsRectItem *gi = (QGraphicsRectItem*)selected;
-        QRectF newrect = gi->rect();
-        QPointF newpoint = e->scenePos();
-        newpoint -= selected->scenePos();
-        switch (resizeMode) {
-        case TopLeft:
-            newrect.setTopLeft(newpoint);
-            break;
-        case BottomLeft:
-            newrect.setBottomLeft(newpoint);
-            break;
-        case TopRight:
-            newrect.setTopRight(newpoint);
-            break;
-        case BottomRight:
-            newrect.setBottomRight(newpoint);
-            break;
-        case Left:
-            newrect.setLeft(newpoint.x());
-            break;
-        case Right:
-            newrect.setRight(newpoint.x());
-            break;
-        case Up:
-            newrect.setTop(newpoint.y());
-            break;
-        case Down:
-            newrect.setBottom(newpoint.y());
-            break;
+//virtual
+void GraphicsSceneRectMove::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e) {
+    QPointF p = e->scenePos();
+    p += QPoint(-2, -2);
+    resizeMode = NoResize;
+    m_selectedItem = NULL;
+    QGraphicsItem* g = items(QRectF(p , QSizeF(4, 4)).toRect()).at(0);
+    if (g) {
+        if (g->type() == 8) {
+            QGraphicsTextItem *t = static_cast<QGraphicsTextItem *>(g);
+            t->setTextInteractionFlags(Qt::TextEditorInteraction);
         }
-
-        gi->setRect(newrect);
-        gi->setPos(selected->scenePos());
     }
+    QGraphicsScene::mouseDoubleClickEvent(e);
+}
 
+void GraphicsSceneRectMove::mousePressEvent(QGraphicsSceneMouseEvent* e) {
     QPointF p = e->scenePos();
     p += QPoint(-2, -2);
     resizeMode = NoResize;
-    selected = NULL;
-    foreach(QGraphicsItem* g, items(QRectF(p , QSizeF(4, 4)).toRect())) {
-
-        if (g->type() == 3) {
-
-            QGraphicsRectItem *gi = (QGraphicsRectItem*)g;
+    QList <QGraphicsItem *> list = items(QRectF(p , QSizeF(4, 4)).toRect());
+    QGraphicsItem *item = NULL;
+    bool hasSelected = false;
+    foreach(QGraphicsItem* g, list) {
+        // check is there is a selected item in list
+        if (g->zValue() > -1000 && g->isSelected()) {
+            hasSelected = true;
+            item = g;
+            break;
+        }
+    }
+    if (item == NULL) {
+        if (m_selectedItem && m_selectedItem->type() == 8) {
+            // disable text editing
+            QGraphicsTextItem *t = static_cast<QGraphicsTextItem *>(m_selectedItem);
+            t->setTextInteractionFlags(Qt::NoTextInteraction);
+        }
+        m_selectedItem = NULL;
+        foreach(QGraphicsItem* g, list) {
+            if (g->zValue() > -1000) {
+                item = g;
+                break;
+            }
+        }
+    }
+    if (item != NULL) {
+        m_clickPoint = e->scenePos();
+        m_selectedItem = item;
+        if (item->type() == 8) {
+            QGraphicsTextItem *t = static_cast<QGraphicsTextItem *>(item);
+            if (t->textInteractionFlags() == Qt::TextEditorInteraction) {
+                QGraphicsScene::mousePressEvent(e);
+                return;
+            }
+            t->setTextInteractionFlags(Qt::NoTextInteraction);
+        } else if (item->type() == 3) {
+            QGraphicsRectItem *gi = (QGraphicsRectItem*)item;
             QRectF r = gi->rect();
             r.translate(gi->scenePos());
-
-            if ((r.toRect().topLeft() -= e->scenePos().toPoint()).manhattanLength() < 3) {
+            if ((r.toRect().topLeft() - e->scenePos().toPoint()).manhattanLength() < 6) {
                 resizeMode = TopLeft;
-            } else if ((r.toRect().bottomLeft() -= e->scenePos().toPoint()).manhattanLength() < 3) {
+            } else if ((r.toRect().bottomLeft() - e->scenePos().toPoint()).manhattanLength() < 6) {
                 resizeMode = BottomLeft;
-            } else if ((r.toRect().topRight() -= e->scenePos().toPoint()).manhattanLength() < 3) {
+            } else if ((r.toRect().topRight() - e->scenePos().toPoint()).manhattanLength() < 6) {
                 resizeMode = TopRight;
-            } else if ((r.toRect().bottomRight() -= e->scenePos().toPoint()).manhattanLength() < 3) {
+            } else if ((r.toRect().bottomRight() - e->scenePos().toPoint()).manhattanLength() < 6) {
                 resizeMode = BottomRight;
             } else if (qAbs(r.toRect().left() - e->scenePos().toPoint().x()) < 3) {
                 resizeMode = Left;
@@ -82,49 +89,136 @@ void GraphicsSceneRectMove::mouseMoveEvent(QGraphicsSceneMouseEvent* e) {
             } else if (qAbs(r.toRect().bottom() - e->scenePos().toPoint().y()) < 3) {
                 resizeMode = Down;
             }
-            if (resizeMode != NoResize)
-                selected = gi;
         }
-        break;
-    }
-    switch (resizeMode) {
-    case TopLeft:
-    case BottomRight:
-        setCursor(QCursor(Qt::SizeFDiagCursor));
-        break;
-    case BottomLeft:
-    case TopRight:
-        setCursor(QCursor(Qt::SizeBDiagCursor));
-        break;
-    case Left:
-    case Right:
-        setCursor(Qt::SizeHorCursor);
-        break;
-    case Up:
-    case Down:
-        setCursor(Qt::SizeVerCursor);
-        break;
-    default:
-        setCursor(QCursor(Qt::ArrowCursor));
-        QGraphicsScene::mouseMoveEvent(e);
     }
+    if (!hasSelected) QGraphicsScene::mousePressEvent(e);
+
+    kDebug() << "//////  MOUSE CLICK, RESIZE MODE: " << resizeMode;
+
+}
+
+//virtual
+void GraphicsSceneRectMove::mouseReleaseEvent(QGraphicsSceneMouseEvent* e) {
+    //m_selectedItem = NULL;
+}
+
+
+//virtual
+void GraphicsSceneRectMove::mouseMoveEvent(QGraphicsSceneMouseEvent* e) {
+
+    if (m_selectedItem && e->buttons() & Qt::LeftButton) {
+        if (m_selectedItem->type() == 3) {
+            QGraphicsRectItem *gi = (QGraphicsRectItem*)m_selectedItem;
+            QRectF newrect = gi->rect();
+            QPointF newpoint = e->scenePos();
+            newpoint -= m_selectedItem->scenePos();
+            switch (resizeMode) {
+            case TopLeft:
+                newrect.setTopLeft(newpoint);
+                break;
+            case BottomLeft:
+                newrect.setBottomLeft(newpoint);
+                break;
+            case TopRight:
+                newrect.setTopRight(newpoint);
+                break;
+            case BottomRight:
+                newrect.setBottomRight(newpoint);
+                break;
+            case Left:
+                newrect.setLeft(newpoint.x());
+                break;
+            case Right:
+                newrect.setRight(newpoint.x());
+                break;
+            case Up:
+                newrect.setTop(newpoint.y());
+                break;
+            case Down:
+                newrect.setBottom(newpoint.y());
+                break;
+            default:
+                QPointF diff = e->scenePos() - m_clickPoint;
+                m_clickPoint = e->scenePos();
+                gi->moveBy(diff.x(), diff.y());
+                break;
+            }
+            gi->setRect(newrect);
+            //gi->setPos(m_selectedItem->scenePos());
+            /*if (resizeMode == NoResize) {
+                QGraphicsScene::mouseMoveEvent(e);
+                return;
+            }*/
+        } else if (m_selectedItem->type() == 8) {
+            QGraphicsTextItem *t = static_cast<QGraphicsTextItem *>(m_selectedItem);
+            if (t->textInteractionFlags() & Qt::TextEditorInteraction) {
+                QGraphicsScene::mouseMoveEvent(e);
+                return;
+            }
+            QPointF diff = e->scenePos() - m_clickPoint;
+            m_clickPoint = e->scenePos();
+            m_selectedItem->moveBy(diff.x(), diff.y());
+        }
+    } else {
+
+        QPointF p = e->scenePos();
+        p += QPoint(-2, -2);
+        resizeMode = NoResize;
+
+        foreach(QGraphicsItem* g, items(QRectF(p , QSizeF(4, 4)).toRect())) {
 
+            if (g->type() == 3) {
 
+                QGraphicsRectItem *gi = (QGraphicsRectItem*)g;
+                QRectF r = gi->rect();
+                r.translate(gi->scenePos());
+
+                if ((r.toRect().topLeft() - e->scenePos().toPoint()).manhattanLength() < 6) {
+                    setCursor(QCursor(Qt::SizeFDiagCursor));
+                } else if ((r.toRect().bottomLeft() - e->scenePos().toPoint()).manhattanLength() < 6) {
+                    setCursor(QCursor(Qt::SizeBDiagCursor));
+                } else if ((r.toRect().topRight() - e->scenePos().toPoint()).manhattanLength() < 6) {
+                    setCursor(QCursor(Qt::SizeBDiagCursor));
+                } else if ((r.toRect().bottomRight() - e->scenePos().toPoint()).manhattanLength() < 6) {
+                    setCursor(QCursor(Qt::SizeFDiagCursor));
+                } else if (qAbs(r.toRect().left() - e->scenePos().toPoint().x()) < 3) {
+                    setCursor(Qt::SizeHorCursor);
+                } else if (qAbs(r.toRect().right() - e->scenePos().toPoint().x()) < 3) {
+                    setCursor(Qt::SizeHorCursor);
+                } else if (qAbs(r.toRect().top() - e->scenePos().toPoint().y()) < 3) {
+                    setCursor(Qt::SizeVerCursor);
+                } else if (qAbs(r.toRect().bottom() - e->scenePos().toPoint().y()) < 3) {
+                    setCursor(Qt::SizeVerCursor);
+                } else setCursor(QCursor(Qt::ArrowCursor));
+            }
+            break;
+        }
+        QGraphicsScene::mouseMoveEvent(e);
+    }
 }
 
 void GraphicsSceneRectMove::wheelEvent(QGraphicsSceneWheelEvent * wheelEvent) {
     QList<QGraphicsView*> viewlist = views();
     kDebug() << wheelEvent->delta() << " " << zoom;
+    double scale = 1.0;
     if (viewlist.size() > 0) {
         if (wheelEvent->delta() < 0 && zoom < 20.0) {
-            zoom *= 1.1;
+            scale = 1.1;
 
         } else if (wheelEvent->delta() > 0 && zoom > .05) {
-            zoom /= 1.1;
+            scale = 1 / 1.1;
         }
+        setScale(scale);
+        //viewlist[0]->resetTransform();
+        //viewlist[0]->scale(zoom, zoom);
+    }
+}
 
-        viewlist[0]->resetTransform();
-        viewlist[0]->scale(zoom, zoom);
+void GraphicsSceneRectMove::setScale(double s) {
+    QList<QGraphicsView*> viewlist = views();
+    if (viewlist.size() > 0) {
+        viewlist[0]->scale(s, s);
+        zoom = zoom * s;
     }
 }
 
index 82560371049c925afd25c9d0eff0027c1812f9f3..a1c7d90e3101dc4707fa462f0347d0b982b19e78 100644 (file)
@@ -3,14 +3,26 @@
 
 #include <QGraphicsScene>
 
+enum resizeModes {NoResize, TopLeft, BottomLeft, TopRight, BottomRight, Left, Right, Up, Down};
+
 class GraphicsSceneRectMove: public QGraphicsScene {
 public:
     GraphicsSceneRectMove(QObject* parent = 0);
-    void mouseMoveEvent(QGraphicsSceneMouseEvent*);
-    void wheelEvent(QGraphicsSceneWheelEvent * wheelEvent);
+
+    void setScale(double s);
+
+    virtual void mousePressEvent(QGraphicsSceneMouseEvent*);
+    virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e);
+    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
+    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent*);
+    virtual void wheelEvent(QGraphicsSceneWheelEvent * wheelEvent);
+
 private:
     void setCursor(QCursor);
     double zoom;
+    QGraphicsItem* m_selectedItem;
+    resizeModes resizeMode;
+    QPointF m_clickPoint;
 };
 
 #endif
index 93f4cca161e331bdc95cc71c31a466befbed4ed1..6b5c37ffcc87b705b1c5ff103f4f501a9586861c 100644 (file)
@@ -415,7 +415,7 @@ void ProjectList::slotAddTitleClip() {
     if (!m_commandStack) kDebug() << "!!!!!!!!!!!!!!!!  NO CMD STK";
     //QDialog *dia = new QDialog;
 
-    TitleWidget *dia_ui = new TitleWidget();
+    TitleWidget *dia_ui = new TitleWidget(m_render, this);
     //dia_ui->setupUi(dia);
     //dia_ui->clip_name->setText(i18n("Title Clip"));
     //dia_ui->clip_duration->setText(KdenliveSettings::color_duration());
index 64282417fdcda0472ba4ff23459ebf52e305478a..8ecfc69d229a5d957e9aafeead92a9b7b3d082be 100644 (file)
@@ -199,11 +199,18 @@ char *Render::decodedString(QString str) {
     return pix;
 }
 */
+const int Render::renderWidth() const {
+    return (int)(m_mltProfile->height() * m_mltProfile->dar());
+}
+
+const int Render::renderHeight() const {
+    return m_mltProfile->height();
+}
 
 QPixmap Render::extractFrame(int frame_position, int width, int height) {
     if (width == -1) {
-        width = m_mltProfile->width();
-        height = m_mltProfile->height();
+        width = renderWidth();
+        height = renderHeight();
     }
     QPixmap pix(width, height);
     if (!m_mltProducer) {
index fa157c606372de6fa473cfb1946cb8e148f3f568..82fde52851199f20051c6bd1190eb1d2d93cdfc3 100644 (file)
@@ -142,6 +142,8 @@ Q_OBJECT public:
     void refreshDisplay();
     int resetProfile(QString profile);
     const double fps() const;
+    const int renderWidth() const;
+    const int renderHeight() const;
 
     /** Playlist manipulation */
     void mltInsertClip(int track, GenTime position, QDomElement element);
index 955553767c95c7f9f6bf88718d927437bed04fbe..02c89a2e153259112f9cc0b354e7bf9f95db5787 100644 (file)
@@ -15,8 +15,8 @@
  *                                                                         *
  ***************************************************************************/
 
-#include "titlewidget.h"
-#include "graphicsscenerectmove.h"
+
+
 #include <QGraphicsView>
 #include <QDomDocument>
 #include <KDebug>
 #include <QGraphicsSvgItem>
 #include <KFileDialog>
 
+#include "titlewidget.h"
+
+
 int settingUp = false;
 
-TitleWidget::TitleWidget(QDialog *parent): QDialog(parent) {
+TitleWidget::TitleWidget(Render *render, QWidget *parent): QDialog(parent) {
     setupUi(this);
     connect(newTextButton, SIGNAL(clicked()), this, SLOT(slotNewText()));
     connect(newRectButton, SIGNAL(clicked()), this, SLOT(slotNewRect()));
@@ -61,27 +64,54 @@ TitleWidget::TitleWidget(QDialog *parent): QDialog(parent) {
     connect(itemzoom, SIGNAL(valueChanged(int)), this, SLOT(itemScaled(int)));
     connect(itemrotate, SIGNAL(valueChanged(int)), this, SLOT(itemRotate(int)));
 
-    GraphicsSceneRectMove *scene = new GraphicsSceneRectMove(this);
+    m_scene = new GraphicsSceneRectMove(this);
 
     // a gradient background
     QRadialGradient *gradient = new QRadialGradient(0, 0, 10);
     gradient->setSpread(QGradient::ReflectSpread);
     //scene->setBackgroundBrush(*gradient);
 
-    graphicsView->setScene(scene);
-    m_titledocument.setScene(scene);
+
+    graphicsView->setScene(m_scene);
+    m_titledocument.setScene(m_scene);
     connect(graphicsView->scene(), SIGNAL(selectionChanged()), this , SLOT(selectionChanged()));
+
+    QPen framepen(Qt::DotLine);
+    framepen.setColor(Qt::red);
+    m_frameWidth = render->renderWidth();
+    m_frameHeight = render->renderHeight();
+    m_frameBorder = new QGraphicsRectItem(QRectF(0, 0, m_frameWidth, m_frameHeight));
+    m_frameBorder->setPen(framepen);
+    m_frameBorder->setZValue(-1000);
+    m_frameBorder->setFlags(QGraphicsItem::ItemClipsToShape);
+    graphicsView->scene()->addItem(m_frameBorder);
     initViewports();
 
     graphicsView->show();
     graphicsView->setRenderHint(QPainter::Antialiasing);
     graphicsView->setInteractive(true);
     graphicsView->resize(400, 300);
+    kDebug() << "// TITLE WIDGWT: " << graphicsView->viewport()->width() << "x" << graphicsView->viewport()->height();
+
+    graphicsView->centerOn(m_frameBorder);
 
     toolBox->setItemEnabled(2, false);
     toolBox->setItemEnabled(3, false);
 }
 
+
+//virtual
+void TitleWidget::resizeEvent(QResizeEvent * event) {
+    kDebug() << "// TITLE WIDGET:-- " << graphicsView->width() << "x" << graphicsView->height();
+    kDebug() << "// FRAME WIDGET:-- " << graphicsView->mapFromScene(QPointF(m_frameBorder->rect().width() + 50, 0)).x() << "x" << graphicsView->mapFromScene(QPointF(m_frameBorder->rect().height() + 50, 0)).x();
+    double scalex = graphicsView->width() / (double) graphicsView->mapFromScene(QPointF(m_frameBorder->rect().width() + 50, 0)).x();
+    double scaley = graphicsView->height() / (double)graphicsView->mapFromScene(QPointF(m_frameBorder->rect().height() + 50, 0)).x();
+    kDebug() << "-- SCALES: " << scalex << "x" << scaley;
+    if (scalex < scaley) m_scene->setScale(scalex);
+    else m_scene->setScale(scaley);
+    graphicsView->centerOn(m_frameBorder);
+}
+
 void TitleWidget::initViewports() {
     startViewport = new QGraphicsPolygonItem(QPolygonF(QRectF(0, 0, 0, 0)));
     endViewport = new QGraphicsPolygonItem(QPolygonF(QRectF(0, 0, 0, 0)));
@@ -109,14 +139,24 @@ void TitleWidget::initViewports() {
 
 void TitleWidget::slotNewRect() {
 
-    QGraphicsRectItem * ri = graphicsView->scene()->addRect(-50, -50, 100, 100);
+    QGraphicsRectItem * ri = graphicsView->scene()->addRect(m_frameWidth / 2, m_frameHeight / 2, 100, 100);
     ri->setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
+    QColor f = rectFColor->color();
+    f.setAlpha(rectFAlpha->value());
+    QPen penf(f);
+    penf.setWidth(rectLineWidth->value());
+    ri->setPen(penf);
+    QColor b = rectBColor->color();
+    b.setAlpha(rectBAlpha->value());
+    ri->setBrush(QBrush(b));
 }
 
 void TitleWidget::slotNewText() {
     QGraphicsTextItem *tt = graphicsView->scene()->addText("Text here");
     tt->setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
-    tt->setTextInteractionFlags(Qt::TextEditorInteraction);
+    tt->setTextInteractionFlags(Qt::NoTextInteraction);
+    tt->setPos(m_frameWidth / 2, m_frameHeight / 2);
+    tt->setFont(kfontrequester->font());
     connect(tt->document(), SIGNAL(contentsChanged()), this, SLOT(selectionChanged()));
     kDebug() << tt->metaObject()->className();
     /*QGraphicsRectItem * ri=graphicsView->scene()->addRect(-50,-50,100,100);
@@ -136,7 +176,6 @@ void TitleWidget::selectionChanged() {
     toolBox->setItemEnabled(2, false);
     toolBox->setItemEnabled(3, false);
     if (l.size() == 1) {
-
         if ((l[0])->type() == 8) {
             QGraphicsTextItem* i = ((QGraphicsTextItem*)l[0]);
             if (l[0]->hasFocus())
@@ -150,7 +189,7 @@ void TitleWidget::selectionChanged() {
                 toolBox->setCurrentIndex(3);
                 toolBox->setItemEnabled(3, true);
                 rectFAlpha->setValue(rec->pen().color().alpha());
-                rectBAlpha->setValue(rec->brush().isOpaque() ? rec->brush().color().alpha() : 0);
+                rectBAlpha->setValue(rec->brush().color().alpha());
                 kDebug() << rec->brush().color().alpha();
                 QColor fcol = rec->pen().color();
                 QColor bcol = rec->brush().color();
@@ -238,6 +277,7 @@ void TitleWidget::itemRotate(int val) {
     }
 }
 
+
 void TitleWidget::setupViewports() {
     double aspect_ratio = 4.0 / 3.0;//read from project
 
index ab91abf6716c40e21cc4d63de8c60770da53d0a9..029a811a4f6328ce971683d2857233327be3b345 100644 (file)
 #ifndef TITLEWIDGET_H
 #define TITLEWIDGET_H
 
-#include "ui_titlewidget_ui.h"
-#include "titledocument.h"
+
 #include <QDialog>
 #include <QMap>
 
+#include "ui_titlewidget_ui.h"
+#include "titledocument.h"
+#include "renderer.h"
+#include "graphicsscenerectmove.h"
+
 class Transform {
 public:
     Transform() {
@@ -37,12 +41,21 @@ public:
 class TitleWidget : public QDialog , public Ui::TitleWidget_UI {
     Q_OBJECT
 public:
-    TitleWidget(QDialog *parent = 0);
+    TitleWidget(Render *render, QWidget *parent = 0);
+
+protected:
+    virtual void resizeEvent(QResizeEvent * event);
+
 private:
     QGraphicsPolygonItem *startViewport, *endViewport;
+    GraphicsSceneRectMove *m_scene;
     void initViewports();
     QMap<QGraphicsItem*, Transform > transformations;
     TitleDocument m_titledocument;
+    QGraphicsRectItem *m_frameBorder;
+    int m_frameWidth;
+    int m_frameHeight;
+
 public slots:
     void slotNewText();
     void slotNewRect();
index 06c679473a37315b9399a147db06fefe2a1f0d4e..14b2ed80ff104ff8620b7e4eb2e36d62d9c97626 100644 (file)
@@ -5,8 +5,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>918</width>
-    <height>564</height>
+    <width>738</width>
+    <height>532</height>
    </rect>
   </property>
   <property name="sizePolicy" >
   <property name="windowTitle" >
    <string>Dialog</string>
   </property>
-  <layout class="QGridLayout" >
-   <item row="0" column="1" >
-    <layout class="QVBoxLayout" >
+  <layout class="QGridLayout" name="gridLayout" >
+   <item row="0" column="0" >
+    <layout class="QHBoxLayout" >
      <item>
-      <layout class="QHBoxLayout" >
-       <item>
-        <widget class="QPushButton" name="newRectButton" >
-         <property name="text" >
-          <string>New Rect</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="newTextButton" >
-         <property name="text" >
-          <string>New Text</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="loadButton" >
-         <property name="text" >
-          <string>Load Title</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="saveButton" >
-         <property name="text" >
-          <string>Save Title</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="previewButton" >
-         <property name="text" >
-          <string>Preview</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Horizontal</enum>
-         </property>
-         <property name="sizeHint" >
-          <size>
-           <width>40</width>
-           <height>20</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-       <item>
-        <widget class="QLabel" name="label_12" >
-         <property name="text" >
-          <string>Z-Index:</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QSpinBox" name="zValue" >
-         <property name="minimum" >
-          <number>-1000</number>
-         </property>
-         <property name="maximum" >
-          <number>1000</number>
-         </property>
-        </widget>
-       </item>
-      </layout>
+      <widget class="QPushButton" name="newRectButton" >
+       <property name="text" >
+        <string>New Rect</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="newTextButton" >
+       <property name="text" >
+        <string>New Text</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="loadButton" >
+       <property name="text" >
+        <string>Load Title</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="saveButton" >
+       <property name="text" >
+        <string>Save Title</string>
+       </property>
+      </widget>
      </item>
      <item>
-      <widget class="QSplitter" name="splitter" >
-       <property name="sizePolicy" >
-        <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
+      <widget class="QPushButton" name="previewButton" >
+       <property name="text" >
+        <string>Preview</string>
        </property>
+      </widget>
+     </item>
+     <item>
+      <spacer>
        <property name="orientation" >
         <enum>Qt::Horizontal</enum>
        </property>
-       <widget class="QGraphicsView" name="graphicsView" >
-        <property name="sizePolicy" >
-         <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-       </widget>
-       <widget class="QToolBox" name="toolBox" >
-        <property name="sizePolicy" >
-         <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="currentIndex" >
-         <number>2</number>
-        </property>
-        <widget class="QWidget" name="BasicOperations" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>488</width>
-           <height>304</height>
-          </rect>
-         </property>
-         <attribute name="label" >
-          <string>BasicOperations</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="0" column="0" >
-           <layout class="QVBoxLayout" >
-            <item>
-             <layout class="QHBoxLayout" >
-              <item>
-               <spacer>
-                <property name="orientation" >
-                 <enum>Qt::Horizontal</enum>
-                </property>
-                <property name="sizeHint" >
-                 <size>
-                  <width>40</width>
-                  <height>20</height>
-                 </size>
-                </property>
-               </spacer>
-              </item>
-              <item>
-               <widget class="QLabel" name="label_14" >
-                <property name="text" >
-                 <string>Zoom:</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="KIntSpinBox" name="itemzoom" >
-                <property name="maximum" >
-                 <number>300</number>
-                </property>
-                <property name="value" >
-                 <number>100</number>
-                </property>
-               </widget>
-              </item>
-             </layout>
-            </item>
-            <item>
-             <layout class="QHBoxLayout" >
-              <item>
-               <spacer>
-                <property name="orientation" >
-                 <enum>Qt::Horizontal</enum>
-                </property>
-                <property name="sizeHint" >
-                 <size>
-                  <width>40</width>
-                  <height>20</height>
-                 </size>
-                </property>
-               </spacer>
-              </item>
-              <item>
-               <widget class="QLabel" name="label_15" >
-                <property name="text" >
-                 <string>Rotate:</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="KIntSpinBox" name="itemrotate" >
-                <property name="minimum" >
-                 <number>-360</number>
-                </property>
-                <property name="maximum" >
-                 <number>360</number>
-                </property>
-               </widget>
-              </item>
-             </layout>
-            </item>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QLabel" name="label_12" >
+       <property name="text" >
+        <string>Z-Index:</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QSpinBox" name="zValue" >
+       <property name="minimum" >
+        <number>-1000</number>
+       </property>
+       <property name="maximum" >
+        <number>1000</number>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item row="1" column="0" >
+    <widget class="QSplitter" name="splitter" >
+     <property name="sizePolicy" >
+      <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <widget class="QGraphicsView" name="graphicsView" />
+     <widget class="QToolBox" name="toolBox" >
+      <property name="currentIndex" >
+       <number>2</number>
+      </property>
+      <widget class="QWidget" name="BasicOperations" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>407</width>
+         <height>250</height>
+        </rect>
+       </property>
+       <attribute name="label" >
+        <string>BasicOperations</string>
+       </attribute>
+       <layout class="QGridLayout" >
+        <item row="0" column="0" >
+         <layout class="QVBoxLayout" >
+          <item>
+           <layout class="QHBoxLayout" >
             <item>
              <spacer>
               <property name="orientation" >
-               <enum>Qt::Vertical</enum>
+               <enum>Qt::Horizontal</enum>
               </property>
-              <property name="sizeHint" >
+              <property name="sizeHint" stdset="0" >
                <size>
-                <width>20</width>
-                <height>40</height>
+                <width>40</width>
+                <height>20</height>
                </size>
               </property>
              </spacer>
             </item>
-           </layout>
-          </item>
-         </layout>
-        </widget>
-        <widget class="QWidget" name="Background" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>94</width>
-           <height>69</height>
-          </rect>
-         </property>
-         <attribute name="label" >
-          <string>Background</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="0" column="0" >
-           <layout class="QGridLayout" >
-            <item row="0" column="0" >
-             <widget class="KColorButton" name="kcolorbutton" />
+            <item>
+             <widget class="QLabel" name="label_14" >
+              <property name="text" >
+               <string>Zoom:</string>
+              </property>
+             </widget>
             </item>
-            <item row="1" column="0" >
-             <widget class="QSlider" name="horizontalSlider" >
+            <item>
+             <widget class="KIntSpinBox" name="itemzoom" >
               <property name="maximum" >
-               <number>255</number>
+               <number>300</number>
               </property>
-              <property name="orientation" >
-               <enum>Qt::Horizontal</enum>
+              <property name="value" >
+               <number>100</number>
               </property>
              </widget>
             </item>
-            <item row="2" column="0" >
+           </layout>
+          </item>
+          <item>
+           <layout class="QHBoxLayout" >
+            <item>
              <spacer>
               <property name="orientation" >
-               <enum>Qt::Vertical</enum>
-              </property>
-              <property name="sizeType" >
-               <enum>QSizePolicy::Expanding</enum>
+               <enum>Qt::Horizontal</enum>
               </property>
-              <property name="sizeHint" >
+              <property name="sizeHint" stdset="0" >
                <size>
-                <width>20</width>
-                <height>400</height>
+                <width>40</width>
+                <height>20</height>
                </size>
               </property>
              </spacer>
             </item>
-           </layout>
-          </item>
-         </layout>
-        </widget>
-        <widget class="QWidget" name="Text" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>488</width>
-           <height>304</height>
-          </rect>
-         </property>
-         <attribute name="label" >
-          <string>Text</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="0" column="0" >
-           <layout class="QVBoxLayout" >
-            <item>
-             <layout class="QHBoxLayout" >
-              <item>
-               <widget class="QToolButton" name="toolButton_4" >
-                <property name="text" >
-                 <string>...</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QToolButton" name="toolButton_5" >
-                <property name="text" >
-                 <string>...</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QToolButton" name="toolButton_6" >
-                <property name="text" >
-                 <string>...</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="KColorButton" name="fontColorButton" />
-              </item>
-              <item>
-               <widget class="QSlider" name="textAlpha" >
-                <property name="orientation" >
-                 <enum>Qt::Horizontal</enum>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <spacer>
-                <property name="orientation" >
-                 <enum>Qt::Horizontal</enum>
-                </property>
-                <property name="sizeHint" >
-                 <size>
-                  <width>40</width>
-                  <height>20</height>
-                 </size>
-                </property>
-               </spacer>
-              </item>
-             </layout>
-            </item>
-            <item>
-             <layout class="QHBoxLayout" >
-              <item>
-               <widget class="QToolButton" name="toolButton" >
-                <property name="text" >
-                 <string>...</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QToolButton" name="fontBold" >
-                <property name="text" >
-                 <string>...</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QToolButton" name="toolButton_3" >
-                <property name="text" >
-                 <string>...</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <spacer>
-                <property name="orientation" >
-                 <enum>Qt::Horizontal</enum>
-                </property>
-                <property name="sizeHint" >
-                 <size>
-                  <width>40</width>
-                  <height>20</height>
-                 </size>
-                </property>
-               </spacer>
-              </item>
-             </layout>
-            </item>
-            <item>
-             <widget class="KFontRequester" name="kfontrequester" />
-            </item>
             <item>
-             <widget class="KTextEdit" name="ktextedit" />
+             <widget class="QLabel" name="label_15" >
+              <property name="text" >
+               <string>Rotate:</string>
+              </property>
+             </widget>
             </item>
             <item>
-             <spacer>
-              <property name="orientation" >
-               <enum>Qt::Vertical</enum>
+             <widget class="KIntSpinBox" name="itemrotate" >
+              <property name="minimum" >
+               <number>-360</number>
               </property>
-              <property name="sizeType" >
-               <enum>QSizePolicy::Expanding</enum>
-              </property>
-              <property name="sizeHint" >
-               <size>
-                <width>20</width>
-                <height>40</height>
-               </size>
+              <property name="maximum" >
+               <number>360</number>
               </property>
-             </spacer>
+             </widget>
             </item>
            </layout>
           </item>
+          <item>
+           <spacer>
+            <property name="orientation" >
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeHint" stdset="0" >
+             <size>
+              <width>20</width>
+              <height>40</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
          </layout>
-        </widget>
-        <widget class="QWidget" name="Rectangle" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>488</width>
-           <height>304</height>
-          </rect>
-         </property>
-         <attribute name="label" >
-          <string>Rectangle</string>
-         </attribute>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="Background" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>407</width>
+         <height>250</height>
+        </rect>
+       </property>
+       <attribute name="label" >
+        <string>Background</string>
+       </attribute>
+       <layout class="QGridLayout" >
+        <item row="0" column="0" >
          <layout class="QGridLayout" >
           <item row="0" column="0" >
-           <layout class="QVBoxLayout" >
+           <widget class="KColorButton" name="kcolorbutton" />
+          </item>
+          <item row="1" column="0" >
+           <widget class="QSlider" name="horizontalSlider" >
+            <property name="maximum" >
+             <number>255</number>
+            </property>
+            <property name="orientation" >
+             <enum>Qt::Horizontal</enum>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="0" >
+           <spacer>
+            <property name="orientation" >
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeType" >
+             <enum>QSizePolicy::Expanding</enum>
+            </property>
+            <property name="sizeHint" stdset="0" >
+             <size>
+              <width>20</width>
+              <height>400</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+         </layout>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="Text" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>407</width>
+         <height>250</height>
+        </rect>
+       </property>
+       <attribute name="label" >
+        <string>Text</string>
+       </attribute>
+       <layout class="QGridLayout" >
+        <item row="0" column="0" >
+         <layout class="QVBoxLayout" >
+          <item>
+           <layout class="QHBoxLayout" >
             <item>
-             <widget class="QGroupBox" name="groupBox" >
-              <property name="title" >
-               <string>Border</string>
+             <widget class="QToolButton" name="toolButton_4" >
+              <property name="text" >
+               <string>...</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QToolButton" name="toolButton_5" >
+              <property name="text" >
+               <string>...</string>
               </property>
-              <layout class="QGridLayout" >
-               <item row="0" column="0" >
-                <layout class="QGridLayout" >
-                 <item row="0" column="0" >
-                  <widget class="QLabel" name="label_3" >
-                   <property name="text" >
-                    <string>Alpha</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="0" column="1" >
-                  <widget class="QLabel" name="label_4" >
-                   <property name="text" >
-                    <string>Linewidth</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="0" >
-                  <widget class="QSlider" name="rectFAlpha" >
-                   <property name="maximum" >
-                    <number>255</number>
-                   </property>
-                   <property name="orientation" >
-                    <enum>Qt::Horizontal</enum>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="1" >
-                  <widget class="QSpinBox" name="rectLineWidth" />
-                 </item>
-                 <item row="2" column="0" >
-                  <widget class="QLabel" name="label_11" >
-                   <property name="text" >
-                    <string>Color</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="2" column="1" >
-                  <widget class="KColorButton" name="rectFColor" />
-                 </item>
-                </layout>
-               </item>
-              </layout>
              </widget>
             </item>
             <item>
-             <widget class="QGroupBox" name="groupBox_2" >
-              <property name="sizePolicy" >
-               <sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
+             <widget class="QToolButton" name="toolButton_6" >
+              <property name="text" >
+               <string>...</string>
               </property>
-              <property name="title" >
-               <string>Background</string>
+             </widget>
+            </item>
+            <item>
+             <widget class="KColorButton" name="fontColorButton" />
+            </item>
+            <item>
+             <widget class="QSlider" name="textAlpha" >
+              <property name="orientation" >
+               <enum>Qt::Horizontal</enum>
               </property>
-              <layout class="QGridLayout" >
-               <item row="0" column="0" >
-                <layout class="QGridLayout" >
-                 <item row="0" column="0" >
-                  <widget class="QLabel" name="label" >
-                   <property name="text" >
-                    <string>Alpha:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="0" column="1" >
-                  <widget class="QLabel" name="label_2" >
-                   <property name="text" >
-                    <string>Color</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="0" >
-                  <widget class="QSlider" name="rectBAlpha" >
-                   <property name="maximum" >
-                    <number>255</number>
-                   </property>
-                   <property name="orientation" >
-                    <enum>Qt::Horizontal</enum>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="1" >
-                  <widget class="KColorButton" name="rectBColor" />
-                 </item>
-                </layout>
-               </item>
-              </layout>
              </widget>
             </item>
             <item>
              <spacer>
               <property name="orientation" >
-               <enum>Qt::Vertical</enum>
+               <enum>Qt::Horizontal</enum>
               </property>
-              <property name="sizeHint" >
+              <property name="sizeHint" stdset="0" >
                <size>
-                <width>20</width>
-                <height>40</height>
+                <width>40</width>
+                <height>20</height>
                </size>
               </property>
              </spacer>
             </item>
            </layout>
           </item>
-         </layout>
-        </widget>
-        <widget class="QWidget" name="SVG" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>94</width>
-           <height>65</height>
-          </rect>
-         </property>
-         <attribute name="label" >
-          <string>SVG</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="0" column="0" >
-           <layout class="QVBoxLayout" >
+          <item>
+           <layout class="QHBoxLayout" >
             <item>
-             <widget class="QLabel" name="label_13" >
-              <property name="sizePolicy" >
-               <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
+             <widget class="QToolButton" name="toolButton" >
+              <property name="text" >
+               <string>...</string>
               </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QToolButton" name="fontBold" >
               <property name="text" >
-               <string>Filename:</string>
+               <string>...</string>
               </property>
              </widget>
             </item>
             <item>
-             <widget class="KUrlRequester" name="svgfilename" >
-              <property name="filter" >
-               <string>*.svg *.svgz</string>
+             <widget class="QToolButton" name="toolButton_3" >
+              <property name="text" >
+               <string>...</string>
               </property>
              </widget>
             </item>
             <item>
              <spacer>
               <property name="orientation" >
-               <enum>Qt::Vertical</enum>
-              </property>
-              <property name="sizeType" >
-               <enum>QSizePolicy::Expanding</enum>
+               <enum>Qt::Horizontal</enum>
               </property>
-              <property name="sizeHint" >
+              <property name="sizeHint" stdset="0" >
                <size>
-                <width>20</width>
-                <height>151</height>
+                <width>40</width>
+                <height>20</height>
                </size>
               </property>
              </spacer>
             </item>
            </layout>
           </item>
+          <item>
+           <widget class="KFontRequester" name="kfontrequester" >
+            <property name="font" >
+             <font>
+              <family>Sans Serif</family>
+              <pointsize>20</pointsize>
+              <weight>50</weight>
+              <italic>false</italic>
+              <bold>false</bold>
+             </font>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="KTextEdit" name="ktextedit" />
+          </item>
+          <item>
+           <spacer>
+            <property name="orientation" >
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeType" >
+             <enum>QSizePolicy::Expanding</enum>
+            </property>
+            <property name="sizeHint" stdset="0" >
+             <size>
+              <width>20</width>
+              <height>40</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
          </layout>
-        </widget>
-        <widget class="QWidget" name="Seite" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>244</width>
-           <height>208</height>
-          </rect>
-         </property>
-         <attribute name="label" >
-          <string>Start-/EndViewport</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="0" column="0" >
-           <layout class="QVBoxLayout" >
-            <item>
-             <widget class="QGroupBox" name="groupBox_3" >
-              <property name="title" >
-               <string>StartViewport</string>
-              </property>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="Rectangle" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>407</width>
+         <height>250</height>
+        </rect>
+       </property>
+       <attribute name="label" >
+        <string>Rectangle</string>
+       </attribute>
+       <layout class="QGridLayout" >
+        <item row="0" column="0" >
+         <layout class="QVBoxLayout" >
+          <item>
+           <widget class="QGroupBox" name="groupBox" >
+            <property name="title" >
+             <string>Border</string>
+            </property>
+            <layout class="QGridLayout" >
+             <item row="0" column="0" >
               <layout class="QGridLayout" >
                <item row="0" column="0" >
-                <layout class="QGridLayout" >
-                 <item row="0" column="0" >
-                  <widget class="QLabel" name="label_8" >
-                   <property name="text" >
-                    <string>X:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="0" column="1" >
-                  <widget class="QLabel" name="label_9" >
-                   <property name="text" >
-                    <string>Y:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="0" column="2" >
-                  <widget class="QLabel" name="label_10" >
-                   <property name="text" >
-                    <string>Size:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="0" >
-                  <widget class="QSpinBox" name="startViewportX" >
-                   <property name="minimum" >
-                    <number>-1000</number>
-                   </property>
-                   <property name="maximum" >
-                    <number>1000</number>
-                   </property>
-                   <property name="singleStep" >
-                    <number>10</number>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="1" >
-                  <widget class="QSpinBox" name="startViewportY" >
-                   <property name="minimum" >
-                    <number>-1000</number>
-                   </property>
-                   <property name="maximum" >
-                    <number>1000</number>
-                   </property>
-                   <property name="singleStep" >
-                    <number>10</number>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="2" >
-                  <widget class="QSpinBox" name="startViewportSize" >
-                   <property name="maximum" >
-                    <number>1000</number>
-                   </property>
-                   <property name="singleStep" >
-                    <number>5</number>
-                   </property>
-                  </widget>
-                 </item>
-                </layout>
+                <widget class="QLabel" name="label_3" >
+                 <property name="text" >
+                  <string>Alpha</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="1" >
+                <widget class="QLabel" name="label_4" >
+                 <property name="text" >
+                  <string>Linewidth</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="0" >
+                <widget class="QSlider" name="rectFAlpha" >
+                 <property name="maximum" >
+                  <number>255</number>
+                 </property>
+                 <property name="orientation" >
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="1" >
+                <widget class="QSpinBox" name="rectLineWidth" />
+               </item>
+               <item row="2" column="0" >
+                <widget class="QLabel" name="label_11" >
+                 <property name="text" >
+                  <string>Color</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="2" column="1" >
+                <widget class="KColorButton" name="rectFColor" />
                </item>
               </layout>
-             </widget>
-            </item>
-            <item>
-             <widget class="QGroupBox" name="groupBox_4" >
-              <property name="title" >
-               <string>EndViewport</string>
-              </property>
+             </item>
+            </layout>
+           </widget>
+          </item>
+          <item>
+           <widget class="QGroupBox" name="groupBox_2" >
+            <property name="sizePolicy" >
+             <sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+            <property name="title" >
+             <string>Background</string>
+            </property>
+            <layout class="QGridLayout" >
+             <item row="0" column="0" >
               <layout class="QGridLayout" >
                <item row="0" column="0" >
-                <layout class="QGridLayout" >
-                 <item row="0" column="0" >
-                  <widget class="QLabel" name="label_5" >
-                   <property name="text" >
-                    <string>X:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="0" column="1" >
-                  <widget class="QLabel" name="label_6" >
-                   <property name="text" >
-                    <string>Y:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="0" column="2" >
-                  <widget class="QLabel" name="label_7" >
-                   <property name="text" >
-                    <string>Size:</string>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="0" >
-                  <widget class="QSpinBox" name="endViewportX" >
-                   <property name="minimum" >
-                    <number>-1000</number>
-                   </property>
-                   <property name="maximum" >
-                    <number>1000</number>
-                   </property>
-                   <property name="singleStep" >
-                    <number>10</number>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="1" >
-                  <widget class="QSpinBox" name="endViewportY" >
-                   <property name="minimum" >
-                    <number>-1000</number>
-                   </property>
-                   <property name="maximum" >
-                    <number>1000</number>
-                   </property>
-                   <property name="singleStep" >
-                    <number>10</number>
-                   </property>
-                  </widget>
-                 </item>
-                 <item row="1" column="2" >
-                  <widget class="QSpinBox" name="endViewportSize" >
-                   <property name="maximum" >
-                    <number>1000</number>
-                   </property>
-                   <property name="singleStep" >
-                    <number>5</number>
-                   </property>
-                  </widget>
-                 </item>
-                </layout>
+                <widget class="QLabel" name="label" >
+                 <property name="text" >
+                  <string>Alpha:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="1" >
+                <widget class="QLabel" name="label_2" >
+                 <property name="text" >
+                  <string>Color</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="0" >
+                <widget class="QSlider" name="rectBAlpha" >
+                 <property name="maximum" >
+                  <number>255</number>
+                 </property>
+                 <property name="value" >
+                  <number>255</number>
+                 </property>
+                 <property name="orientation" >
+                  <enum>Qt::Horizontal</enum>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="1" >
+                <widget class="KColorButton" name="rectBColor" />
                </item>
               </layout>
-             </widget>
-            </item>
-            <item>
-             <spacer>
-              <property name="orientation" >
-               <enum>Qt::Vertical</enum>
-              </property>
-              <property name="sizeHint" >
-               <size>
-                <width>20</width>
-                <height>40</height>
-               </size>
-              </property>
-             </spacer>
-            </item>
-           </layout>
+             </item>
+            </layout>
+           </widget>
+          </item>
+          <item>
+           <spacer>
+            <property name="orientation" >
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeHint" stdset="0" >
+             <size>
+              <width>20</width>
+              <height>40</height>
+             </size>
+            </property>
+           </spacer>
           </item>
          </layout>
-        </widget>
-       </widget>
+        </item>
+       </layout>
       </widget>
-     </item>
-     <item>
-      <widget class="QDialogButtonBox" name="buttonBox" >
-       <property name="orientation" >
-        <enum>Qt::Horizontal</enum>
+      <widget class="QWidget" name="SVG" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>407</width>
+         <height>250</height>
+        </rect>
        </property>
-       <property name="standardButtons" >
-        <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
+       <attribute name="label" >
+        <string>SVG</string>
+       </attribute>
+       <layout class="QGridLayout" >
+        <item row="0" column="0" >
+         <layout class="QVBoxLayout" >
+          <item>
+           <widget class="QLabel" name="label_13" >
+            <property name="sizePolicy" >
+             <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+            <property name="text" >
+             <string>Filename:</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="KUrlRequester" name="svgfilename" >
+            <property name="filter" >
+             <string>*.svg *.svgz</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <spacer>
+            <property name="orientation" >
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeType" >
+             <enum>QSizePolicy::Expanding</enum>
+            </property>
+            <property name="sizeHint" stdset="0" >
+             <size>
+              <width>20</width>
+              <height>151</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+         </layout>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="Seite" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>407</width>
+         <height>250</height>
+        </rect>
        </property>
+       <attribute name="label" >
+        <string>Start-/EndViewport</string>
+       </attribute>
+       <layout class="QGridLayout" >
+        <item row="0" column="0" >
+         <layout class="QVBoxLayout" >
+          <item>
+           <widget class="QGroupBox" name="groupBox_3" >
+            <property name="title" >
+             <string>StartViewport</string>
+            </property>
+            <layout class="QGridLayout" >
+             <item row="0" column="0" >
+              <layout class="QGridLayout" >
+               <item row="0" column="0" >
+                <widget class="QLabel" name="label_8" >
+                 <property name="text" >
+                  <string>X:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="1" >
+                <widget class="QLabel" name="label_9" >
+                 <property name="text" >
+                  <string>Y:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="2" >
+                <widget class="QLabel" name="label_10" >
+                 <property name="text" >
+                  <string>Size:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="0" >
+                <widget class="QSpinBox" name="startViewportX" >
+                 <property name="minimum" >
+                  <number>-1000</number>
+                 </property>
+                 <property name="maximum" >
+                  <number>1000</number>
+                 </property>
+                 <property name="singleStep" >
+                  <number>10</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="1" >
+                <widget class="QSpinBox" name="startViewportY" >
+                 <property name="minimum" >
+                  <number>-1000</number>
+                 </property>
+                 <property name="maximum" >
+                  <number>1000</number>
+                 </property>
+                 <property name="singleStep" >
+                  <number>10</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="2" >
+                <widget class="QSpinBox" name="startViewportSize" >
+                 <property name="maximum" >
+                  <number>1000</number>
+                 </property>
+                 <property name="singleStep" >
+                  <number>5</number>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </widget>
+          </item>
+          <item>
+           <widget class="QGroupBox" name="groupBox_4" >
+            <property name="title" >
+             <string>EndViewport</string>
+            </property>
+            <layout class="QGridLayout" >
+             <item row="0" column="0" >
+              <layout class="QGridLayout" >
+               <item row="0" column="0" >
+                <widget class="QLabel" name="label_5" >
+                 <property name="text" >
+                  <string>X:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="1" >
+                <widget class="QLabel" name="label_6" >
+                 <property name="text" >
+                  <string>Y:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="0" column="2" >
+                <widget class="QLabel" name="label_7" >
+                 <property name="text" >
+                  <string>Size:</string>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="0" >
+                <widget class="QSpinBox" name="endViewportX" >
+                 <property name="minimum" >
+                  <number>-1000</number>
+                 </property>
+                 <property name="maximum" >
+                  <number>1000</number>
+                 </property>
+                 <property name="singleStep" >
+                  <number>10</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="1" >
+                <widget class="QSpinBox" name="endViewportY" >
+                 <property name="minimum" >
+                  <number>-1000</number>
+                 </property>
+                 <property name="maximum" >
+                  <number>1000</number>
+                 </property>
+                 <property name="singleStep" >
+                  <number>10</number>
+                 </property>
+                </widget>
+               </item>
+               <item row="1" column="2" >
+                <widget class="QSpinBox" name="endViewportSize" >
+                 <property name="maximum" >
+                  <number>1000</number>
+                 </property>
+                 <property name="singleStep" >
+                  <number>5</number>
+                 </property>
+                </widget>
+               </item>
+              </layout>
+             </item>
+            </layout>
+           </widget>
+          </item>
+          <item>
+           <spacer>
+            <property name="orientation" >
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeHint" stdset="0" >
+             <size>
+              <width>20</width>
+              <height>40</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+         </layout>
+        </item>
+       </layout>
       </widget>
-     </item>
-    </layout>
+     </widget>
+    </widget>
+   </item>
+   <item row="2" column="0" >
+    <widget class="QDialogButtonBox" name="buttonBox" >
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons" >
+      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+     </property>
+    </widget>
    </item>
   </layout>
  </widget>