|
|
|
@ -43,6 +43,8 @@ FactPanel {
@@ -43,6 +43,8 @@ FactPanel {
|
|
|
|
|
|
|
|
|
|
property var viewPanel |
|
|
|
|
|
|
|
|
|
property bool __useAvailableHeight: false |
|
|
|
|
|
|
|
|
|
/// This is signalled when the top level Item reaches Component.onCompleted. This allows |
|
|
|
|
/// the view subcomponent to connect to this signal and do work once the full ui is ready |
|
|
|
|
/// to go. |
|
|
|
@ -134,11 +136,13 @@ FactPanel {
@@ -134,11 +136,13 @@ FactPanel {
|
|
|
|
|
readonly property int showDialogFullWidth: -1 ///< Use for full width dialog |
|
|
|
|
readonly property int showDialogDefaultWidth: 40 ///< Use for default dialog width |
|
|
|
|
|
|
|
|
|
function showDialog(component, title, charWidth, buttons) { |
|
|
|
|
function showDialog(component, title, charWidth, buttons, useAvailableHeight) { |
|
|
|
|
if (__checkForEarlyDialog(title)) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
__useAvailableHeight = typeof useAvailableHeight !== 'undefined' ? useAvailableHeight : false |
|
|
|
|
|
|
|
|
|
__stopAllAnimations() |
|
|
|
|
|
|
|
|
|
__dialogCharWidth = charWidth |
|
|
|
@ -278,7 +282,7 @@ FactPanel {
@@ -278,7 +282,7 @@ FactPanel {
|
|
|
|
|
// This covers the parent with an transparent section |
|
|
|
|
Rectangle { |
|
|
|
|
id: __transparentSection |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
height: __useAvailableHeight ? ScreenTools.availableHeight : parent.height |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.right: __dialogPanel.left |
|
|
|
@ -291,7 +295,7 @@ FactPanel {
@@ -291,7 +295,7 @@ FactPanel {
|
|
|
|
|
id: __dialogPanel |
|
|
|
|
width: __dialogCharWidth == showDialogFullWidth ? parent.width : defaultTextWidth * __dialogCharWidth |
|
|
|
|
anchors.topMargin: topDialogMargin |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
height: __useAvailableHeight ? ScreenTools.availableHeight : parent.height |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
color: __qgcPal.windowShadeDark |
|
|
|
|