forked from qt-creator/qt-creator
Fix ids that start with uppercase letters that were missed
previously.
This commit is contained in:
@@ -26,7 +26,7 @@ QWidget {
|
|||||||
x: 0;
|
x: 0;
|
||||||
y: 0;
|
y: 0;
|
||||||
width:200;fixedWidth: width;
|
width:200;fixedWidth: width;
|
||||||
id: QPushButton1;
|
id: qPushButton1;
|
||||||
onReleased: fill();
|
onReleased: fill();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ QWidget {
|
|||||||
height:20;fixedHeight: height;
|
height:20;fixedHeight: height;
|
||||||
width:200;fixedWidth: width;
|
width:200;fixedWidth: width;
|
||||||
x: 0;
|
x: 0;
|
||||||
id: QPushButton3;
|
id: qPushButton3;
|
||||||
onReleased: breakLayout();
|
onReleased: breakLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ QWidget {
|
|||||||
y: 60;
|
y: 60;
|
||||||
//styleSheet: "border-radius:5px; background-color: #ffda82";
|
//styleSheet: "border-radius:5px; background-color: #ffda82";
|
||||||
width:30;fixedWidth: width;
|
width:30;fixedWidth: width;
|
||||||
id: QPushButton5;
|
id: qPushButton5;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: anchorBackend.leftAnchored;
|
checked: anchorBackend.leftAnchored;
|
||||||
onReleased: {
|
onReleased: {
|
||||||
@@ -69,7 +69,7 @@ QWidget {
|
|||||||
width:100;fixedWidth: 100;
|
width:100;fixedWidth: 100;
|
||||||
x: 49;
|
x: 49;
|
||||||
y: 30;
|
y: 30;
|
||||||
id: QPushButton6;
|
id: qPushButton6;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: anchorBackend.topAnchored;
|
checked: anchorBackend.topAnchored;
|
||||||
onReleased: {
|
onReleased: {
|
||||||
@@ -90,7 +90,7 @@ QWidget {
|
|||||||
//styleSheet: "border-radius:5px; background-color: #ffda82";
|
//styleSheet: "border-radius:5px; background-color: #ffda82";
|
||||||
width:30;fixedWidth: width;
|
width:30;fixedWidth: width;
|
||||||
height:100;fixedHeight: height;
|
height:100;fixedHeight: height;
|
||||||
id: QPushButton7;
|
id: qPushButton7;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: anchorBackend.rightAnchored;
|
checked: anchorBackend.rightAnchored;
|
||||||
onReleased: {
|
onReleased: {
|
||||||
@@ -111,7 +111,7 @@ QWidget {
|
|||||||
x: 49;
|
x: 49;
|
||||||
y: 164;
|
y: 164;
|
||||||
height:27;fixedHeight: height;
|
height:27;fixedHeight: height;
|
||||||
id: QPushButton8;
|
id: qPushButton8;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: anchorBackend.bottomAnchored;
|
checked: anchorBackend.bottomAnchored;
|
||||||
onReleased: {
|
onReleased: {
|
||||||
@@ -130,7 +130,7 @@ QWidget {
|
|||||||
x: 49;
|
x: 49;
|
||||||
y: 60;
|
y: 60;
|
||||||
height:100;fixedHeight: height;
|
height:100;fixedHeight: height;
|
||||||
id: QPushButton9;
|
id: qPushButton9;
|
||||||
|
|
||||||
QPushButton {
|
QPushButton {
|
||||||
width:24;fixedWidth: width;
|
width:24;fixedWidth: width;
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget { //This is a special CheckBox that does color coding for states
|
QWidget { //This is a special checkBox that does color coding for states
|
||||||
|
|
||||||
id: CheckBox;
|
id: checkBox;
|
||||||
|
|
||||||
property var backendValue;
|
property var backendValue;
|
||||||
|
|
||||||
property var baseStateFlag;
|
property var baseStateFlag;
|
||||||
property alias checkable: LocalCheckBox.checkable
|
property alias checkable: localCheckBox.checkable
|
||||||
property alias text: LocalLabel.text
|
property alias text: localLabel.text
|
||||||
|
|
||||||
onBaseStateFlagChanged: {
|
onBaseStateFlagChanged: {
|
||||||
evaluate();
|
evaluate();
|
||||||
@@ -36,14 +36,14 @@ QWidget { //This is a special CheckBox that does color coding for states
|
|||||||
function evaluate() {
|
function evaluate() {
|
||||||
if (baseStateFlag) {
|
if (baseStateFlag) {
|
||||||
if (backendValue != null && backendValue.isInModel)
|
if (backendValue != null && backendValue.isInModel)
|
||||||
LocalLabel.setStyleSheet("color: white;");
|
localLabel.setStyleSheet("color: white;");
|
||||||
else
|
else
|
||||||
LocalLabel.setStyleSheet("color: gray;");
|
localLabel.setStyleSheet("color: gray;");
|
||||||
} else {
|
} else {
|
||||||
if (backendValue != null && backendValue.isInSubState)
|
if (backendValue != null && backendValue.isInSubState)
|
||||||
LocalLabel.setStyleSheet("color: #7799FF;");
|
localLabel.setStyleSheet("color: #7799FF;");
|
||||||
else
|
else
|
||||||
LocalLabel.setStyleSheet("color: gray;");
|
localLabel.setStyleSheet("color: gray;");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -54,7 +54,7 @@ QWidget { //This is a special CheckBox that does color coding for states
|
|||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
QCheckBox {
|
QCheckBox {
|
||||||
id: LocalCheckBox
|
id: localCheckBox
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: (backendValue === undefined || backendValue === null) ? false : backendValue.value;
|
checked: (backendValue === undefined || backendValue === null) ? false : backendValue.value;
|
||||||
onToggled: {
|
onToggled: {
|
||||||
@@ -63,7 +63,7 @@ QWidget { //This is a special CheckBox that does color coding for states
|
|||||||
}
|
}
|
||||||
|
|
||||||
QLabel {
|
QLabel {
|
||||||
id: LocalLabel
|
id: localLabel
|
||||||
font.bold: true;
|
font.bold: true;
|
||||||
alignment: "Qt::AlignLeft | Qt::AlignVCenter"
|
alignment: "Qt::AlignLeft | Qt::AlignVCenter"
|
||||||
}
|
}
|
||||||
@@ -72,9 +72,9 @@ QWidget { //This is a special CheckBox that does color coding for states
|
|||||||
|
|
||||||
|
|
||||||
ExtendedFunctionButton {
|
ExtendedFunctionButton {
|
||||||
backendValue: CheckBox.backendValue
|
backendValue: checkBox.backendValue
|
||||||
y: 4
|
y: 4
|
||||||
x: LocalCheckBox.x + 18;
|
x: localCheckBox.x + 18;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QExtGroupBox {
|
QExtGroupBox {
|
||||||
id: ColorGroupBox
|
id: colorGroupBox
|
||||||
|
|
||||||
property var finished;
|
property var finished;
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ QExtGroupBox {
|
|||||||
QWidget {
|
QWidget {
|
||||||
id: colorButtonWidget
|
id: colorButtonWidget
|
||||||
height: 32
|
height: 32
|
||||||
width: ColorGroupBox.width
|
width: colorGroupBox.width
|
||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
topMargin: 4
|
topMargin: 4
|
||||||
rightMargin: 10;
|
rightMargin: 10;
|
||||||
@@ -33,11 +33,11 @@ QExtGroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LineEdit {
|
LineEdit {
|
||||||
backendValue: ColorGroupBox.backendColor
|
backendValue: colorGroupBox.backendColor
|
||||||
}
|
}
|
||||||
|
|
||||||
ColorButton {
|
ColorButton {
|
||||||
color: ColorGroupBox.backendColor.value;
|
color: colorGroupBox.backendColor.value;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
checked: false;
|
checked: false;
|
||||||
minimumHeight: 18;
|
minimumHeight: 18;
|
||||||
@@ -45,10 +45,10 @@ QExtGroupBox {
|
|||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
ColorGroupBox.collapsed = false;
|
colorGroupBox.collapsed = false;
|
||||||
colorButtonWidget.visible = true;
|
colorButtonWidget.visible = true;
|
||||||
} else {
|
} else {
|
||||||
ColorGroupBox.collapsed = true;
|
colorGroupBox.collapsed = true;
|
||||||
colorButtonWidget.visible = true;
|
colorButtonWidget.visible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -69,18 +69,18 @@ QExtGroupBox {
|
|||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
|
|
||||||
ColorBox {
|
ColorBox {
|
||||||
color: ColorGroupBox.backendColor.value;
|
color: colorGroupBox.backendColor.value;
|
||||||
onColorChanged: {
|
onColorChanged: {
|
||||||
ColorGroupBox.backendColor.value = color;
|
colorGroupBox.backendColor.value = color;
|
||||||
}
|
}
|
||||||
hue: hueControl.hue;
|
hue: hueControl.hue;
|
||||||
}
|
}
|
||||||
|
|
||||||
HueControl {
|
HueControl {
|
||||||
id: hueControl;
|
id: hueControl;
|
||||||
color: ColorGroupBox.backendColor.value;
|
color: colorGroupBox.backendColor.value;
|
||||||
onColorChanged: {
|
onColorChanged: {
|
||||||
ColorGroupBox.backendColor.value = color;
|
colorGroupBox.backendColor.value = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: ColorLabel
|
id: colorLabel
|
||||||
styleSheet: "color: #ffffff;"
|
styleSheet: "color: #ffffff;"
|
||||||
alignment: "Qt::AlignLeft | Qt::AlignVCenter"
|
alignment: "Qt::AlignLeft | Qt::AlignVCenter"
|
||||||
minimumHeight: 18
|
minimumHeight: 18
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QGroupBox {
|
QGroupBox {
|
||||||
id: ColorTypeButtons
|
id: colorTypeButtons
|
||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
topMargin: 6
|
topMargin: 6
|
||||||
rightMargin: 10;
|
rightMargin: 10;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ GroupBox {
|
|||||||
|
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
caption: "Grid";
|
caption: "Grid";
|
||||||
id: GridSpecifics;
|
id: gridSpecifics;
|
||||||
|
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QComboBox {
|
QComboBox {
|
||||||
id: ComboBox
|
id: comboBox
|
||||||
|
|
||||||
property var backendValue
|
property var backendValue
|
||||||
|
|
||||||
ExtendedFunctionButton {
|
ExtendedFunctionButton {
|
||||||
backendValue: (ComboBox.backendValue === undefined || ComboBox.backendValue === null)
|
backendValue: (comboBox.backendValue === undefined || comboBox.backendValue === null)
|
||||||
? null : ComboBox.backendValue;
|
? null : comboBox.backendValue;
|
||||||
y: 3
|
y: 3
|
||||||
x: 3
|
x: 3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget { //This is a special DoubleSpinBox that does color coding for states
|
QWidget { //This is a special doubleSpinBox that does color coding for states
|
||||||
id: DoubleSpinBox;
|
id: doubleSpinBox;
|
||||||
|
|
||||||
property var backendValue;
|
property var backendValue;
|
||||||
property var baseStateFlag;
|
property var baseStateFlag;
|
||||||
property alias singleStep: box.singleStep
|
property alias singleStep: box.singleStep
|
||||||
property alias minimum: box.minimum
|
property alias minimum: box.minimum
|
||||||
property alias maximum: box.maximum
|
property alias maximum: box.maximum
|
||||||
property alias spacing: LayoutH.spacing
|
property alias spacing: layoutH.spacing
|
||||||
property alias text: label.text
|
property alias text: label.text
|
||||||
property bool alignRight: true
|
property bool alignRight: true
|
||||||
property bool enabled: true
|
property bool enabled: true
|
||||||
@@ -53,28 +53,28 @@ QWidget { //This is a special DoubleSpinBox that does color coding for states
|
|||||||
}
|
}
|
||||||
|
|
||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
id: LayoutH;
|
id: layoutH;
|
||||||
|
|
||||||
QLabel {
|
QLabel {
|
||||||
id: label;
|
id: label;
|
||||||
font.bold: true;
|
font.bold: true;
|
||||||
alignment: DoubleSpinBox.alignRight ? "Qt::AlignRight | Qt::AlignVCenter" : "Qt::AlignLeft | Qt::AlignVCenter";
|
alignment: doubleSpinBox.alignRight ? "Qt::AlignRight | Qt::AlignVCenter" : "Qt::AlignLeft | Qt::AlignVCenter";
|
||||||
maximumWidth: 40
|
maximumWidth: 40
|
||||||
visible: DoubleSpinBox.text != "";
|
visible: doubleSpinBox.text != "";
|
||||||
}
|
}
|
||||||
|
|
||||||
QDoubleSpinBox {
|
QDoubleSpinBox {
|
||||||
id: box;
|
id: box;
|
||||||
decimals: 1;
|
decimals: 1;
|
||||||
keyboardTracking: false;
|
keyboardTracking: false;
|
||||||
enabled: (DoubleSpinBox.backendValue === undefined ||
|
enabled: (doubleSpinBox.backendValue === undefined ||
|
||||||
DoubleSpinBox.backendValue === null)
|
doubleSpinBox.backendValue === null)
|
||||||
? true : !backendValue.isBound && DoubleSpinBox.enabled;
|
? true : !backendValue.isBound && doubleSpinBox.enabled;
|
||||||
|
|
||||||
property bool readingFromBackend: false;
|
property bool readingFromBackend: false;
|
||||||
property real valueFromBackend: (DoubleSpinBox.backendValue === undefined ||
|
property real valueFromBackend: (doubleSpinBox.backendValue === undefined ||
|
||||||
DoubleSpinBox.backendValue === null || DoubleSpinBox.backendValue.value === undefined)
|
doubleSpinBox.backendValue === null || doubleSpinBox.backendValue.value === undefined)
|
||||||
? .0 : DoubleSpinBox.backendValue.value;
|
? .0 : doubleSpinBox.backendValue.value;
|
||||||
|
|
||||||
onValueFromBackendChanged: {
|
onValueFromBackendChanged: {
|
||||||
readingFromBackend = true;
|
readingFromBackend = true;
|
||||||
@@ -83,8 +83,8 @@ QWidget { //This is a special DoubleSpinBox that does color coding for states
|
|||||||
}
|
}
|
||||||
|
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
if (DoubleSpinBox.backendValue != null && readingFromBackend == false)
|
if (doubleSpinBox.backendValue != null && readingFromBackend == false)
|
||||||
DoubleSpinBox.backendValue.value = value;
|
doubleSpinBox.backendValue.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseOverChanged: {
|
onMouseOverChanged: {
|
||||||
@@ -94,11 +94,11 @@ QWidget { //This is a special DoubleSpinBox that does color coding for states
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExtendedFunctionButton {
|
ExtendedFunctionButton {
|
||||||
backendValue: (DoubleSpinBox.backendValue === undefined ||
|
backendValue: (doubleSpinBox.backendValue === undefined ||
|
||||||
DoubleSpinBox.backendValue === null)
|
doubleSpinBox.backendValue === null)
|
||||||
? null : DoubleSpinBox.backendValue;
|
? null : doubleSpinBox.backendValue;
|
||||||
y: box.y + 4
|
y: box.y + 4
|
||||||
x: box.x + 2
|
x: box.x + 2
|
||||||
visible: DoubleSpinBox.enabled
|
visible: doubleSpinBox.enabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
id: ExpressionEditor;
|
id: expressionEditor;
|
||||||
x: 6
|
x: 6
|
||||||
y: -400
|
y: -400
|
||||||
width: frame.width - 22
|
width: frame.width - 22
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
caption: "Effect"
|
caption: "Effect"
|
||||||
id: Extended;
|
id: extended;
|
||||||
maximumHeight: 260;
|
maximumHeight: 260;
|
||||||
|
|
||||||
layout: VerticalLayout{
|
layout: VerticalLayout{
|
||||||
@@ -89,8 +89,8 @@ GroupBox {
|
|||||||
visible: effectComboBox.currentText == "Opacity";
|
visible: effectComboBox.currentText == "Opacity";
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: OpcacityEffectSpinBox;
|
id: opcacityEffectSpinBox;
|
||||||
objectName: "OpcacityEffectSpinBox";
|
objectName: "opcacityEffectSpinBox";
|
||||||
backendValue: backendValues.effect.complexNode.exists ? backendValues.effect.complexNode.properties.opacity : null;
|
backendValue: backendValues.effect.complexNode.exists ? backendValues.effect.complexNode.properties.opacity : null;
|
||||||
minimum: 0;
|
minimum: 0;
|
||||||
maximum: 1;
|
maximum: 1;
|
||||||
|
|||||||
@@ -2,21 +2,21 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QToolButton {
|
QToolButton {
|
||||||
id: ExtendedFunctionButton
|
id: extendedFunctionButton
|
||||||
|
|
||||||
property var backendValue
|
property var backendValue
|
||||||
|
|
||||||
Script {
|
Script {
|
||||||
function setIcon() {
|
function setIcon() {
|
||||||
if (backendValue == null)
|
if (backendValue == null)
|
||||||
ExtendedFunctionButton.iconFromFile = "images/placeholder.png"
|
extendedFunctionButton.iconFromFile = "images/placeholder.png"
|
||||||
else if (backendValue.isBound) {
|
else if (backendValue.isBound) {
|
||||||
ExtendedFunctionButton.iconFromFile = "images/expression.png"
|
extendedFunctionButton.iconFromFile = "images/expression.png"
|
||||||
} else {
|
} else {
|
||||||
if (backendValue.complexNode != null && backendValue.complexNode.exists) {
|
if (backendValue.complexNode != null && backendValue.complexNode.exists) {
|
||||||
ExtendedFunctionButton.iconFromFile = "images/behaivour.png"
|
extendedFunctionButton.iconFromFile = "images/behaivour.png"
|
||||||
} else {
|
} else {
|
||||||
ExtendedFunctionButton.iconFromFile = "images/placeholder.png"
|
extendedFunctionButton.iconFromFile = "images/placeholder.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,8 +73,8 @@ QToolButton {
|
|||||||
QAction {
|
QAction {
|
||||||
text: "Set Expression";
|
text: "Set Expression";
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
expressionEdit.globalY = ExtendedFunctionButton.globalY;
|
expressionEdit.globalY = extendedFunctionButton.globalY;
|
||||||
expressionEdit.backendValue = ExtendedFunctionButton.backendValue
|
expressionEdit.backendValue = extendedFunctionButton.backendValue
|
||||||
expressionEdit.show();
|
expressionEdit.show();
|
||||||
expressionEdit.raise();
|
expressionEdit.raise();
|
||||||
expressionEdit.active = true;
|
expressionEdit.active = true;
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ QScrollArea {
|
|||||||
widgetResizable: true;
|
widgetResizable: true;
|
||||||
styleSheetFile: ":/qmldesigner/scrollbar.css";
|
styleSheetFile: ":/qmldesigner/scrollbar.css";
|
||||||
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
||||||
id: ExtendedPane;
|
id: extendedPane;
|
||||||
visible: false;
|
visible: false;
|
||||||
visible: false;
|
visible: false;
|
||||||
content: ProperyEditorExtended;
|
content: properyEditorExtended;
|
||||||
QFrame {
|
QFrame {
|
||||||
minimumHeight: 440;
|
minimumHeight: 440;
|
||||||
id: ProperyEditorExtended
|
id: properyEditorExtended
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
topMargin: 0;
|
topMargin: 0;
|
||||||
bottomMargin: 0;
|
bottomMargin: 0;
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ GroupBox {
|
|||||||
|
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: HorizontalVelocitySpinBox;
|
id: horizontalVelocitySpinBox;
|
||||||
objectName: "HorizontalVelocitySpinBox";
|
objectName: "horizontalVelocitySpinBox";
|
||||||
backendValue: backendValues.horizontalVelocity;
|
backendValue: backendValues.horizontalVelocity;
|
||||||
minimumWidth: 30;
|
minimumWidth: 30;
|
||||||
minimum: 0.1
|
minimum: 0.1
|
||||||
@@ -74,8 +74,8 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: VerticalVelocitySpinBox;
|
id: verticalVelocitySpinBox;
|
||||||
objectName: "VerticalVelocitySpinBox";
|
objectName: "verticalVelocitySpinBox";
|
||||||
backendValue: backendValues.verticalVelocity;
|
backendValue: backendValues.verticalVelocity;
|
||||||
minimumWidth: 30;
|
minimumWidth: 30;
|
||||||
minimum: 0.1
|
minimum: 0.1
|
||||||
@@ -85,8 +85,8 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: MaximumVelocitySpinBox;
|
id: maximumVelocitySpinBox;
|
||||||
objectName: "MaximumVelocitySpinBox";
|
objectName: "maximumVelocitySpinBox";
|
||||||
backendValue: backendValues.maximumFlickVelocity;
|
backendValue: backendValues.maximumFlickVelocity;
|
||||||
minimumWidth: 30;
|
minimumWidth: 30;
|
||||||
minimum: 0.1
|
minimum: 0.1
|
||||||
@@ -96,7 +96,7 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: OvershootCheckBox;
|
id: overshootCheckBox;
|
||||||
text: "overshoot";
|
text: "overshoot";
|
||||||
backendValue: backendValues.overShoot;
|
backendValue: backendValues.overShoot;
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
id: FontGroupBox
|
id: fontGroupBox
|
||||||
caption: "Font";
|
caption: "Font";
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
id: Geometry;
|
id: geometry;
|
||||||
caption: "Geometry";
|
caption: "geometry";
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
|
|
||||||
@@ -16,12 +16,12 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: XSpinBox;
|
id: xSpinBox;
|
||||||
text: "X"
|
text: "X"
|
||||||
alignRight: false
|
alignRight: false
|
||||||
spacing: 4
|
spacing: 4
|
||||||
singleStep: 1;
|
singleStep: 1;
|
||||||
objectName: "XSpinBox";
|
objectName: "xSpinBox";
|
||||||
enabled: anchorBackend.hasParent;
|
enabled: anchorBackend.hasParent;
|
||||||
backendValue: backendValues.x
|
backendValue: backendValues.x
|
||||||
minimum: -2000;
|
minimum: -2000;
|
||||||
@@ -30,12 +30,12 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: YSpinBox;
|
id: ySpinBox;
|
||||||
singleStep: 1;
|
singleStep: 1;
|
||||||
text: "Y"
|
text: "Y"
|
||||||
alignRight: false
|
alignRight: false
|
||||||
spacing: 4
|
spacing: 4
|
||||||
objectName: "YSpinBox";
|
objectName: "ySpinBox";
|
||||||
backendValue: backendValues.y
|
backendValue: backendValues.y
|
||||||
enabled: anchorBackend.hasParent;
|
enabled: anchorBackend.hasParent;
|
||||||
minimum: -2000;
|
minimum: -2000;
|
||||||
@@ -55,12 +55,12 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: WidthSpinBox;
|
id: widthSpinBox;
|
||||||
text: "W"
|
text: "W"
|
||||||
alignRight: false
|
alignRight: false
|
||||||
spacing: 4
|
spacing: 4
|
||||||
singleStep: 1;
|
singleStep: 1;
|
||||||
objectName: "WidthSpinBox";
|
objectName: "widthSpinBox";
|
||||||
backendValue: backendValues.width
|
backendValue: backendValues.width
|
||||||
minimum: -2000;
|
minimum: -2000;
|
||||||
maximum: 2000;
|
maximum: 2000;
|
||||||
@@ -68,12 +68,12 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: HeightSpinBox;
|
id: heightSpinBox;
|
||||||
text: "H"
|
text: "H"
|
||||||
alignRight: false
|
alignRight: false
|
||||||
spacing: 4
|
spacing: 4
|
||||||
singleStep: 1;
|
singleStep: 1;
|
||||||
objectName: "HeightSpinBox";
|
objectName: "heightSpinBox";
|
||||||
backendValue: backendValues.height
|
backendValue: backendValues.height
|
||||||
minimum: -2000;
|
minimum: -2000;
|
||||||
maximum: 2000;
|
maximum: 2000;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ GroupBox {
|
|||||||
|
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
caption: "Grid";
|
caption: "Grid";
|
||||||
id: GridSpecifics;
|
id: gridSpecifics;
|
||||||
|
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QExtGroupBox {
|
QExtGroupBox {
|
||||||
id: GroupBox;
|
id: groupBox;
|
||||||
|
|
||||||
property var finished;
|
property var finished;
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ QExtGroupBox {
|
|||||||
property var oldMaximumHeight;
|
property var oldMaximumHeight;
|
||||||
|
|
||||||
onFinishedChanged: {
|
onFinishedChanged: {
|
||||||
CheckBox.raise();
|
checkBox.raise();
|
||||||
maximumHeight = height;
|
maximumHeight = height;
|
||||||
oldMaximumHeight = maximumHeight;
|
oldMaximumHeight = maximumHeight;
|
||||||
visible = false;
|
visible = false;
|
||||||
@@ -21,14 +21,14 @@ QExtGroupBox {
|
|||||||
|
|
||||||
QToolButton {
|
QToolButton {
|
||||||
//QCheckBox {
|
//QCheckBox {
|
||||||
id: CheckBox;
|
id: checkBox;
|
||||||
text: GroupBox.caption;
|
text: groupBox.caption;
|
||||||
focusPolicy: "Qt::NoFocus";
|
focusPolicy: "Qt::NoFocus";
|
||||||
styleSheetFile: "specialCheckBox.css";
|
styleSheetFile: "specialcheckBox.css";
|
||||||
y: 0;
|
y: 0;
|
||||||
x: 0;
|
x: 0;
|
||||||
fixedHeight: 17
|
fixedHeight: 17
|
||||||
fixedWidth: GroupBox.width;
|
fixedWidth: groupBox.width;
|
||||||
arrowType: "Qt::DownArrow";
|
arrowType: "Qt::DownArrow";
|
||||||
toolButtonStyle: "Qt::ToolButtonTextBesideIcon";
|
toolButtonStyle: "Qt::ToolButtonTextBesideIcon";
|
||||||
checkable: true;
|
checkable: true;
|
||||||
@@ -36,7 +36,7 @@ QExtGroupBox {
|
|||||||
font.bold: true;
|
font.bold: true;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
//GroupBox.maximumHeight = oldMaximumHeight;
|
//groupBox.maximumHeight = oldMaximumHeight;
|
||||||
collapsed = false;
|
collapsed = false;
|
||||||
//text = "";
|
//text = "";
|
||||||
//width = 12;
|
//width = 12;
|
||||||
@@ -44,10 +44,10 @@ QExtGroupBox {
|
|||||||
arrowType = "Qt::DownArrow";
|
arrowType = "Qt::DownArrow";
|
||||||
visible = true;
|
visible = true;
|
||||||
} else {
|
} else {
|
||||||
//GroupBox.maximumHeight = 20;
|
//groupBox.maximumHeight = 20;
|
||||||
|
|
||||||
collapsed = true;
|
collapsed = true;
|
||||||
//text = GroupBox.caption;
|
//text = groupBox.caption;
|
||||||
visible = true;
|
visible = true;
|
||||||
//width = 120;
|
//width = 120;
|
||||||
arrowType = "Qt::RightArrow";
|
arrowType = "Qt::RightArrow";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QExtGroupBox {
|
QExtGroupBox {
|
||||||
id: GroupBoxOption;
|
id: groupBoxOption;
|
||||||
|
|
||||||
property var finished;
|
property var finished;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QHBoxLayout {
|
QHBoxLayout {
|
||||||
id: HorizontalLayout
|
id: horizontalLayout
|
||||||
spacing: 10
|
spacing: 10
|
||||||
topMargin: 0
|
topMargin: 0
|
||||||
bottomMargin: 0
|
bottomMargin: 0
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
id: IntEditor;
|
id: intEditor;
|
||||||
|
|
||||||
property var backendValue;
|
property var backendValue;
|
||||||
property var baseStateFlag;
|
property var baseStateFlag;
|
||||||
@@ -22,26 +22,26 @@ QWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SpinBox {
|
SpinBox {
|
||||||
backendValue: (IntEditor.backendValue === undefined ||
|
backendValue: (intEditor.backendValue === undefined ||
|
||||||
IntEditor.backendValue === null)
|
intEditor.backendValue === null)
|
||||||
? null : IntEditor.backendValue;
|
? null : intEditor.backendValue;
|
||||||
|
|
||||||
minimum: minimumValue
|
minimum: minimumValue
|
||||||
maximum: maximumValue
|
maximum: maximumValue
|
||||||
baseStateFlag: (IntEditor.backendValue === undefined ||
|
baseStateFlag: (intEditor.backendValue === undefined ||
|
||||||
IntEditor.backendValue === null)
|
intEditor.backendValue === null)
|
||||||
? null : IntEditor.baseStateFlag;
|
? null : intEditor.baseStateFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
visible: IntEditor.slider
|
visible: intEditor.slider
|
||||||
id: sliderWidget
|
id: sliderWidget
|
||||||
QSlider {
|
QSlider {
|
||||||
y: sliderWidget.height / 2 - 12
|
y: sliderWidget.height / 2 - 12
|
||||||
width: sliderWidget.width
|
width: sliderWidget.width
|
||||||
height: 24
|
height: 24
|
||||||
property alias backendValue: IntEditor.backendValue
|
property alias backendValue: intEditor.backendValue
|
||||||
orientation: "Qt::Horizontal"
|
orientation: "Qt::Horizontal"
|
||||||
minimum: minimumValue
|
minimum: minimumValue
|
||||||
maximum: maximumValue
|
maximum: maximumValue
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ PropertyFrame {
|
|||||||
id: standardPane;
|
id: standardPane;
|
||||||
|
|
||||||
|
|
||||||
content: ProperyEditorStandard;
|
content: properyEditorStandard;
|
||||||
QFrame {
|
QFrame {
|
||||||
//minimumHeight: 1100
|
//minimumHeight: 1100
|
||||||
id: ProperyEditorStandard
|
id: properyEditorStandard
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
topMargin: 0;
|
topMargin: 0;
|
||||||
bottomMargin: 0;
|
bottomMargin: 0;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QLabel {
|
QLabel {
|
||||||
id: Label
|
id: label
|
||||||
font.bold: true;
|
font.bold: true;
|
||||||
alignment: "Qt::AlignRight | Qt::AlignVCenter"
|
alignment: "Qt::AlignRight | Qt::AlignVCenter"
|
||||||
fixedWidth: 90
|
fixedWidth: 90
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
caption: "Layout";
|
caption: "layout";
|
||||||
id: Layout;
|
id: layout;
|
||||||
minimumHeight: 280;
|
minimumHeight: 280;
|
||||||
enabled: anchorBackend.hasParent;
|
enabled: anchorBackend.hasParent;
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ id: Layout;
|
|||||||
rightMargin: 20;
|
rightMargin: 20;
|
||||||
spacing: 20
|
spacing: 20
|
||||||
QLabel {
|
QLabel {
|
||||||
text: "Layout"
|
text: "layout"
|
||||||
}
|
}
|
||||||
AnchorBox {}
|
AnchorBox {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ QScrollArea {
|
|||||||
widgetResizable: true;
|
widgetResizable: true;
|
||||||
styleSheetFile: ":/qmldesigner/scrollbar.css";
|
styleSheetFile: ":/qmldesigner/scrollbar.css";
|
||||||
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
||||||
id: LayoutPane;
|
id: layoutPane;
|
||||||
visible: false;
|
visible: false;
|
||||||
content: ProperyEditorLayout;
|
content: properyEditorLayout;
|
||||||
QFrame {
|
QFrame {
|
||||||
enabled: isBaseState;
|
enabled: isBaseState;
|
||||||
id: ProperyEditorLayout;
|
id: properyEditorLayout;
|
||||||
minimumHeight: 460;
|
minimumHeight: 460;
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
topMargin: 0;
|
topMargin: 0;
|
||||||
|
|||||||
@@ -2,18 +2,18 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
id: LineEdit
|
id: lineEdit
|
||||||
|
|
||||||
property var backendValue
|
property var backendValue
|
||||||
property alias enabled: LineEdit.enabled
|
property alias enabled: lineEdit.enabled
|
||||||
|
|
||||||
minimumHeight: 24;
|
minimumHeight: 24;
|
||||||
|
|
||||||
QLineEdit {
|
QLineEdit {
|
||||||
id: lineEditWidget
|
id: lineEditWidget
|
||||||
styleSheet: "padding-left: 16;"
|
styleSheet: "padding-left: 16;"
|
||||||
width: LineEdit.width
|
width: lineEdit.width
|
||||||
height: LineEdit.height
|
height: lineEdit.height
|
||||||
|
|
||||||
text: backendValue.value
|
text: backendValue.value
|
||||||
|
|
||||||
@@ -24,9 +24,9 @@ QWidget {
|
|||||||
|
|
||||||
}
|
}
|
||||||
ExtendedFunctionButton {
|
ExtendedFunctionButton {
|
||||||
backendValue: LineEdit.backendValue
|
backendValue: lineEdit.backendValue
|
||||||
y: 4
|
y: 4
|
||||||
x: 3
|
x: 3
|
||||||
visible: LineEdit.enabled
|
visible: lineEdit.enabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ PropertyFrame {
|
|||||||
QScrollArea {
|
QScrollArea {
|
||||||
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
||||||
id: standardPane;
|
id: standardPane;
|
||||||
content: ProperyEditorStandard;
|
content: properyEditorStandard;
|
||||||
QFrame {
|
QFrame {
|
||||||
minimumHeight: 400;
|
minimumHeight: 400;
|
||||||
id: ProperyEditorStandard
|
id: properyEditorStandard
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
topMargin: 2;
|
topMargin: 2;
|
||||||
bottomMargin: 2;
|
bottomMargin: 2;
|
||||||
@@ -49,10 +49,10 @@ PropertyFrame {
|
|||||||
id: specialPane;
|
id: specialPane;
|
||||||
visible: false;
|
visible: false;
|
||||||
visible: false;
|
visible: false;
|
||||||
content: ProperyEditorSpecial;
|
content: properyEditorSpecial;
|
||||||
QFrame {
|
QFrame {
|
||||||
minimumHeight: 200;
|
minimumHeight: 200;
|
||||||
id: ProperyEditorSpecial
|
id: properyEditorSpecial
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
topMargin: 2;
|
topMargin: 2;
|
||||||
bottomMargin: 2;
|
bottomMargin: 2;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ GroupBox {
|
|||||||
rightMargin: 0;
|
rightMargin: 0;
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: HighlightFollowsCurrentItemCheckBox;
|
id: highlightFollowsCurrentItemCheckBox;
|
||||||
text: "";
|
text: "";
|
||||||
backendValue: backendValues.highlightFollowsCurrentItem;
|
backendValue: backendValues.highlightFollowsCurrentItem;
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
@@ -69,7 +69,7 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: WrapCheckBox;
|
id: wrapCheckBox;
|
||||||
text: "";
|
text: "";
|
||||||
backendValue: backendValues.wrap;
|
backendValue: backendValues.wrap;
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
@@ -77,8 +77,8 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SpinBox {
|
SpinBox {
|
||||||
id: SnapPositionSpinBox;
|
id: snapPositionSpinBox;
|
||||||
objectName: "SnapPositionSpinBox";
|
objectName: "snapPositionSpinBox";
|
||||||
backendValue: backendValues.snapPosition;
|
backendValue: backendValues.snapPosition;
|
||||||
minimumWidth: 30;
|
minimumWidth: 30;
|
||||||
minimum: 0;
|
minimum: 0;
|
||||||
@@ -88,8 +88,8 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SpinBox {
|
SpinBox {
|
||||||
id: SpacingSpinBox;
|
id: spacingSpinBox;
|
||||||
objectName: "SpacingSpinBox";
|
objectName: "spacingSpinBox";
|
||||||
backendValue: backendValues.spacing;
|
backendValue: backendValues.spacing;
|
||||||
minimumWidth: 30;
|
minimumWidth: 30;
|
||||||
minimum: 0;
|
minimum: 0;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ GroupBox {
|
|||||||
caption: "Manipulation"
|
caption: "Manipulation"
|
||||||
maximumHeight: 200;
|
maximumHeight: 200;
|
||||||
minimumHeight: 180;
|
minimumHeight: 180;
|
||||||
id: Mofifiers;
|
id: mofifiers;
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
|
|
||||||
@@ -17,14 +17,14 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: VisibleCheckBox;
|
id: visibleCheckBox;
|
||||||
text: "Is visible";
|
text: "Is visible";
|
||||||
backendValue: backendValues.visible === undefined ? false : backendValues.visible;
|
backendValue: backendValues.visible === undefined ? false : backendValues.visible;
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
}
|
}
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: ClipCheckBox;
|
id: clipCheckBox;
|
||||||
text: "Clip Content";
|
text: "Clip Content";
|
||||||
backendValue: backendValues.clip === undefined ? false : backendValues.clip;
|
backendValue: backendValues.clip === undefined ? false : backendValues.clip;
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
@@ -41,7 +41,7 @@ GroupBox {
|
|||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
text: ""
|
text: ""
|
||||||
id: OpacitySpinBox;
|
id: opacitySpinBox;
|
||||||
backendValue: backendValues.opacity === undefined ? null : backendValues.opacity
|
backendValue: backendValues.opacity === undefined ? null : backendValues.opacity
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
minimum: 0;
|
minimum: 0;
|
||||||
@@ -95,8 +95,8 @@ GroupBox {
|
|||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
text: ""
|
text: ""
|
||||||
id: ScaleSpinBox;
|
id: scaleSpinBox;
|
||||||
objectName: "ScaleSpinBox";
|
objectName: "scaleSpinBox";
|
||||||
backendValue: backendValues.scale;
|
backendValue: backendValues.scale;
|
||||||
property var backendValueValue: backendValues.scale.value;
|
property var backendValueValue: backendValues.scale.value;
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
@@ -105,11 +105,11 @@ GroupBox {
|
|||||||
singleStep: 0.1
|
singleStep: 0.1
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
onBackendValueValueChanged: {
|
onBackendValueValueChanged: {
|
||||||
ScaleSlider.value = backendValue.value * 10;
|
scaleSlider.value = backendValue.value * 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SliderWidget {
|
SliderWidget {
|
||||||
id: ScaleSlider;
|
id: scaleSlider;
|
||||||
minimum: 1;
|
minimum: 1;
|
||||||
maximum: 100;
|
maximum: 100;
|
||||||
singleStep: 1;
|
singleStep: 1;
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
id: PlaceHolder
|
id: placeHolder
|
||||||
fixedWidth: 100
|
fixedWidth: 100
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
WidgetFrame {
|
WidgetFrame {
|
||||||
id: PropertyFrame;
|
id: propertyFrame;
|
||||||
|
|
||||||
minimumWidth: 340;
|
minimumWidth: 340;
|
||||||
styleSheetFile: "propertyEditor.css";
|
styleSheetFile: "propertyEditor.css";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
id: RectangleColorGroupBox
|
id: rectangleColorGroupBox
|
||||||
|
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
caption: "Colors"
|
caption: "Colors"
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
QScrollArea {
|
QScrollArea {
|
||||||
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
horizontalScrollBarPolicy: "Qt::ScrollBarAlwaysOff";
|
||||||
id: ResetPane;
|
id: resetPane;
|
||||||
visible: false;
|
visible: false;
|
||||||
content: ProperyEditorReset;
|
content: properyEditorReset;
|
||||||
QFrame {
|
QFrame {
|
||||||
//minimumHeight: 1800;
|
//minimumHeight: 1800;
|
||||||
id: ProperyEditorReset
|
id: properyEditorReset
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
topMargin: 2;
|
topMargin: 2;
|
||||||
bottomMargin: 2;
|
bottomMargin: 2;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ GroupBox {
|
|||||||
|
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
caption: "Grid";
|
caption: "Grid";
|
||||||
id: GridSpecifics;
|
id: gridSpecifics;
|
||||||
|
|
||||||
layout: QVBoxLayout {
|
layout: QVBoxLayout {
|
||||||
|
|
||||||
|
|||||||
@@ -2,22 +2,22 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
id: SliderWidget
|
id: sliderWidget
|
||||||
|
|
||||||
property var value
|
property var value
|
||||||
property alias singleStep: LocalSlider.singleStep
|
property alias singleStep: localSlider.singleStep
|
||||||
property alias minimum: LocalSlider.minimum
|
property alias minimum: localSlider.minimum
|
||||||
property alias maximum: LocalSlider.maximum
|
property alias maximum: localSlider.maximum
|
||||||
|
|
||||||
QSlider {
|
QSlider {
|
||||||
orientation: "Qt::Horizontal";
|
orientation: "Qt::Horizontal";
|
||||||
id: LocalSlider
|
id: localSlider
|
||||||
y: SliderWidget.height / 2 - 12
|
y: sliderWidget.height / 2 - 12
|
||||||
width: SliderWidget.width
|
width: sliderWidget.width
|
||||||
height: 24
|
height: 24
|
||||||
value: SliderWidget.value
|
value: sliderWidget.value
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
SliderWidget.value = value
|
sliderWidget.value = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QWidget { //This is a special SpinBox that does color coding for states
|
QWidget { //This is a special spinBox that does color coding for states
|
||||||
id: SpinBox;
|
id: spinBox;
|
||||||
|
|
||||||
property var backendValue;
|
property var backendValue;
|
||||||
property var baseStateFlag;
|
property var baseStateFlag;
|
||||||
property alias singleStep: box.singleStep;
|
property alias singleStep: box.singleStep;
|
||||||
property alias minimum: box.minimum
|
property alias minimum: box.minimum
|
||||||
property alias maximum: box.maximum
|
property alias maximum: box.maximum
|
||||||
property alias enabled: SpinBox.enabled
|
property alias enabled: spinBox.enabled
|
||||||
|
|
||||||
minimumHeight: 22;
|
minimumHeight: 22;
|
||||||
|
|
||||||
@@ -41,14 +41,14 @@ QWidget { //This is a special SpinBox that does color coding for states
|
|||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
|
|
||||||
QSpinBox {
|
QSpinBox {
|
||||||
property alias backendValue: SpinBox.backendValue
|
property alias backendValue: spinBox.backendValue
|
||||||
|
|
||||||
keyboardTracking: false;
|
keyboardTracking: false;
|
||||||
id: box;
|
id: box;
|
||||||
enabled: backendValue === undefined || backendValue.isBound === undefined || backendValue.isBound === null ? false : !backendValue.isBound
|
enabled: backendValue === undefined || backendValue.isBound === undefined || backendValue.isBound === null ? false : !backendValue.isBound
|
||||||
property bool readingFromBackend: false;
|
property bool readingFromBackend: false;
|
||||||
property int valueFromBackend: (SpinBox.backendValue === undefined || SpinBox.backendValue == null)
|
property int valueFromBackend: (spinBox.backendValue === undefined || spinBox.backendValue == null)
|
||||||
? .0 : SpinBox.backendValue.value;
|
? .0 : spinBox.backendValue.value;
|
||||||
|
|
||||||
onValueFromBackendChanged: {
|
onValueFromBackendChanged: {
|
||||||
readingFromBackend = true;
|
readingFromBackend = true;
|
||||||
@@ -58,7 +58,7 @@ QWidget { //This is a special SpinBox that does color coding for states
|
|||||||
}
|
}
|
||||||
|
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
if (SpinBox.backendValue != null && readingFromBackend == false)
|
if (spinBox.backendValue != null && readingFromBackend == false)
|
||||||
backendValue.value = value;
|
backendValue.value = value;
|
||||||
}
|
}
|
||||||
onFocusChanged: {
|
onFocusChanged: {
|
||||||
@@ -69,11 +69,11 @@ QWidget { //This is a special SpinBox that does color coding for states
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExtendedFunctionButton {
|
ExtendedFunctionButton {
|
||||||
backendValue: (SpinBox.backendValue === undefined ||
|
backendValue: (spinBox.backendValue === undefined ||
|
||||||
SpinBox.backendValue === null)
|
spinBox.backendValue === null)
|
||||||
? null : SpinBox.backendValue;
|
? null : spinBox.backendValue;
|
||||||
y: box.y + 4
|
y: box.y + 4
|
||||||
x: box.x + 2
|
x: box.x + 2
|
||||||
visible: SpinBox.enabled
|
visible: spinBox.enabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
id: StandardTextGroupBox
|
id: standardTextGroupBox
|
||||||
|
|
||||||
caption: "Text";
|
caption: "Text";
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Bauhaus 1.0
|
|||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
|
|
||||||
id: TextInputGroupBox
|
id: textInputGroupBox
|
||||||
caption: "Text Input";
|
caption: "Text Input";
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
|
|||||||
@@ -2,15 +2,15 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
id: Type;
|
id: type;
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
caption: "Type";
|
caption: "type";
|
||||||
|
|
||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
QWidget {
|
QWidget {
|
||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
Label {
|
Label {
|
||||||
text: "Type";
|
text: "type";
|
||||||
windowTextColor: isBaseState ? "#000000" : "#FF0000";
|
windowTextColor: isBaseState ? "#000000" : "#FF0000";
|
||||||
}
|
}
|
||||||
QLineEdit {
|
QLineEdit {
|
||||||
@@ -27,8 +27,8 @@ GroupBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit {
|
QLineEdit {
|
||||||
id: IdLineEdit;
|
id: idLineEdit;
|
||||||
objectName: "IdLineEdit";
|
objectName: "idLineEdit";
|
||||||
readOnly: isBaseState != true;
|
readOnly: isBaseState != true;
|
||||||
text: backendValues.id === undefined ? "" : backendValues.id.value;
|
text: backendValues.id === undefined ? "" : backendValues.id.value;
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Qt 4.6
|
|||||||
import Bauhaus 1.0
|
import Bauhaus 1.0
|
||||||
|
|
||||||
QVBoxLayout {
|
QVBoxLayout {
|
||||||
id: VerticalLayout
|
id: verticalLayout
|
||||||
topMargin: 20;
|
topMargin: 20;
|
||||||
bottomMargin: 4;
|
bottomMargin: 4;
|
||||||
leftMargin: 0;
|
leftMargin: 0;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ GroupBox {
|
|||||||
text: "Zoom Factor"
|
text: "Zoom Factor"
|
||||||
}
|
}
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: ZoomSpinBox;
|
id: zoomSpinBox;
|
||||||
minimumWidth: 60;
|
minimumWidth: 60;
|
||||||
text: ""
|
text: ""
|
||||||
backendValue: backendValues.zoomFactor;
|
backendValue: backendValues.zoomFactor;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: RootItem
|
id: rootItem
|
||||||
width: 640
|
width: 640
|
||||||
height: 480
|
height: 480
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,21 +9,21 @@ Item {
|
|||||||
color: "#009920";
|
color: "#009920";
|
||||||
x: 22;
|
x: 22;
|
||||||
y: 31;
|
y: 31;
|
||||||
id: Rectangle_1;
|
id: rectangle_1;
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 299;
|
width: 299;
|
||||||
color: "#009920";
|
color: "#009920";
|
||||||
x: 109;
|
x: 109;
|
||||||
height: 334;
|
height: 334;
|
||||||
y: 42;
|
y: 42;
|
||||||
id: Rectangle_3;
|
id: rectangle_3;
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "#009920";
|
color: "#009920";
|
||||||
height: 209;
|
height: 209;
|
||||||
width: 288;
|
width: 288;
|
||||||
x: 98;
|
x: 98;
|
||||||
y: 152;
|
y: 152;
|
||||||
id: Rectangle_5;
|
id: rectangle_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ Item {
|
|||||||
x: -154;
|
x: -154;
|
||||||
width: 330;
|
width: 330;
|
||||||
y: -31;
|
y: -31;
|
||||||
id: Image_1;
|
id: image_1;
|
||||||
}Image {
|
}Image {
|
||||||
width: 293;
|
width: 293;
|
||||||
x: 33;
|
x: 33;
|
||||||
height: 172;
|
height: 172;
|
||||||
y: 39;
|
y: 39;
|
||||||
source: "qrc:/fxplugin/images/template_image.png";
|
source: "qrc:/fxplugin/images/template_image.png";
|
||||||
id: Image_2;
|
id: image_2;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -50,14 +50,14 @@ Item {
|
|||||||
x: 360;
|
x: 360;
|
||||||
y: 42;
|
y: 42;
|
||||||
color: "#009920";
|
color: "#009920";
|
||||||
id: Rectangle_2;
|
id: rectangle_2;
|
||||||
Image {
|
Image {
|
||||||
source: "qrc:/fxplugin/images/template_image.png";
|
source: "qrc:/fxplugin/images/template_image.png";
|
||||||
x: -40;
|
x: -40;
|
||||||
y: 12;
|
y: 12;
|
||||||
width: 281;
|
width: 281;
|
||||||
height: 280;
|
height: 280;
|
||||||
id: Image_3;
|
id: image_3;
|
||||||
}}
|
}}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: 206;
|
height: 206;
|
||||||
@@ -65,7 +65,7 @@ Item {
|
|||||||
color: "#009920";
|
color: "#009920";
|
||||||
x: 4;
|
x: 4;
|
||||||
y: 234;
|
y: 234;
|
||||||
id: Rectangle_4;
|
id: rectangle_4;
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: "text";
|
text: "text";
|
||||||
@@ -73,6 +73,6 @@ Item {
|
|||||||
height: 20;
|
height: 20;
|
||||||
x: 71;
|
x: 71;
|
||||||
y: 15;
|
y: 15;
|
||||||
id: Text_1;
|
id: text_1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Qt 4.6
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
width: 300
|
width: 300
|
||||||
height: 300
|
height: 300
|
||||||
id: Page
|
id: page
|
||||||
color: "#ffff00"
|
color: "#ffff00"
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 183
|
width: 183
|
||||||
@@ -22,7 +22,7 @@ Rectangle {
|
|||||||
x: 11
|
x: 11
|
||||||
y: 10
|
y: 10
|
||||||
height: 20
|
height: 20
|
||||||
id: HelloText2
|
id: helloText2
|
||||||
text: "Hello QmlGraphics!"
|
text: "Hello QmlGraphics!"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
@@ -31,7 +31,7 @@ Rectangle {
|
|||||||
objectName: "xt5"
|
objectName: "xt5"
|
||||||
y: 165
|
y: 165
|
||||||
height: 18
|
height: 18
|
||||||
id: HelloText5
|
id: helloText5
|
||||||
text: "blah!!!!!"
|
text: "blah!!!!!"
|
||||||
}
|
}
|
||||||
Image {
|
Image {
|
||||||
@@ -53,7 +53,7 @@ Rectangle {
|
|||||||
y: 11.64
|
y: 11.64
|
||||||
rotation: 90
|
rotation: 90
|
||||||
height: 20
|
height: 20
|
||||||
id: HelloText11
|
id: helloText11
|
||||||
text: "Hello QmlGraphics!"
|
text: "Hello QmlGraphics!"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ Rectangle {
|
|||||||
x: 10
|
x: 10
|
||||||
y: 13
|
y: 13
|
||||||
height: 20
|
height: 20
|
||||||
id: HelloText3
|
id: helloText3
|
||||||
text: "Hello QmlGraphics!"
|
text: "Hello QmlGraphics!"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
@@ -70,7 +70,7 @@ Rectangle {
|
|||||||
x: 163
|
x: 163
|
||||||
y: 184
|
y: 184
|
||||||
height: 106
|
height: 106
|
||||||
id: HelloText4
|
id: helloText4
|
||||||
text: "Hello QmlGraphics!"
|
text: "Hello QmlGraphics!"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Qt 4.6
|
import Qt 4.6
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: RootItem
|
id: rootItem
|
||||||
width: 640
|
width: 640
|
||||||
height: 480
|
height: 480
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -10,7 +10,7 @@ Rectangle {
|
|||||||
y: 178;
|
y: 178;
|
||||||
color: "#ffffff";
|
color: "#ffffff";
|
||||||
width: 100;
|
width: 100;
|
||||||
id: Rectangle_1;
|
id: rectangle_1;
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: 110;
|
x: 110;
|
||||||
@@ -18,7 +18,7 @@ Rectangle {
|
|||||||
color: "#ffffff";
|
color: "#ffffff";
|
||||||
height: 100;
|
height: 100;
|
||||||
width: 100;
|
width: 100;
|
||||||
id: Rectangle_2;
|
id: rectangle_2;
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 100;
|
width: 100;
|
||||||
@@ -26,7 +26,7 @@ Rectangle {
|
|||||||
height: 100;
|
height: 100;
|
||||||
x: 323;
|
x: 323;
|
||||||
y: 160;
|
y: 160;
|
||||||
id: Rectangle_3;
|
id: rectangle_3;
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "#ffffff";
|
color: "#ffffff";
|
||||||
@@ -34,6 +34,6 @@ Rectangle {
|
|||||||
height: 100;
|
height: 100;
|
||||||
x: 233;
|
x: 233;
|
||||||
y: 293;
|
y: 293;
|
||||||
id: Rectangle_4;
|
id: rectangle_4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ Item {
|
|||||||
height: 120;
|
height: 120;
|
||||||
x: 145;
|
x: 145;
|
||||||
y: 157;
|
y: 157;
|
||||||
id: Rectangle_1;
|
id: rectangle_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: 49;
|
x: 49;
|
||||||
y: 6;
|
y: 6;
|
||||||
width: 100;
|
width: 100;
|
||||||
id: Rectangle_2;
|
id: rectangle_2;
|
||||||
color: "#009920";
|
color: "#009920";
|
||||||
height: 100;
|
height: 100;
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ Item {
|
|||||||
when: destination === "one";
|
when: destination === "one";
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: Rectangle_2;
|
target: rectangle_2;
|
||||||
height: 200
|
height: 200
|
||||||
width: 300
|
width: 300
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ Item {
|
|||||||
State {
|
State {
|
||||||
name: "State3";
|
name: "State3";
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: Rectangle_2;
|
target: rectangle_2;
|
||||||
x: 200
|
x: 200
|
||||||
y: 300
|
y: 300
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user