Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 19362 → Rev 19363

/trunk/Scribus/scribus/ui/polygonwidgetbase.ui
6,8 → 6,8
<rect>
<x>0</x>
<y>0</y>
<width>510</width>
<height>365</height>
<width>558</width>
<height>560</height>
</rect>
</property>
<property name="sizePolicy">
19,13 → 19,8
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="margin">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
43,7 → 38,7
<string>Number of corners for polygons</string>
</property>
<property name="suffix">
<string notr="true"> </string>
<string notr="true"/>
</property>
<property name="minimum">
<number>3</number>
76,7 → 71,7
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<item row="2" column="0">
<widget class="QSlider" name="rotationSlider">
<property name="toolTip">
<string>Degrees of rotation for polygons</string>
95,42 → 90,72
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Inner Rotation:</string>
</property>
</widget>
</layout>
</item>
<item row="3" column="1">
<widget class="ScrSpinBox" name="innerRotationspinBox">
<property name="minimum">
<number>-180</number>
<item row="0" column="1" rowspan="2">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="Preview">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximum">
<number>180</number>
<property name="minimumSize">
<size>
<width>280</width>
<height>280</height>
</size>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QSlider" name="innerRotationSlider">
<property name="minimum">
<number>-180</number>
<property name="maximumSize">
<size>
<width>280</width>
<height>280</height>
</size>
</property>
<property name="maximum">
<number>180</number>
<property name="sizeIncrement">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
<property name="toolTip">
<string>Sample Polygon</string>
</property>
<property name="tickPosition">
<enum>QSlider::TicksBelow</enum>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<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>
<item>
<item row="1" column="0">
<widget class="QGroupBox" name="applyConvexGroupBox">
<property name="toolTip">
<string>Apply Convex/Concave Factor to change shape of Polygons</string>
168,7 → 193,7
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<item row="1" column="0">
<widget class="QSlider" name="factorSlider">
<property name="toolTip">
<string>A negative value will make the polygon concave (or star shaped), a positive value will make it convex</string>
188,6 → 213,39
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Inner Rotation:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="ScrSpinBox" name="innerRotationspinBox">
<property name="minimum">
<number>-180</number>
</property>
<property name="maximum">
<number>180</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QSlider" name="innerRotationSlider">
<property name="minimum">
<number>-180</number>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TicksBelow</enum>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Inner C&amp;urvature:</string>
197,7 → 255,7
</property>
</widget>
</item>
<item row="2" column="1">
<item row="4" column="1">
<widget class="ScrSpinBox" name="curvatureSpinBox">
<property name="suffix">
<string> %</string>
207,7 → 265,7
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<item row="5" column="0">
<widget class="QSlider" name="curvatureSlider">
<property name="maximum">
<number>100</number>
220,7 → 278,7
</property>
</widget>
</item>
<item row="4" column="0">
<item row="6" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Outer Curvature:</string>
227,7 → 285,7
</property>
</widget>
</item>
<item row="4" column="1">
<item row="6" column="1">
<widget class="ScrSpinBox" name="OuterCurvatureSpinBox">
<property name="suffix">
<string> %</string>
237,7 → 295,7
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<item row="7" column="0">
<widget class="QSlider" name="OuterCurvatureSlider">
<property name="maximum">
<number>100</number>
251,75 → 309,22
</widget>
</item>
</layout>
<zorder>label_3</zorder>
<zorder>factorSpinBox</zorder>
<zorder>factorSlider</zorder>
<zorder>label_5</zorder>
<zorder>curvatureSpinBox</zorder>
<zorder>curvatureSlider</zorder>
<zorder>label_6</zorder>
<zorder>OuterCurvatureSpinBox</zorder>
<zorder>OuterCurvatureSlider</zorder>
<zorder>innerRotationSlider</zorder>
<zorder>innerRotationspinBox</zorder>
<zorder>label_4</zorder>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="Preview">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>280</width>
<height>280</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>280</width>
<height>280</height>
</size>
</property>
<property name="sizeIncrement">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Sample Polygon</string>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<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>
<customwidgets>
<customwidget>
<class>ScrSpinBox</class>
/trunk/Scribus/scribus/ui/polyprops.cpp
23,19 → 23,9
PolygonPropsLayout->setSpacing(5);
polyWidget = new PolygonWidget(this, polyC, polyF, polyS, polyR, polyCurvature, polyInnerRot, polyOuterCurvature, true);
PolygonPropsLayout->addWidget( polyWidget );
Layout1 = new QHBoxLayout;
Layout1->setMargin(0);
Layout1->setSpacing(5);
QSpacerItem* spacer_2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_2 );
okButton = new QPushButton(this);
okButton->setText( tr("End Edit"));
okButton->setDefault( true );
Layout1->addWidget( okButton );
PolygonPropsLayout->addLayout( Layout1 );
// signals and slots connections
connect(polyWidget, SIGNAL(NewVectors(int, double, bool, double, double, double, double)), this, SIGNAL(NewVectors(int, double, bool, double, double, double, double)));
connect(okButton, SIGNAL(clicked()), this, SIGNAL(endEdit()));
connect (this, SIGNAL(accepted()), this, SIGNAL(endEdit()));
}
 
void PolyVectorDialog::setValues(int polyCorners, double polyF, bool polyUseConvexFactor, double polyRotation, double polyCurvature, double polyInnerRot, double polyOuterCurvature)
/trunk/Scribus/scribus/ui/polyprops.h
25,7 → 25,6
~PolyVectorDialog() {};
void setValues(int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
PolygonWidget* polyWidget;
QPushButton* okButton;
 
signals:
void NewVectors(int, double, bool, double, double, double, double);
33,7 → 32,6
 
protected:
QVBoxLayout* PolygonPropsLayout;
QHBoxLayout* Layout1;
 
};