OSDN Git Service

QmlDesigner.PropertyEditor: More property panes
authorMarco Bubke <marco.bubke@nokia.com>
Mon, 18 Apr 2011 12:44:22 +0000 (14:44 +0200)
committerMarco Bubke <marco.bubke@nokia.com>
Tue, 19 Apr 2011 15:43:45 +0000 (17:43 +0200)
share/qtcreator/qmldesigner/propertyeditor/Qt/FlickableGroupBox.qml [new file with mode: 0644]
share/qtcreator/qmldesigner/propertyeditor/Qt/FlickableSpecifics.qml
share/qtcreator/qmldesigner/propertyeditor/Qt/FlowSpecifics.qml [new file with mode: 0644]
share/qtcreator/qmldesigner/propertyeditor/Qt/GridSpecifics.qml [new file with mode: 0644]
share/qtcreator/qmldesigner/propertyeditor/Qt/GridViewSpecifics.qml [new file with mode: 0644]
share/qtcreator/qmldesigner/propertyeditor/Qt/ListViewSpecifics.qml
share/qtcreator/qmldesigner/propertyeditor/Qt/PathViewSpecifics.qml [new file with mode: 0644]
share/qtcreator/qmldesigner/propertyeditor/Qt/RowSpecifics.qml [new file with mode: 0644]

diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/FlickableGroupBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/FlickableGroupBox.qml
new file mode 100644 (file)
index 0000000..a779aee
--- /dev/null
@@ -0,0 +1,128 @@
+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
+    }
+}
index 87e0a04..6c4d082 100644 (file)
@@ -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 {
         }
     }
 }
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/FlowSpecifics.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/FlowSpecifics.qml
new file mode 100644 (file)
index 0000000..038a754
--- /dev/null
@@ -0,0 +1,61 @@
+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;
+                }
+            }
+        }
+    }
+}
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/GridSpecifics.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/GridSpecifics.qml
new file mode 100644 (file)
index 0000000..0400662
--- /dev/null
@@ -0,0 +1,77 @@
+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;
+                }
+            }
+        }
+    }
+}
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/GridViewSpecifics.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/GridViewSpecifics.qml
new file mode 100644 (file)
index 0000000..836ba69
--- /dev/null
@@ -0,0 +1,180 @@
+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
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+}
index 5680a12..26e9248 100644 (file)
@@ -2,5 +2,224 @@ 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("List 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("Navigation 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", "TopToBottom"] }
+//                            currentText: backendValues.layoutDirection.value;
+//                            onItemsChanged: {
+//                                currentText =  backendValues.layoutDirection.value;
+//                            }
+//                            backendValue: backendValues.layoutDirection
+//                        }
+//                    }
+//                } //QWidget
+
+                QWidget {
+                    layout: HorizontalLayout {
+                        Label {
+                            text: qsTr("Orientation")
+                            toolTip: qsTr("This property holds the orientation of the list.")
+                        }
+
+                        ComboBox {
+                            baseStateFlag: isBaseState
+                            items : { ["Horizontal", "Vertical"] }
+                            currentText: backendValues.snapMode.value;
+                            onItemsChanged: {
+                                currentText =  backendValues.snapMode.value;
+                            }
+                            backendValue: backendValues.snapMode
+                        }
+                    }
+                } //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
+                IntEditor {
+                    backendValue: backendValues.spacing
+                    caption: qsTr("Spacing")
+                    toolTip: qsTr("This property holds the spacing between items.")
+                    baseStateFlag: isBaseState;
+                    step: 1;
+                    minimumValue: 0;
+                    maximumValue: 1000;
+                }
+                GroupBox {
+                    finished: finishedNotify;
+                    caption: qsTr("List 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.highlightResizeDuration
+                            caption: qsTr("Resize Duration")
+                            toolTip: qsTr("This property holds the resize animation duration of the highlight delegate.")
+                            baseStateFlag: isBaseState;
+                            step: 1;
+                            minimumValue: 0;
+                            maximumValue: 1000;
+                        }
+                        IntEditor {
+                            backendValue: backendValues.highlightResizeSpeed
+                            caption: qsTr("Resize Speed")
+                            toolTip: qsTr("This property holds the resize 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
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
 }
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/PathViewSpecifics.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/PathViewSpecifics.qml
new file mode 100644 (file)
index 0000000..6a4cc5d
--- /dev/null
@@ -0,0 +1,158 @@
+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("Path View")
+            layout: VerticalLayout {
+                QWidget {  // 1
+                    layout: HorizontalLayout {
+
+                        Label {
+                            text: qsTr("Drag Margin")
+                        }
+
+                        DoubleSpinBox {
+                            alignRight: false
+                            spacing: 4
+                            singleStep: 1;
+                            backendValue: backendValues.dragMargin
+                            minimum: -100;
+                            maximum: 100;
+                            baseStateFlag: isBaseState;
+                        }
+                    }
+                }
+                QWidget {  // 1
+                    layout: HorizontalLayout {
+
+                        Label {
+                            text: qsTr("Flick Deceleration")
+                        }
+
+                        DoubleSpinBox {
+                            alignRight: false
+                            spacing: 4
+                            singleStep: 1;
+                            backendValue: backendValues.flickDeceleration
+                            minimum: 0;
+                            maximum: 1000;
+                            baseStateFlag: isBaseState;
+                        }
+                    }
+                }
+                QWidget {  // 1
+                    layout: HorizontalLayout {
+                        Label {
+                            text: qsTr("Follows Current")
+                            toolTip: qsTr("A user cannot drag or flick a PathView that is not interactive.")
+                        }
+                        CheckBox {
+                            backendValue: backendValues.interactive
+                            baseStateFlag: isBaseState;
+                            checkable: True
+                        }
+                    }
+                }
+                QWidget {  // 1
+                    layout: HorizontalLayout {
+
+                        Label {
+                            text: qsTr("Offset")
+                            toolTip: qsTr("The offset specifies how far along the path the items are from their initial positions. This is a real number that ranges from 0.0 to the count of items in the model.")
+                        }
+                        DoubleSpinBox {
+                            alignRight: false
+                            spacing: 4
+                            singleStep: 1;
+                            backendValue: backendValues.offset
+                            minimum: 0;
+                            maximum: 100;
+                            baseStateFlag: isBaseState;
+                        }
+                    }
+                }
+                IntEditor {
+                    backendValue: backendValues.pathItemCount
+                    caption: qsTr("Path Item Count")
+                    toolTip: qsTr("This property holds the number of items visible on the path at any one time.")
+                    baseStateFlag: isBaseState;
+                    step: 1;
+                    minimumValue: -1;
+                    maximumValue: 1000;
+                }
+                GroupBox {
+                    finished: finishedNotify;
+                    caption: qsTr("Grid View ViewHighlight")
+                    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.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
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+}
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/RowSpecifics.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/RowSpecifics.qml
new file mode 100644 (file)
index 0000000..caf7a0c
--- /dev/null
@@ -0,0 +1,44 @@
+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("Row")
+            layout: VerticalLayout {
+//                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;
+                }
+            }
+        }
+    }
+}