Commit a0f990ca authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.PropertyEditor: More property panes

parent 9a8cf34e
import Qt 4.7
import Bauhaus 1.0
GroupBox {
finished: finishedNotify;
caption: qsTr("Flickable")
layout: VerticalLayout {
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Content Size")
}
DoubleSpinBox {
text: "W"
alignRight: false
spacing: 4
singleStep: 1;
backendValue: backendValues.contentWidth
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
DoubleSpinBox {
singleStep: 1;
text: "H"
alignRight: false
spacing: 4
backendValue: backendValues.contentHeight
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
}
} //QWidget //1
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Flickable Direction")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["AutoFlickDirection", "HorizontalFlick", "VerticalFlick", "HorizontalAndVerticalFlick"] }
currentText: backendValues.flickableDirection.value;
onItemsChanged: {
currentText = backendValues.flickableDirection.value;
}
backendValue: backendValues.flickableDirection
}
}
} //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Bounds Behavior")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["StopAtBounds", "DragOverBounds", "DragAndOvershootBounds"] }
currentText: backendValues.boundsBehavior.value;
onItemsChanged: {
currentText = backendValues.boundsBehavior.value;
}
backendValue: backendValues.boundsBehavior
}
}
} //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text:qsTr("Interactive")
}
CheckBox {
text: ""
backendValue: backendValues.interactive;
baseStateFlag: isBaseState;
checkable: true;
}
}
}// QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Max. Velocity")
toolTip: qsTr("Maximum Flick Velocity")
}
DoubleSpinBox {
text: ""
alignRight: false
spacing: 4
singleStep: 1;
backendValue: backendValues.maximumFlickVelocity
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
}
} //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Deceleration")
toolTip: qsTr("Flick Deceleration")
}
DoubleSpinBox {
text: ""
alignRight: false
spacing: 4
singleStep: 1;
backendValue: backendValues.flickDeceleration
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
}
} //QWidget
}
}
......@@ -8,130 +8,7 @@ QWidget {
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
finished: finishedNotify;
caption: qsTr("Flickable")
layout: VerticalLayout {
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Content Size")
}
DoubleSpinBox {
text: "W"
alignRight: false
spacing: 4
singleStep: 1;
backendValue: backendValues.contentWidth
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
DoubleSpinBox {
singleStep: 1;
text: "H"
alignRight: false
spacing: 4
backendValue: backendValues.contentHeight
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
}
} //QWidget //1
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Flickable Direction")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["AutoFlickDirection", "HorizontalFlick", "VerticalFlick", "HorizontalAndVerticalFlick"] }
currentText: backendValues.flickableDirection.value;
onItemsChanged: {
currentText = backendValues.flickableDirection.value;
}
backendValue: backendValues.flickableDirection
}
}
} //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Bounds Behavior")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["StopAtBounds", "DragOverBounds", "DragAndOvershootBounds"] }
currentText: backendValues.boundsBehavior.value;
onItemsChanged: {
currentText = backendValues.boundsBehavior.value;
}
backendValue: backendValues.boundsBehavior
}
}
} //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text:qsTr("Interactive")
}
CheckBox {
text: ""
backendValue: backendValues.interactive;
baseStateFlag: isBaseState;
checkable: true;
}
}
}// QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Max. Velocity")
toolTip: qsTr("Maximum Flick Velocity")
}
DoubleSpinBox {
text: ""
alignRight: false
spacing: 4
singleStep: 1;
backendValue: backendValues.maximumFlickVelocity
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
}
} //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Deceleration")
toolTip: qsTr("Flick Deceleration")
}
DoubleSpinBox {
text: ""
alignRight: false
spacing: 4
singleStep: 1;
backendValue: backendValues.flickDeceleration
minimum: 0;
maximum: 8000;
baseStateFlag: isBaseState;
}
}
} //QWidget
}
FlickableGroupBox {
}
}
}
import Qt 4.7
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
finished: finishedNotify;
caption: qsTr("Flow")
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Flow")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["LeftToRight", "TopToBottom"] }
currentText: backendValues.flow.value;
onItemsChanged: {
currentText = backendValues.flow.value;
}
backendValue: backendValues.flow
}
}
} //QWidget
// Qt namespace enums not supported by the rewriter
// QWidget {
// layout: HorizontalLayout {
// Label {
// text: qsTr("Layout Direction")
// }
// ComboBox {
// baseStateFlag: isBaseState
// items : { ["LeftToRight", "RightToLeft"] }
// currentText: backendValues.layoutDirection.value;
// onItemsChanged: {
// currentText = backendValues.layoutDirection.value;
// }
// backendValue: backendValues.layoutDirection
// }
// }
// } //QWidget
IntEditor {
backendValue: backendValues.spacing
caption: qsTr("Spacing")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 100;
}
}
}
}
}
import Qt 4.7
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
finished: finishedNotify;
caption: qsTr("Grid")
layout: VerticalLayout {
IntEditor {
backendValue: backendValues.columns
caption: qsTr("Columns")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 100;
}
IntEditor {
backendValue: backendValues.rows
caption: qsTr("Rows")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 100;
}
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Flow")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["LeftToRight", "TopToBottom"] }
currentText: backendValues.flow.value;
onItemsChanged: {
currentText = backendValues.flow.value;
}
backendValue: backendValues.flow
}
}
} //QWidget
// Qt namespace enums not supported by the rewriter
// QWidget {
// layout: HorizontalLayout {
// Label {
// text: qsTr("Layout Direction")
// }
// ComboBox {
// baseStateFlag: isBaseState
// items : { ["LeftToRight", "RightToLeft"] }
// currentText: backendValues.layoutDirection.value;
// onItemsChanged: {
// currentText = backendValues.layoutDirection.value;
// }
// backendValue: backendValues.layoutDirection
// }
// }
// } //QWidget
IntEditor {
backendValue: backendValues.spacing
caption: qsTr("Spacing")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 100;
}
}
}
}
}
import Qt 4.7
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
FlickableGroupBox {
}
GroupBox {
finished: finishedNotify;
caption: qsTr("Grid View")
layout: VerticalLayout {
IntEditor {
backendValue: backendValues.cacheBuffer
caption: qsTr("Cache Buffer")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.cellHeight
caption: qsTr("Cell Height")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 200;
}
IntEditor {
backendValue: backendValues.cellWidth
caption: qsTr("Cell Width")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Flow")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["LeftToRight", "TopToBottom"] }
currentText: backendValues.flow.value;
onItemsChanged: {
currentText = backendValues.flow.value;
}
backendValue: backendValues.flow
}
}
} //QWidget
IntEditor {
backendValue: backendValues.keyNavigationWraps
caption: qsTr("Resize Wraps")
toolTip: qsTr("This property holds whether the grid wraps key navigation.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
// Qt namespace enums not supported by the rewriter
// QWidget {
// layout: HorizontalLayout {
// Label {
// text: qsTr("Layout Direction")
// }
// ComboBox {
// baseStateFlag: isBaseState
// items : { ["LeftToRight", "RightToLeft"] }
// currentText: backendValues.layoutDirection.value;
// onItemsChanged: {
// currentText = backendValues.layoutDirection.value;
// }
// backendValue: backendValues.layoutDirection
// }
// }
// } //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Snap Mode")
toolTip: qsTr("This property determines how the view scrolling will settle following a drag or flick.")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["NoSnap", "SnapToRow", "SnapOneRow"] }
currentText: backendValues.snapMode.value;
onItemsChanged: {
currentText = backendValues.snapMode.value;
}
backendValue: backendValues.snapMode
}
}
} //QWidget
GroupBox {
finished: finishedNotify;
caption: qsTr("Grid View Highlight")
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Righlight Range")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"] }
currentText: backendValues.highlightRangeMode.value;
onItemsChanged: {
currentText = backendValues.highlightRangeMode.value;
}
backendValue: backendValues.highlightRangeMode
}
}
} //QWidget
IntEditor {
backendValue: backendValues.highlightMoveDuration
caption: qsTr("Move Duration")
toolTip: qsTr("This property holds the move animation duration of the highlight delegate.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.highlightMoveSpeed
caption: qsTr("Move Speed")
toolTip: qsTr("This property holds the move animation speed of the highlight delegate.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.preferredHighlightBegin
caption: qsTr("Preferred Begin")
toolTip: qsTr("Preferred Highlight Begin - must be smaller than Preferred Highlight End")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.preferredHighlightEnd
caption: qsTr("Preferred End")
toolTip: qsTr("Preferred Highlight End - must be larger than Preferred Highlight End")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Follows Current")
}
CheckBox {
backendValue: backendValues.highlightFollowsCurrentItem
toolTip: qsTr("This property sets whether the highlight is managed by the view.")
baseStateFlag: isBaseState;
checkable: True
}
}
}
}
}
}
}
}
}
......@@ -2,5 +2,224 @@ import Qt 4.7
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {