#include <QGraphicsView>
#include <KDebug>
#include <QGraphicsItem>
+#include <QGraphicsSvgItem>
+
int settingUp=false;
TitleWidget::TitleWidget (QDialog *parent):QDialog(parent){
connect (endViewportY,SIGNAL(valueChanged(int)), this, SLOT( setupViewports()));
connect (endViewportSize,SIGNAL(valueChanged(int)), this, SLOT( setupViewports()));
- GraphicsSceneRectMove *scene=new GraphicsSceneRectMove(this);
-
+ connect (zValue, SIGNAL (valueChanged(int)), this, SLOT (zIndexChanged(int)));
+ connect (svgfilename, SIGNAL (urlSelected(const KUrl&) ), this,SLOT( svgSelected(const KUrl &)) );
+ connect (itemzoom, SIGNAL (valueChanged(int) ), this,SLOT( itemScaled(int)) );
+ connect (itemrotate, SIGNAL (valueChanged(int) ), this,SLOT( itemRotate(int)) );
+ GraphicsSceneRectMove *scene=new GraphicsSceneRectMove(this);
- // a gradient background
+ // a gradient background
QRadialGradient *gradient=new QRadialGradient(0, 0, 10);
- gradient->setSpread(QGradient::RepeatSpread);
+ gradient->setSpread(QGradient::ReflectSpread);
//scene->setBackgroundBrush(*gradient);
graphicsView->setScene(scene);
graphicsView->setRenderHint(QPainter::Antialiasing);
graphicsView->setInteractive(true);
graphicsView->resize(400, 300);
- //update();
+
+ toolBox->setItemEnabled(2,false);
+ toolBox->setItemEnabled(3,false);
}
-
+
void TitleWidget::initViewports(){
startViewport=new QGraphicsPolygonItem(QPolygonF(QRectF(0,0,0,0)));
endViewport=new QGraphicsPolygonItem(QPolygonF(QRectF(0,0,0,0)));
startViewportSize->setValue(40);
endViewportSize->setValue(40);
+ startViewport->setZValue(-1000);
+ endViewport->setZValue(-1000);
+
+ startViewport->setFlags(/*QGraphicsItem::ItemIsMovable|*/QGraphicsItem::ItemIsSelectable);
+ endViewport->setFlags(/*QGraphicsItem::ItemIsMovable|*/QGraphicsItem::ItemIsSelectable);
+
graphicsView->scene()->addItem(startViewport);
graphicsView->scene()->addItem(endViewport);
}
-
+
void TitleWidget::slotNewRect(){
QGraphicsRectItem * ri=graphicsView->scene()->addRect(-50,-50,100,100);
ri->setFlags(QGraphicsItem::ItemIsMovable|QGraphicsItem::ItemIsSelectable);
}
-
+
void TitleWidget::slotNewText(){
QGraphicsTextItem *tt=graphicsView->scene()->addText("Text here");
tt->setFlags(QGraphicsItem::ItemIsMovable|QGraphicsItem::ItemIsSelectable);
}
+void TitleWidget::zIndexChanged(int v){
+ QList<QGraphicsItem*> l=graphicsView->scene()->selectedItems();
+ if (l.size()>=1){
+ l[0]->setZValue(v);
+ }
+}
+
void TitleWidget::selectionChanged(){
QList<QGraphicsItem*> l=graphicsView->scene()->selectedItems();
+ toolBox->setItemEnabled(2,false);
+ toolBox->setItemEnabled(3,false);
if (l.size()==1){
- kDebug() << (l[0])->type();
+
if ((l[0])->type()==8 ){
QGraphicsTextItem* i=((QGraphicsTextItem*)l[0]);
if (l[0]->hasFocus() )
ktextedit->setHtml(i->toHtml());
- toolBox->setCurrentIndex(1);
+ toolBox->setCurrentIndex(2);
+ toolBox->setItemEnabled(2,true);
}else
if ((l[0])->type()==3){
settingUp=true;
QGraphicsRectItem *rec=((QGraphicsRectItem*)l[0]);
- toolBox->setCurrentIndex(2);
+ toolBox->setCurrentIndex(3);
+ toolBox->setItemEnabled(3,true);
rectFAlpha->setValue(rec->pen().color().alpha());
rectBAlpha->setValue(rec->brush().isOpaque() ? rec->brush().color().alpha() : 0);
kDebug() << rec->brush().color().alpha();
else{
//toolBox->setCurrentIndex(0);
}
+ zValue->setValue(l[0]->zValue());
+ itemzoom->setValue(transformations[l[0]].scalex*100);
+ itemrotate->setValue(transformations[l[0]].rotate);
}
}
}
}
+void TitleWidget::svgSelected(const KUrl& u){
+ QGraphicsSvgItem *svg=new QGraphicsSvgItem(u.toLocalFile());
+ svg->setFlags(QGraphicsItem::ItemIsMovable|QGraphicsItem::ItemIsSelectable);
+ graphicsView->scene()->addItem(svg);
+}
+
+void TitleWidget::itemScaled(int val) {
+ QList<QGraphicsItem*> l=graphicsView->scene()->selectedItems();
+ if (l.size()==1){
+ Transform x=transformations[l[0]];
+ x.scalex=(double)val/100.0;
+ x.scaley=(double)val/100.0;
+ QTransform qtrans;
+ qtrans.scale(x.scalex,x.scaley);
+ qtrans.rotate(x.rotate);
+ l[0]->setTransform(qtrans);
+ transformations[l[0]]=x;
+ }
+}
+
+void TitleWidget::itemRotate(int val) {
+ QList<QGraphicsItem*> l=graphicsView->scene()->selectedItems();
+ if (l.size()==1){
+ Transform x=transformations[l[0]];
+ x.rotate=(double)val;
+ QTransform qtrans;
+ qtrans.scale(x.scalex,x.scaley);
+ qtrans.rotate(x.rotate);
+ l[0]->setTransform(qtrans);
+ transformations[l[0]]=x;
+ }
+}
+
void TitleWidget::setupViewports(){
double aspect_ratio=4.0/3.0;//read from project
startViewport->setPolygon(QPolygonF(sp));
endViewport->setPolygon(QPolygonF(ep));
-
-
-
}
#include "moc_titlewidget.cpp"
<height>564</height>
</rect>
</property>
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<layout class="QGridLayout" >
- <item row="0" column="0" >
- <layout class="QGridLayout" >
- <item row="0" column="0" >
+ <item row="0" column="1" >
+ <layout class="QVBoxLayout" >
+ <item>
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="newRectButton" >
</property>
</widget>
</item>
+ <item>
+ <widget class="QPushButton" name="previewButton" >
+ <property name="text" >
+ <string>Preview</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer>
<property name="orientation" >
</widget>
</item>
<item>
- <widget class="QSpinBox" name="spinBox" />
+ <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" >
- <layout class="QHBoxLayout" >
- <item>
- <widget class="QGraphicsView" name="graphicsView" />
- </item>
- <item>
- <widget class="QToolBox" name="toolBox" >
- <property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
+ <item>
+ <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" >
+ <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>0</number>
+ </property>
+ <widget class="QWidget" name="BasicOperations" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>339</width>
+ <height>304</height>
+ </rect>
</property>
- <property name="currentIndex" >
- <number>3</number>
+ <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>
+ <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>
+ <widget class="QWidget" name="Background" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>94</width>
+ <height>69</height>
+ </rect>
</property>
- <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="QVBoxLayout" >
- <item>
- <widget class="KColorButton" name="kcolorbutton" />
- </item>
- <item>
- <widget class="QSlider" name="horizontalSlider" >
- <property name="maximum" >
- <number>255</number>
- </property>
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="1" column="0" >
- <spacer>
- <property name="orientation" >
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>400</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="Text" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>208</width>
- <height>167</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>
+ <attribute name="label" >
+ <string>Background</string>
+ </attribute>
+ <layout class="QGridLayout" >
+ <item row="0" column="0" >
+ <layout class="QVBoxLayout" >
+ <item>
+ <widget class="KColorButton" name="kcolorbutton" />
+ </item>
+ <item>
+ <widget class="QSlider" name="horizontalSlider" >
+ <property name="maximum" >
+ <number>255</number>
+ </property>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" >
+ <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>208</width>
+ <height>167</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" />
+ </item>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType" >
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="Rectangle" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>152</width>
+ <height>229</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" >
+ <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>
- </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>
+ </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" >
+ <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>
- <item>
- <widget class="QToolButton" name="toolButton_3" >
- <property name="text" >
- <string>...</string>
- </property>
- </widget>
+ </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>
+ <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>
+ <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" >
+ <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>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>
+ <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>
- <item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
+ </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>
- </item>
- <item>
- <widget class="KFontRequester" name="kfontrequester" />
- </item>
- <item>
- <widget class="KTextEdit" name="ktextedit" />
- </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>
- <widget class="QWidget" name="Rectangle" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>152</width>
- <height>229</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" >
- <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="title" >
- <string>Background</string>
- </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>
- <item row="1" column="0" >
- <spacer>
- <property name="orientation" >
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>400</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="Seite" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>441</width>
- <height>366</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="QVBoxLayout" >
- <item>
- <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>
- <item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>400</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
+ </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>
- </layout>
+ </widget>
+ </widget>
</item>
- <item row="2" column="0" >
+ <item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
<extends>QWidget</extends>
<header>kfontrequester.h</header>
</customwidget>
+ <customwidget>
+ <class>KIntSpinBox</class>
+ <extends>QSpinBox</extends>
+ <header>knuminput.h</header>
+ </customwidget>
<customwidget>
<class>KTextEdit</class>
<extends>QTextEdit</extends>
<header>ktextedit.h</header>
</customwidget>
+ <customwidget>
+ <class>KUrlRequester</class>
+ <extends>QFrame</extends>
+ <header>kurlrequester.h</header>
+ </customwidget>
</customwidgets>
<resources/>
<connections>