Skip to content

Commit 6862b6f

Browse files
[cuegui]: Replace unmonitor buttons with dropdown menu in Monitor Jobs (#1841)
- Consolidate the three separate unmonitor buttons (All, Finished, Selected) into a single dropdown menu for improved UI organization and space efficiency. - Remove individual buttons for All, Finished, and Selected unmonitor actions - Add single "Unmonitor" dropdown with three menu options - Maintain same functionality with cleaner interface - Update documentation: `CueGUI: Cuetopia Monitoring System` and Cuetopia image **Link the Issue(s) this Pull Request is related to.** - #1840
1 parent d3da221 commit 6862b6f

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

cuegui/cuegui/plugins/MonitorJobsPlugin.py

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -275,26 +275,24 @@ def _buttonSetup(self, layout):
275275
self.grpDependentCb.stateChanged.connect(self.jobMonitor.setGroupDependent)
276276
# pylint: enable=no-member
277277

278-
finishedButton = QtWidgets.QPushButton(QtGui.QIcon(":eject.png"), "Finished")
279-
finishedButton.setToolTip("Unmonitor finished jobs")
280-
finishedButton.setFocusPolicy(QtCore.Qt.NoFocus)
281-
finishedButton.setFlat(True)
282-
layout.addWidget(finishedButton)
283-
finishedButton.clicked.connect(self.jobMonitor.removeFinishedItems) # pylint: disable=no-member
284-
285-
allButton = QtWidgets.QPushButton(QtGui.QIcon(":eject.png"), "All")
286-
allButton.setToolTip("Unmonitor all jobs")
287-
allButton.setFocusPolicy(QtCore.Qt.NoFocus)
288-
allButton.setFlat(True)
289-
layout.addWidget(allButton)
290-
allButton.clicked.connect(self.jobMonitor.removeAllItems) # pylint: disable=no-member
291-
292-
removeSelectedButton = QtWidgets.QPushButton(QtGui.QIcon(":eject.png"), "")
293-
removeSelectedButton.setToolTip("Unmonitor selected jobs")
294-
removeSelectedButton.setFocusPolicy(QtCore.Qt.NoFocus)
295-
removeSelectedButton.setFlat(True)
296-
layout.addWidget(removeSelectedButton)
297-
removeSelectedButton.clicked.connect(self.jobMonitor.actionRemoveSelectedItems) # pylint: disable=no-member
278+
# Create Unmonitor dropdown
279+
unmonitorCombo = QtWidgets.QComboBox()
280+
unmonitorCombo.setFocusPolicy(QtCore.Qt.NoFocus)
281+
unmonitorCombo.addItems(["Unmonitor", "All Jobs", "Finished Jobs", "Selected Jobs"])
282+
unmonitorCombo.setToolTip("Select jobs to unmonitor")
283+
284+
def handleUnmonitorSelection(index):
285+
if index == 1: # All Jobs
286+
self.jobMonitor.removeAllItems()
287+
elif index == 2: # Finished Jobs
288+
self.jobMonitor.removeFinishedItems()
289+
elif index == 3: # Selected Jobs
290+
self.jobMonitor.actionRemoveSelectedItems()
291+
# Reset to default selection after action
292+
unmonitorCombo.setCurrentIndex(0)
293+
294+
unmonitorCombo.currentIndexChanged.connect(handleUnmonitorSelection)
295+
layout.addWidget(unmonitorCombo)
298296

299297
eatSelectedButton = QtWidgets.QPushButton(QtGui.QIcon(":eat.png"), "")
300298
eatSelectedButton.setToolTip("Eats all dead frames for selected jobs")

docs/_docs/user-guides/cuetopia-monitoring-guide.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This guide provides comprehensive documentation for Cuetopia, which includes the
3333

3434
The Monitor Jobs plugin is the primary interface for monitoring active and completed render jobs. It provides a comprehensive overview of all jobs with real-time status updates.
3535

36-
![Monitor Jobs Interface](/assets/images/cuegui/cuetopia_monitor_jobs.png)
36+
![Monitor Jobs Interface](/assets/images/cuegui/cuetopia/cuetopia_monitor_jobs.png)
3737

3838
### Interface Components
3939

@@ -63,10 +63,12 @@ The toolbar contains the following controls from left to right:
6363
- Groups jobs with dependencies together
6464
- Shows parent-child relationships in the tree view
6565

66-
7. **Action Buttons** (from left to right):
67-
- **Finished** (eject icon): Removes all finished jobs from monitoring
68-
- **All** (eject icon): Clears all jobs from the monitor
69-
- **Selected** (eject icon): Removes selected jobs
66+
7. **Unmonitor Dropdown**: A dropdown menu with options to remove jobs from monitoring:
67+
- **All Jobs**: Clears all jobs from the monitor
68+
- **Finished Jobs**: Removes all finished jobs from monitoring
69+
- **Selected Jobs**: Removes selected jobs
70+
71+
8. **Action Buttons** (from left to right):
7072
- **Eat** (pac-man icon): Eats all dead frames in selected jobs
7173
- **Retry** (circular arrow): Retries all dead frames in selected jobs
7274
- **Kill** (X icon): Kills selected jobs
351 KB
Loading
-383 KB
Binary file not shown.

0 commit comments

Comments
 (0)