/*
 * Copyright (c) 2010 Nokia Corporation.
 */

import Qt 4.7

Image {
    id: bubbleLevel

    // called when task switcher button is pressed
    signal minimizeApplication()

    // this function is used as Qt slot
    function handleOrientation(xdeg, ydeg, zdeg) {
        horTube.deg = ydeg
    }

    anchors.fill: parent
    source: "board.png"

    Button {
        id: taskSwitcher

        anchors { left: parent.left; top: parent.top }
        source: "taskswitcher.png"

        onClicked: bubbleLevel.minimizeApplication()
    }

    Button {
        id: exitButton

        anchors { right: parent.right; top: parent.top }
        source: "exit.png"

        onClicked: Qt.quit()
    }

    Tube {
        id: horTube

        anchors.horizontalCenter: parent.horizontalCenter
        width: parent.width * 0.775; height: parent.height * 0.15625
    }
}
