-#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;
} 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;
}
}
* *
***************************************************************************/
-#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()));
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)));
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);
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())
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();
}
}
+
void TitleWidget::setupViewports() {
double aspect_ratio = 4.0 / 3.0;//read from project
<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>