APMAirframeComponentSummary.qml 886 Bytes
Newer Older
Don Gagne's avatar
Don Gagne committed
1
import QtQuick          2.5
2 3
import QtQuick.Controls 1.2

Don Gagne's avatar
Don Gagne committed
4 5 6 7 8 9
import QGroundControl.FactSystem    1.0
import QGroundControl.FactControls  1.0
import QGroundControl.Controls      1.0
import QGroundControl.Controllers   1.0
import QGroundControl.Palette       1.0
import QGroundControl.ScreenTools   1.0
10 11

FactPanel {
Don Gagne's avatar
Don Gagne committed
12 13 14 15
    id:     panel
    width:  grid.width
    height: grid.height
    color:  qgcPal.windowShade
16 17

    QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
Don Gagne's avatar
Don Gagne committed
18

19 20 21 22
    APMAirframeComponentController {
        id:         controller
        factPanel:  panel
    }
23

24
    property Fact sysIdFact:        controller.getParameterFact(-1, "FRAME")
25

Don Gagne's avatar
Don Gagne committed
26 27 28 29 30
    Grid {
        id:         grid
        rows:       1
        columns:    2
        spacing:    ScreenTools.defaultFontPixelWidth / 2
31

Don Gagne's avatar
Don Gagne committed
32 33
        QGCLabel { text: "Frame Type:" }
        QGCLabel { text: sysIdFact.enumStringValue }
34 35
    }
}