summaryrefslogtreecommitdiff
path: root/src/tutorials/TutorialDescription.qml
diff options
context:
space:
mode:
authorTannin <Tannin@Serenity>2013-02-03 12:49:25 +0100
committerTannin <Tannin@Serenity>2013-02-03 12:49:25 +0100
commit981f8b3acf7e76f27c02f4ced80d55b424cc7497 (patch)
tree0f504d99d1e5fe197258febff3c147d0725abda4 /src/tutorials/TutorialDescription.qml
initial commit to mercurial repository.
Corresponds to MO version 0.12.6
Diffstat (limited to 'src/tutorials/TutorialDescription.qml')
-rw-r--r--src/tutorials/TutorialDescription.qml54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/tutorials/TutorialDescription.qml b/src/tutorials/TutorialDescription.qml
new file mode 100644
index 00000000..b295e477
--- /dev/null
+++ b/src/tutorials/TutorialDescription.qml
@@ -0,0 +1,54 @@
+import QtQuick 1.1
+
+// rectangle for description texts
+Rectangle {
+ property alias text: textBox.text
+ property alias continueVisible: continueIcon.visible
+ property int innerWidth;
+ signal clicked
+
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 100
+ width: textBox.width + 30
+ height: textBox.height + 8
+ border.color: "black"
+ border.width: 3
+ smooth: true
+ opacity: 0.9
+ color: "#707070"
+
+ Image {
+ id: continueIcon
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 5
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+ source: "qrc:/MO/gui/next"
+
+ SequentialAnimation on opacity {
+ loops: Animation.Infinite
+
+ PauseAnimation { duration: 500 }
+ PropertyAnimation { easing.type: Easing.InOutSine; duration: 400; to: 0.0 }
+ PropertyAnimation { easing.type: Easing.OutInSine; duration: 400; to: 1.0 }
+ }
+ }
+
+ Text {
+ id: textBox
+ text: ""
+ font.pointSize: 12
+ font.bold: false
+ width: innerWidth
+ font.family: "Courier"
+ wrapMode: Text.WordWrap
+ anchors.centerIn: parent
+ }
+
+ MouseArea {
+ id: clickArea
+ anchors.fill: parent
+ onClicked: parent.clicked(mouse)
+ }
+}