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