Index: sources/gui/qml/pages/treatment/TreatmentSectionHeader.qml =================================================================== diff -u -rf46bc6ffce5eb0ac3e1bbd5a9b8ee9202209c881 -rd66feb12d37023f6f67672ff4acdb5abebdbff15 --- sources/gui/qml/pages/treatment/TreatmentSectionHeader.qml (.../TreatmentSectionHeader.qml) (revision f46bc6ffce5eb0ac3e1bbd5a9b8ee9202209c881) +++ sources/gui/qml/pages/treatment/TreatmentSectionHeader.qml (.../TreatmentSectionHeader.qml) (revision d66feb12d37023f6f67672ff4acdb5abebdbff15) @@ -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) @@ -62,15 +68,27 @@ } Row { id: _buttonRow - spacing : Variables.defaultMargin * 2 + spacing : Variables.defaultMargin * 1.5 anchors { verticalCenter : _title.verticalCenter right : parent.right - rightMargin : Variables.defaultMargin * 2 + 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 + iconImageSource : "qrc:/images/iVitals" + onClicked : _root.vitalsClicked() + } + ArrowButton {id : _expandingArrows - iconSize : Variables.iconButtonSize visible : showExpanding expandingArrow : true onClicked : _root.expandingClicked()