Index: sources/gui/qml/pages/treatment/TreatmentSectionHeader.qml =================================================================== diff -u -r1286d74bd015276aab604808be2766136091c125 -r19acf57838bc97979052d626f3e05d46310b6335 --- sources/gui/qml/pages/treatment/TreatmentSectionHeader.qml (.../TreatmentSectionHeader.qml) (revision 1286d74bd015276aab604808be2766136091c125) +++ sources/gui/qml/pages/treatment/TreatmentSectionHeader.qml (.../TreatmentSectionHeader.qml) (revision 19acf57838bc97979052d626f3e05d46310b6335) @@ -18,20 +18,26 @@ import "qrc:/globals" import "qrc:/components" +import "qrc:/compounds" Rectangle { id: _root - property string title : "" - property bool editEnabled : true - property bool showLock : false - property bool showEdit : true - property bool showExpanding : false + property string title : "" + property bool editEnabled : true + property bool showLock : false + property bool showEdit : true + property bool showExpanding : false + property bool showVitals : false + property bool showPauseResume : false + property bool isPaused : true property int titleLeftMargin: Variables.defaultMargin * 2 property bool setEditActive : true // set to disable edit no matter what signal editClicked() signal lockClicked() signal expandingClicked() + signal vitalsClicked() + signal pauseResumeClicked() color : Colors.treatmentSectionHeader height : Variables.contentHeight + (Variables.defaultMargin * 2) @@ -69,8 +75,20 @@ rightMargin : Variables.defaultMargin } + IconButton { id : _pauseResume + visible : showPauseResume + iconImageSource : _root.isPaused ? "qrc:/images/iPlay" : "qrc:/images/iPause" + isDefault : true + onClicked : _root.pauseResumeClicked() + } + + IconButton {id : _vitals + visible : showVitals + + onClicked : _root.vitalsClicked() + } + ArrowButton {id : _expandingArrows - iconSize : Variables.iconButtonSize visible : showExpanding expandingArrow : true onClicked : _root.expandingClicked()