SetupViewDisconnected.qml 1.34 KB
Newer Older
1 2 3
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
4
import QGroundControl.FactSystem 1.0
5 6

Rectangle {
7 8
    QGCPalette { id: palette; colorGroup: QGCPalette.Active }

9
    anchors.fill: parent
10
    color: palette.window
11 12 13 14 15 16 17 18 19 20 21

    Item {
        anchors.margins: 20
        anchors.fill: parent

        Rectangle { id: header; color: "lightblue"; radius: 10.0; width: parent.width; height: titleText.height + 20; opacity: 0.8;
            Text { id: titleText; anchors.centerIn: parent; font.pointSize: 24; text: "Vehicle Summary" }
        }

        Text { width: parent.width; height: parent.height - header.height - footer.height;
            anchors.top: header.bottom
22
            color: palette.windowText
23 24 25 26 27 28 29 30 31 32 33 34 35
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
            text: "No vehicle currently connected. Vehicle Setup is only available while vehicle is connected." }

        Rectangle { id: footer; anchors.bottom: parent.bottom; color: "lightblue"; radius: 10.0; width: parent.width; height: titleText.height + 20; opacity: 0.8;

            Button { id: firmwareButton; objectName: "firmwareButton";
                anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: parent.verticalCenter;
                text: "Firmware Upgrade"
            }
        }
    }
}