feat(multimonitor): Add simple multi-monitor support to open another study(#4178)
This commit is contained in:
1 parent
a4a6de07f4
commit
07c628e689
49 files changed
+1476
-367
No files matched your search
@@ -0,0 +1,81 @@
|
||||
export const studyBrowserContextMenu = {
|
||||
id: 'StudyBrowser.studyContextMenu',
|
||||
customizationType: 'ohif.contextMenu',
|
||||
menus: [
|
||||
{
|
||||
id: 'studyBrowserContextMenu',
|
||||
// selector restricts context menu to when there is nearbyToolData
|
||||
items: [
|
||||
{
|
||||
label: 'Show in Grid',
|
||||
commands: {
|
||||
commandName: 'loadStudy',
|
||||
commandOptions: {
|
||||
commands: {
|
||||
commandName: 'setHangingProtocol',
|
||||
commandOptions: {
|
||||
protocolId: '@ohif/mnGrid8',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Show in other monitor',
|
||||
selector: ({ isMultimonitor }) => isMultimonitor,
|
||||
commands: {
|
||||
commandName: 'multimonitor',
|
||||
commandOptions: {
|
||||
commands: {
|
||||
commandName: 'loadStudy',
|
||||
commandOptions: {
|
||||
commands: {
|
||||
commandName: 'setHangingProtocol',
|
||||
commandOptions: {
|
||||
protocolId: '@ohif/mnGrid8',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Compare All',
|
||||
selector: ({ isMultimonitor }) => isMultimonitor,
|
||||
commands: [
|
||||
{
|
||||
commandName: 'loadStudy',
|
||||
commandOptions: {
|
||||
commands: {
|
||||
commandName: 'setHangingProtocol',
|
||||
commandOptions: {
|
||||
protocolId: '@ohif/mnGrid',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
commandName: 'multimonitor',
|
||||
commandOptions: {
|
||||
commands: {
|
||||
commandName: 'loadStudy',
|
||||
commandOptions: {
|
||||
commands: {
|
||||
commandName: 'setHangingProtocol',
|
||||
commandOptions: {
|
||||
protocolId: '@ohif/mnGridMonitor2',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default studyBrowserContextMenu;
|
||||
Reference in new issue
Block a user