2010-04-13 11:37:57 +02:00
|
|
|
import Qt 4.7
|
2010-01-07 12:14:35 +01:00
|
|
|
import Bauhaus 1.0
|
|
|
|
|
|
|
|
|
|
|
2010-04-13 11:37:57 +02:00
|
|
|
import Qt 4.7
|
2010-03-01 15:59:57 +01:00
|
|
|
import Bauhaus 1.0
|
2010-01-07 12:14:35 +01:00
|
|
|
|
|
|
|
|
|
2010-03-01 15:59:57 +01:00
|
|
|
QWidget {
|
|
|
|
|
layout: QVBoxLayout {
|
|
|
|
|
topMargin: 0
|
|
|
|
|
bottomMargin: 0
|
|
|
|
|
leftMargin: 0
|
|
|
|
|
rightMargin: 0
|
|
|
|
|
spacing: 0
|
|
|
|
|
GroupBox {
|
|
|
|
|
maximumHeight: 240;
|
2010-02-24 11:15:50 +01:00
|
|
|
|
2010-03-01 15:59:57 +01:00
|
|
|
finished: finishedNotify;
|
2010-04-08 09:31:26 +02:00
|
|
|
caption: qsTr("Image")
|
2010-03-01 15:59:57 +01:00
|
|
|
|
|
|
|
|
layout: VerticalLayout {
|
2010-02-24 11:15:50 +01:00
|
|
|
|
2010-04-08 14:12:22 +02:00
|
|
|
QWidget {
|
|
|
|
|
layout: HorizontalLayout {
|
|
|
|
|
Label {
|
|
|
|
|
text: qsTr("Source")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FileWidget {
|
|
|
|
|
enabled: isBaseState || backendValues.id.value != "";
|
|
|
|
|
fileName: backendValues.source.value;
|
|
|
|
|
onFileNameChanged: {
|
|
|
|
|
backendValues.source.value = fileName;
|
|
|
|
|
}
|
|
|
|
|
itemNode: anchorBackend.itemNode
|
|
|
|
|
filter: "*.png *.gif *.jpg"
|
|
|
|
|
showComboBox: true
|
|
|
|
|
}
|
2010-02-24 11:15:50 +01:00
|
|
|
}
|
2010-04-08 16:38:57 +02:00
|
|
|
}
|
2010-02-24 11:15:50 +01:00
|
|
|
|
2010-03-01 15:59:57 +01:00
|
|
|
QWidget {
|
|
|
|
|
layout: HorizontalLayout {
|
|
|
|
|
Label {
|
2010-03-25 14:59:54 +01:00
|
|
|
text: qsTr("Fill Mode")
|
2010-03-01 15:59:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
|
baseStateFlag: isBaseState
|
|
|
|
|
items : { ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally"] }
|
|
|
|
|
currentText: backendValues.fillMode.value;
|
|
|
|
|
onItemsChanged: {
|
|
|
|
|
currentText = backendValues.fillMode.value;
|
|
|
|
|
}
|
|
|
|
|
backendValue: backendValues.fillMode
|
|
|
|
|
}
|
|
|
|
|
}
|
2010-02-24 11:15:50 +01:00
|
|
|
}
|
|
|
|
|
|
2010-03-01 15:59:57 +01:00
|
|
|
QWidget {
|
|
|
|
|
layout: HorizontalLayout {
|
|
|
|
|
Label {
|
2010-03-25 14:59:54 +01:00
|
|
|
text: qsTr("Aliasing")
|
2010-03-01 15:59:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CheckBox {
|
2010-03-25 14:59:54 +01:00
|
|
|
text: qsTr("Smooth")
|
2010-03-01 15:59:57 +01:00
|
|
|
backendValue: backendValues.smooth
|
|
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
checkable: true;
|
|
|
|
|
}
|
|
|
|
|
}
|
2010-02-24 11:15:50 +01:00
|
|
|
}
|
2010-03-01 15:59:57 +01:00
|
|
|
|
2010-04-08 16:38:57 +02:00
|
|
|
QWidget { // 1
|
|
|
|
|
layout: HorizontalLayout {
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
text: qsTr("Source Size")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DoubleSpinBox {
|
|
|
|
|
text: "W"
|
|
|
|
|
alignRight: false
|
|
|
|
|
spacing: 4
|
|
|
|
|
singleStep: 1;
|
|
|
|
|
enabled: anchorBackend.hasParent;
|
|
|
|
|
backendValue: backendValues.sourceSize_width
|
|
|
|
|
minimum: -2000;
|
|
|
|
|
maximum: 2000;
|
|
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DoubleSpinBox {
|
|
|
|
|
singleStep: 1;
|
|
|
|
|
text: "H"
|
|
|
|
|
alignRight: false
|
|
|
|
|
spacing: 4
|
|
|
|
|
backendValue: backendValues.sourceSize_height
|
|
|
|
|
enabled: anchorBackend.hasParent;
|
|
|
|
|
minimum: -2000;
|
|
|
|
|
maximum: 2000;
|
|
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} //QWidget //1
|
|
|
|
|
|
|
|
|
|
QWidget { // 1
|
|
|
|
|
layout: HorizontalLayout {
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
text: qsTr("Painted Size")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DoubleSpinBox {
|
|
|
|
|
text: "W"
|
|
|
|
|
alignRight: false
|
|
|
|
|
spacing: 4
|
|
|
|
|
singleStep: 1;
|
|
|
|
|
enabled: anchorBackend.hasParent;
|
|
|
|
|
backendValue: backendValues.paintedWidth
|
|
|
|
|
minimum: -2000;
|
|
|
|
|
maximum: 2000;
|
|
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DoubleSpinBox {
|
|
|
|
|
singleStep: 1;
|
|
|
|
|
text: "H"
|
|
|
|
|
alignRight: false
|
|
|
|
|
spacing: 4
|
|
|
|
|
backendValue: backendValues.paintedHeight
|
|
|
|
|
enabled: anchorBackend.hasParent;
|
|
|
|
|
minimum: -2000;
|
|
|
|
|
maximum: 2000;
|
|
|
|
|
baseStateFlag: isBaseState;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} //QWidget //1
|
|
|
|
|
|
2010-02-24 11:15:50 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-01 15:59:57 +01:00
|
|
|
QScrollArea {}
|
2010-01-07 12:14:35 +01:00
|
|
|
}
|
|
|
|
|
}
|