Skip to content

Commit

Permalink
Migrate QML
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Jul 15, 2022
1 parent ac8312c commit 1ccd8ba
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions src/gui/plugins/component_inspector/Light.qml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Rectangle {

Component {
id: spinZeroMax
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: 0
Expand All @@ -185,7 +185,7 @@ Rectangle {
}
Component {
id: spinNoLimit
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: -100000
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector/Material.qml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Rectangle {
// Used to create rgba spin boxes
Component {
id: spinBoxMaterialColor
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: 0
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector/Physics.qml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Rectangle {

Component {
id: writablePositiveNumber
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: minPhysParam
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector/Pose3d.qml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Rectangle {
*/
Component {
id: writableNumber
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: -spinMax
Expand Down
8 changes: 4 additions & 4 deletions src/gui/plugins/component_inspector/SphericalCoordinates.qml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: latSpin
Layout.fillWidth: true
height: 40
Expand Down Expand Up @@ -217,7 +217,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: lonSpin
Layout.fillWidth: true
height: 40
Expand Down Expand Up @@ -255,7 +255,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: elevationSpin
Layout.fillWidth: true
height: 40
Expand Down Expand Up @@ -293,7 +293,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: headingSpin
Layout.fillWidth: true
height: 40
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector/Vector3d.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Rectangle {
*/
Component {
id: writableNumber
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: numberValue
minimumValue: -spinMax
Expand Down
4 changes: 2 additions & 2 deletions src/gui/plugins/component_inspector_editor/Light.qml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Rectangle {

Component {
id: spinZeroMax
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: 0
Expand All @@ -177,7 +177,7 @@ Rectangle {
}
Component {
id: spinNoLimit
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: -Number.MAX_VALUE
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector_editor/Material.qml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Rectangle {
// Used to create rgba spin boxes
Component {
id: spinBoxMaterialColor
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: 0
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector_editor/Physics.qml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Rectangle {

Component {
id: writablePositiveNumber
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: minPhysParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: latSpin
Layout.fillWidth: true
height: 40
Expand Down Expand Up @@ -217,7 +217,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: lonSpin
Layout.fillWidth: true
height: 40
Expand Down Expand Up @@ -255,7 +255,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: elevationSpin
Layout.fillWidth: true
height: 40
Expand Down Expand Up @@ -293,7 +293,7 @@ Rectangle {
anchors.centerIn: parent
}
}
IgnSpinBox {
GzSpinBox {
id: headingSpin
Layout.fillWidth: true
height: 40
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Rectangle {
*/
Component {
id: writableNumber
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: writableSpin.activeFocus ? writableSpin.value : numberValue
minimumValue: minValue
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/component_inspector_editor/Vector3d.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Rectangle {
*/
Component {
id: writableNumber
IgnSpinBox {
GzSpinBox {
id: writableSpin
value: numberValue
minimumValue: -spinMax
Expand Down
2 changes: 1 addition & 1 deletion src/gui/plugins/joint_position_controller/Joint.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Rectangle {
}
}

IgnSpinBox {
GzSpinBox {
id: spin
value: spin.activeFocus ? joint.targetValue : model.value
minimumValue: model.min
Expand Down
16 changes: 8 additions & 8 deletions src/gui/plugins/plot_3d/Plot3D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Rectangle {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: x
Layout.fillWidth: true
Layout.row: 1
Expand All @@ -155,7 +155,7 @@ Rectangle {
Layout.column: 2
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: y
Layout.fillWidth: true
value: Plot3D.offset.y
Expand All @@ -172,7 +172,7 @@ Rectangle {
Layout.column: 4
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: z
Layout.fillWidth: true
Layout.row: 1
Expand Down Expand Up @@ -204,7 +204,7 @@ Rectangle {
leftPadding: 5
}

IgnSpinBox {
GzSpinBox {
id: r
Layout.fillWidth: true
Layout.row: 3
Expand All @@ -225,7 +225,7 @@ Rectangle {
leftPadding: 5
}

IgnSpinBox {
GzSpinBox {
id: g
Layout.fillWidth: true
Layout.row: 3
Expand All @@ -246,7 +246,7 @@ Rectangle {
leftPadding: 5
}

IgnSpinBox {
GzSpinBox {
id: b
Layout.fillWidth: true
Layout.row: 3
Expand All @@ -271,7 +271,7 @@ Rectangle {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: minDist
Layout.fillWidth: true
Layout.row: 0
Expand All @@ -291,7 +291,7 @@ Rectangle {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: maxPoints
Layout.fillWidth: true
Layout.row: 1
Expand Down
12 changes: 6 additions & 6 deletions src/gui/plugins/transform_control/TransformControl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ ToolBar {
Layout.row: 1
Layout.column: 0
}
IgnSpinBox {
GzSpinBox {
id: xEntry
minimumValue: 0.01
maximumValue: 100.0
Expand All @@ -368,7 +368,7 @@ ToolBar {
Layout.row: 2
Layout.column: 0
}
IgnSpinBox {
GzSpinBox {
id: yEntry
minimumValue: 0.01
maximumValue: 100.0
Expand All @@ -391,7 +391,7 @@ ToolBar {
Layout.row: 3
Layout.column: 0
}
IgnSpinBox {
GzSpinBox {
id: zEntry
minimumValue: 0.01
maximumValue: 100.0
Expand Down Expand Up @@ -423,7 +423,7 @@ ToolBar {
Layout.row: 1
Layout.column: 2
}
IgnSpinBox {
GzSpinBox {
id: rollEntry
minimumValue: 0.01
maximumValue: 180.0
Expand All @@ -446,7 +446,7 @@ ToolBar {
Layout.row: 2
Layout.column: 2
}
IgnSpinBox {
GzSpinBox {
id: pitchEntry
minimumValue: 0.01
maximumValue: 180.0
Expand All @@ -469,7 +469,7 @@ ToolBar {
Layout.row: 3
Layout.column: 2
}
IgnSpinBox {
GzSpinBox {
id: yawEntry
minimumValue: 0.01
maximumValue: 180.0
Expand Down
16 changes: 8 additions & 8 deletions src/gui/plugins/view_angle/ViewAngle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ ColumnLayout {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: x
Layout.fillWidth: true
Layout.row: 0
Expand All @@ -246,7 +246,7 @@ ColumnLayout {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: y
Layout.fillWidth: true
Layout.row: 1
Expand All @@ -265,7 +265,7 @@ ColumnLayout {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: z
Layout.fillWidth: true
Layout.row: 2
Expand All @@ -285,7 +285,7 @@ ColumnLayout {
Layout.column: 2
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: roll
Layout.fillWidth: true
Layout.row: 0
Expand All @@ -304,7 +304,7 @@ ColumnLayout {
Layout.column: 2
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: pitch
Layout.fillWidth: true
Layout.row: 1
Expand All @@ -323,7 +323,7 @@ ColumnLayout {
Layout.column: 2
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: yaw
Layout.fillWidth: true
Layout.row: 2
Expand Down Expand Up @@ -358,7 +358,7 @@ ColumnLayout {
Layout.column: 0
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: nearClip
Layout.fillWidth: true
Layout.row: 0
Expand All @@ -377,7 +377,7 @@ ColumnLayout {
Layout.column: 2
leftPadding: 5
}
IgnSpinBox {
GzSpinBox {
id: farClip
Layout.fillWidth: true
Layout.row: 0
Expand Down
Loading

0 comments on commit 1ccd8ba

Please sign in to comment.