@ -26,7 +26,7 @@ import QGroundControl.FactControls 1.0
@@ -26,7 +26,7 @@ import QGroundControl.FactControls 1.0
/ / / V i d e o s t r e a m i n g p a g e f o r I n s t r u m e n t P a n e l P a g e V i e w
Item {
width: pageWidth
height: videoGrid . height + ( ScreenTools . defaultFontPixelHeight * 2 )
height: videoGrid . y + videoGrid . height + _margins
anchors.margins: ScreenTools . defaultFontPixelWidth * 2
anchors.centerIn: parent
@ -38,15 +38,19 @@ Item {
@@ -38,15 +38,19 @@ Item {
property int _curCameraIndex : _dynamicCameras ? _dynamicCameras . currentCamera : 0
property bool _isCamera : _dynamicCameras ? _dynamicCameras . cameras . count > 0 : false
property var _camera : _isCamera ? ( _dynamicCameras . cameras . get ( _curCameraIndex ) && _dynamicCameras . cameras . get ( _curCameraIndex ) . paramComplete ? _dynamicCameras . cameras . get ( _curCameraIndex ) : null ) : null
property real _margins : ScreenTools . defaultFontPixelWidth / 2
QGCPalette { id:qgcPal ; colorGroupEnabled: true }
GridLayout {
id: videoGrid
anchors.margins: _margins
anchors.top: parent . top
anchors.left: parent . left
anchors.right: parent . right
columns: 2
columnSpacing: ScreenTools . defaultFontPixelWidth * 2
columnSpacing: _margins
rowSpacing: ScreenTools . defaultFontPixelHeight
anchors.centerIn: parent
Connections {
/ / F o r s o m e r e a s o n , t h e n o r m a l s i g n a l i s n o t r e f l e c t e d i n t h e c o n t r o l b e l o w
target: QGroundControl . settingsManager . videoSettings . streamEnabled
@ -56,7 +60,7 @@ Item {
@@ -56,7 +60,7 @@ Item {
}
/ / E n a b l e / D i s a b l e V i d e o S t r e a m i n g
QGCLabel {
text: qsTr ( "Enable Stream " )
text: qsTr ( "Enable" )
font.pointSize: ScreenTools . smallFontPointSize
visible: ! _camera || ! _camera . autoStream
}
@ -97,7 +101,7 @@ Item {
@@ -97,7 +101,7 @@ Item {
}
/ / - - V i d e o F i t
QGCLabel {
text: qsTr ( "Video Screen Fit" )
text: qsTr ( "Video Fit" )
visible: QGroundControl . videoManager . isGStreamer
font.pointSize: ScreenTools . smallFontPointSize
}
@ -108,13 +112,14 @@ Item {
@@ -108,13 +112,14 @@ Item {
Layout.alignment: Qt . AlignHCenter
}
QGCLabel {
text: qsTr ( "File Name" ) ;
visible: QGroundControl . videoManager . isGStreamer
text: qsTr ( "File Name" ) ;
font.pointSize: ScreenTools . smallFontPointSize
visible: QGroundControl . videoManager . isGStreamer
}
TextField {
id: videoFileName
visible: QGroundControl . videoManager . isGStreamer
width: 100
QGC TextField {
id: videoFileName
Layout.fillWidth: true
visible: QGroundControl . videoManager . isGStreamer
}
/ / - - V i d e o R e c o r d i n g
QGCLabel {