gui: procs window improvements

- Output panel always visible with placeholder text
- View Output clears panel before refreshing
- Added Dismiss button to close window
- Process list has fixed height, output panel fills remaining space
This commit is contained in:
Levi Neely 2026-10-09 09:40:55 +02:00
parent a5e2535b5a
commit 84d45d051b
1 changed files with 15 additions and 5 deletions

View File

@ -110,7 +110,8 @@ Window {
ListView {
id: procList
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: 180
Layout.minimumHeight: 100
model: procs
clip: true
@ -193,22 +194,24 @@ Window {
}
}
// Output pane (expandable)
// Output pane (always visible)
GroupBox {
Layout.fillWidth: true
Layout.preferredHeight: outputText.length > 0 ? 150 : 0
visible: outputText.length > 0
title: "Output (PID " + selectedPid + ")"
Layout.fillHeight: true
Layout.minimumHeight: 100
title: selectedPid > 0 ? "Output (PID " + selectedPid + ")" : "Output"
ScrollView {
anchors.fill: parent
TextArea {
id: outputArea
text: outputText
readOnly: true
font.family: "monospace"
font.pointSize: 9
wrapMode: TextEdit.Wrap
selectByMouse: true
placeholderText: "Select a process and click View Output"
}
}
}
@ -229,6 +232,7 @@ Window {
icon.name: "document-preview"
enabled: selectedPid > 0
onClicked: {
outputText = ""
outputText = ollie.procOutput(currentSessionId, currentAgentId, selectedPid)
}
}
@ -254,6 +258,12 @@ Window {
Qt.callLater(refresh)
}
}
Button {
text: "Dismiss"
icon.name: "window-close"
onClicked: procWindow.close()
}
}
}