/* vim:set foldenable foldmethod=marker: * * 2014 by DarkBeastOfPrey * Copyright (C) 2011 Ivan Cukic * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import QtQuick 2.2 Item { id: main width: screenSize.width height: screenSize.height // width: 300 // height: 300 /* property declarations --------------------------{{{ */ property int stage /* }}} */ /* signal declarations ----------------------------{{{ */ /* }}} */ /* JavaScript functions ---------------------------{{{ */ onStageChanged: { if (stage == 1) { mageia.opacity = 0.25 bubble1.opacity = 0.25 } if (stage == 2) { mageia.opacity = 1 bubble1.opacity = 1 bubble2.opacity = 1 } if (stage == 3) { bubble3.opacity = 1 } if (stage == 4) { bubble4.opacity = 1 } if (stage == 5) { bubble5.opacity = 1 } if (stage == 6) { } } /* }}} */ /* object properties ------------------------------{{{ */ /* }}} */ /* child objects ----------------------------------{{{ */ Image { id: background source: "images/background.png" anchors.fill: parent anchors { top: parent.top left: parent.left right: parent.right bottom: parent.bottom } opacity: 1 } Image { id: bubble1 smooth: true x: (parent.width) /4 + 30 y: (parent.height) / 2 - 70 source: "images/bubble1.png" opacity: 0 Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } } } Image { id: bubble2 smooth: true x: (parent.width) /4 + 30 y: (parent.height) / 2 - 70 source: "images/bubble2.png" opacity: 0 Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } } } Image { id: bubble3 smooth: true x: (parent.width) /4 + 30 y: (parent.height) / 2 - 70 source: "images/bubble3.png" opacity: 0 Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } } } Image { id: bubble4 smooth: true x: (parent.width) /4 + 30 y: (parent.height) / 2 - 70 source: "images/bubble4.png" opacity: 0 Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } } } Image { id: bubble5 smooth: true x: (parent.width) /4 + 30 y: (parent.height) / 2 - 70 source: "images/bubble5.png" opacity: 0 Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } } } Image { id: mageia smooth: true x: (parent.width) / 4 y: (parent.height) / 2 source: "images/logo.png" opacity: 0 Behavior on opacity { NumberAnimation { duration: 3000; easing { type: Easing.InOutQuad } } } } /* }}} */ /* stages -----------------------------------------{{{ */ /* }}} */ /* transitions ------------------------------------{{{ */ /* }}} */ }