FlightDisplayViewVideo.qml 2.09 KB
Newer Older
1 2 3 4 5 6 7 8
/****************************************************************************
 *
 *   (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


import QtQuick                      2.4
import QtQuick.Controls             1.3

import QGroundControl               1.0
import QGroundControl.FlightDisplay 1.0
import QGroundControl.FlightMap     1.0
import QGroundControl.ScreenTools   1.0
import QGroundControl.Controls      1.0
import QGroundControl.Palette       1.0
import QGroundControl.Vehicle       1.0
import QGroundControl.Controllers   1.0


dogmaphobic's avatar
dogmaphobic committed
24 25 26 27 28
Item {
    id: root
    Rectangle {
        id:             noVideo
        anchors.fill:   parent
dogmaphobic's avatar
dogmaphobic committed
29
        color:          Qt.rgba(0,0,0,0.75)
30
        visible:        !QGroundControl.videoManager.videoRunning
dogmaphobic's avatar
dogmaphobic committed
31
        QGCLabel {
32
            text:               qsTr("NO VIDEO")
33
            font.family:        ScreenTools.demiboldFontFamily
dogmaphobic's avatar
dogmaphobic committed
34
            color:              "white"
dogmaphobic's avatar
dogmaphobic committed
35
            font.pointSize:     _mainIsMap ? ScreenTools.smallFontPointSize : ScreenTools.largeFontPointSize
dogmaphobic's avatar
dogmaphobic committed
36 37 38 39 40
            anchors.centerIn:   parent
        }
    }
    QGCVideoBackground {
        anchors.fill:   parent
41 42 43
        display:        QGroundControl.videoManager.videoSurface
        receiver:       QGroundControl.videoManager.videoReceiver
        visible:        QGroundControl.videoManager.videoRunning
dogmaphobic's avatar
dogmaphobic committed
44 45 46 47 48 49
        /* TODO: Come up with a way to make this an option
        QGCAttitudeHUD {
            id:                 attitudeHUD
            visible:            !_mainIsMap
            rollAngle:          _roll
            pitchAngle:         _pitch
50 51
            width:              ScreenTools.defaultFontPixelHeight * (30)
            height:             ScreenTools.defaultFontPixelHeight * (30)
52
            active:             QGroundControl.multiVehicleManager.activeVehicleAvailable
dogmaphobic's avatar
dogmaphobic committed
53 54 55
            z:                  QGroundControl.zOrderWidgets
        }
        */
56 57
    }
}