Index: sources/gui/qml/compounds/ProcessStatusView.qml =================================================================== diff -u -r627062628b60e4d512ee8830c2dbc23eef02fe28 -r9c0335bc7f5a2b591a9c6241b00ebb9510ea611a --- sources/gui/qml/compounds/ProcessStatusView.qml (.../ProcessStatusView.qml) (revision 627062628b60e4d512ee8830c2dbc23eef02fe28) +++ sources/gui/qml/compounds/ProcessStatusView.qml (.../ProcessStatusView.qml) (revision 9c0335bc7f5a2b591a9c6241b00ebb9510ea611a) @@ -14,10 +14,18 @@ property alias maximum : _progressCircle.maximum property int value : 0 - property string leftButtonText : "" - property string rightButtonText : "" + property string leftButtonText : "" + property string centerButtonText : "" + property string rightButtonText : "" + property bool leftButtonEnabled : true + property bool centerButtonEnabled : true + property bool rightButtonEnabled : true + signal leftPressed () + signal centerPressed () + signal rightPressed () + Text { id: _title anchors { top : _root.top @@ -75,9 +83,28 @@ font.weight : Font.Medium } visible : _root.leftButtonText + enabled : _root.leftButtonEnabled isDefault : true + + onClicked : _root.leftPressed() } + TouchRect { id : _centerButton + width : Variables.defaultButtonWidth + height : Variables.defaultButtonHeight + text { + text : _root.centerButtonText + font.pixelSize : Fonts.fontPixelConfirm + font.weight : Font.Medium + } + visible : _root.centerButtonText + enabled : _root.centerButtonEnabled + isDefault : true + + onClicked : _root.centerPressed() + + } + TouchRect { id : _rightButton width : Variables.defaultButtonWidth height : Variables.defaultButtonHeight @@ -87,7 +114,11 @@ font.weight : Font.Medium } visible : _root.rightButtonText + enabled : _root.rightButtonEnabled isDefault : true + + onClicked : _root.rightPressed() + } } }