|
|
@ -36,6 +36,9 @@ iconSize = QtCore.QSize(16,16) |
|
|
|
|
|
|
|
class ClientItem(QtWidgets.QTreeWidgetItem): |
|
|
|
""" |
|
|
|
Item on the right side. Clients of the session, in various states. |
|
|
|
|
|
|
|
|
|
|
|
clientDict = { |
|
|
|
"clientId":clientId, #for convenience, included internally as well |
|
|
|
"dumbClient":True, #Bool. Real nsm or just any old program? status "Ready" switches this. |
|
|
@ -107,6 +110,9 @@ class ClientItem(QtWidgets.QTreeWidgetItem): |
|
|
|
if clientDict["executable"] in programIcons: |
|
|
|
icon = programIcons[clientDict["executable"]] |
|
|
|
self.setIcon(self.parentController.clientsTreeWidgetColumns.index("reportedName"), icon) #reported name is correct here. this is just the column. |
|
|
|
else: #Not NSM client added by the prompt widget |
|
|
|
icon = QtGui.QIcon.fromTheme(clientDict["executable"]) |
|
|
|
self.setIcon(self.parentController.clientsTreeWidgetColumns.index("reportedName"), icon) |
|
|
|
|
|
|
|
nameColumn = self.parentController.clientsTreeWidgetColumns.index("reportedName") |
|
|
|
if clientDict["reportedName"] is None: |
|
|
@ -357,6 +363,8 @@ class ClientTable(object): |
|
|
|
|
|
|
|
class LauncherProgram(QtWidgets.QTreeWidgetItem): |
|
|
|
""" |
|
|
|
An item on the left side of the window. Used to start programs and show info, but nothing more. |
|
|
|
|
|
|
|
Example: |
|
|
|
{ 'categories': 'AudioVideo;Audio;X-Recorders;X-Multitrack;X-Jack;', |
|
|
|
'comment': 'Easy to use pattern sequencer for JACK and NSM', |
|
|
|