2023-09-22 16:23:44 +02:00
|
|
|
import ToolbarDivider from './Toolbar/ToolbarDivider';
|
|
|
|
|
import ToolbarLayoutSelectorWithServices from './Toolbar/ToolbarLayoutSelector';
|
|
|
|
|
import ToolbarSplitButtonWithServices from './Toolbar/ToolbarSplitButtonWithServices';
|
|
|
|
|
import ToolbarButtonWithServices from './Toolbar/ToolbarButtonWithServices';
|
2020-06-15 03:18:29 +02:00
|
|
|
|
|
|
|
|
export default function getToolbarModule({ commandsManager, servicesManager }) {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
name: 'ohif.divider',
|
|
|
|
|
defaultComponent: ToolbarDivider,
|
2020-09-15 03:18:46 +02:00
|
|
|
clickHandler: () => {},
|
2020-06-15 03:18:29 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ohif.action',
|
2023-09-22 16:23:44 +02:00
|
|
|
defaultComponent: ToolbarButtonWithServices,
|
2020-09-15 03:18:46 +02:00
|
|
|
clickHandler: () => {},
|
2020-06-15 03:18:29 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ohif.radioGroup',
|
2023-09-22 16:23:44 +02:00
|
|
|
defaultComponent: ToolbarButtonWithServices,
|
2020-09-15 03:18:46 +02:00
|
|
|
clickHandler: () => {},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ohif.splitButton',
|
2023-09-22 16:23:44 +02:00
|
|
|
defaultComponent: ToolbarSplitButtonWithServices,
|
2020-09-15 03:18:46 +02:00
|
|
|
clickHandler: () => {},
|
2020-06-15 03:18:29 +02:00
|
|
|
},
|
2020-06-15 06:51:36 +02:00
|
|
|
{
|
|
|
|
|
name: 'ohif.layoutSelector',
|
2023-09-22 16:23:44 +02:00
|
|
|
defaultComponent: ToolbarLayoutSelectorWithServices,
|
2020-09-15 03:18:46 +02:00
|
|
|
clickHandler: (evt, clickedBtn, btnSectionName) => {},
|
2020-06-15 06:51:36 +02:00
|
|
|
},
|
2020-06-15 03:18:29 +02:00
|
|
|
{
|
|
|
|
|
name: 'ohif.toggle',
|
2023-09-22 16:23:44 +02:00
|
|
|
defaultComponent: ToolbarButtonWithServices,
|
2023-01-06 21:00:23 +01:00
|
|
|
clickHandler: () => {},
|
2020-06-15 03:18:29 +02:00
|
|
|
},
|
|
|
|
|
];
|
2020-05-13 14:22:08 +02:00
|
|
|
}
|