Menu_definitions {
    Viewer_window {
        Label <Viewer window>
        Menubar {
            Command_classes <menubar:vi_menubar>
            Menus <File:Edit:View:Help>
        }
        Toolbar {
            Command_classes <menubar:vi_menubar>
            100 <quit>
            200 <search>
            300 <reports>
            400 <>
            500 <clear_presentation>
            600 <reset_presentation>
            700 <previous_monitor>
            800 <next_monitor>
            900 <>
            1000 <viewer_partition_1_1>
            1100 <viewer_partition_1_2>
            1200 <viewer_partition_2_2>
        }
        Popups {
            Image_view {
                Label <Image pop-up>
                Command_classes <image_view:wl_image:wl_local>
                Menu <Image_view>
            }
            Stack_view {
                Label <Stack pop-up>	
                Command_classes <stack_view:image_view:wl_image:wl_local>
                Menu <Stack_view>
            }
            Image_view_toolbox {		
                Label <Image pop-up toolbox>
                Command_classes <image_view:wl_image:wl_local>
                Menu <Image_view_toolbox>
            }
            Stack_view_toolbox {
                Label <Stack pop-up toolbox>	
                Command_classes <stack_view:image_view:wl_image:wl_local>
                Menu <Stack_view_toolbox>
            }
        }
        Menus {
            File {
                Label <&File>
                 50 <open_file>
                100 <search>
                200 <>
                300 <change_password>
                400 <>
                500 <quit>
            }
            Edit {
                Label <&Edit>
                100 <clear_presentation>
                200 <reset_presentation>
                300 <>
                400 <disable_hw_acceleration>
                500 <configure_compression>
            }
            View {
                Label <&View>
                100 <reports>
                200 <show_exam_properties>
                300 <>
                400 <previous_monitor>
                500 <next_monitor>
                600 <>
                700 {
                    Label <&Partition>
		    100 <viewer_partition_1_1>
		    200 <viewer_partition_1_2>
		    300 <viewer_partition_1_3>
		    400 <viewer_partition_2_1>
		    500 <viewer_partition_2_2>
		    600 <viewer_partition_2_3>
		    700 <viewer_partition_3_1>
		    800 <viewer_partition_3_2>
		    900 <viewer_partition_3_3>
                }
                800 <>
                900 {
                    Label <&Image information>
                    100 <anonymized_display_level>
                    200 <min_display_level>
                    300 <max_display_level>
                }
                1000 {
                    Label <&Annotations>
                    100 <show_annotations_global>
                    200 <hide_annotations_global>
                    300 <>
                    400 <dicom_oly_white>
                    500 <dicom_oly_black>
                    600 <dicom_oly_none>
                }
                1100 {
                    Label <&Localizer>
                    100 <show_localizer_cmd>
                    200 <show_simple_localizer_cmd>
                    300 <hide_localizer_cmd>
                }
                1200 {
                    Label <Tool controls>
                    100 <scroll_control_autoshow>
                    200 <wl_control_autoshow>
                    300 <zoom_control_autoshow>
                    400 <>
                    500 <all_controls_autoshow>
                    600 <no_controls_autoshow>
                }
                1300 <>
                1400 <full_screen>
            }
            Help {
                Label <&Help>
                100 <open_users_guide>
                1000 <>
                1050 <check_for_updates>
                1100 <about_viewer>
                1200 <network_test>
            }
            Image_view {
		50 <pan_im_cmd>
		75 <zoom_im_cmd>
	        80 <window_level_im_cmd>
		90 <>
                100 <refine_image>
                300 <image_edge_enhance>
                400 <>
                500 {
                    Label <Zoom>
                    100 <magnifying_glass>
                    200 <>
                    300 <image_zoom_in>
                    400 <image_zoom_out>
                    500 <>
                    600 <image_zoom_to_fit>
                    700 <pixel_to_pixel>
                }
                600 {
                    Label <Crop>
                    100 <crop_image>
                    200 <toggle_crop>
                    300 <reset_crop>
                }
                700 {
                    Label <Window/Level>
                    100 <image_invert>
                    200 <>
                    300 <image_window>
                    400 <>
                    500 <local_window>
                    600 <>
                    700 <local_window_step>
                }
                800 {
                    Label <Orientation>
                    100 <image_flip_vertical>
                    200 <image_flip_horizontal>
                    300 <>
                    400 <image_rot_90>
                    500 <image_rot_180>
                    600 <image_rot_270>
                }
		900 {
                    Label <Tool controls>
                    100 <wl_control>
                    200 <zoom_control>
                }
                1000 <>
                1100 {
                    Label <Annotate>
                    100 <show_annotations_local>
                    200 <hide_annotations_local>
                    300 <>
                    400 <dicom_oly_white_lcl>
                    500 <dicom_oly_black_lcl>
                    600 <dicom_oly_none_lcl>
                }
                1200 {
                    Label <Measure>
                    400 <measure_distance>
                    500 <measure_angle>
                    600 <measure_area>
                    700 <measure_stat_circ>
                    800 <measure_stat_area>
                }
                1300 {
                    Label <Calibration>
                    100 <calibration>
                    200 <reset_calibration>
                }
                1400 {
                    Label <Key images>
                    100 <previous_key_collection>
                    200 <next_key_collection>
                }
                1500 <>
                1600 <sync_cmd>
                1700 <release_cmd>
                3000 <>
                3100 <previous_collection>
                3200 <next_collection>
                3300 <copy_image>
                3400 <>
                3500 <viewer_reset_to_pstate>
                3600 <image_reset>
            }
            Stack_view {
		50 <pan_im_cmd>
		75 <zoom_im_cmd>
	        80 <window_level_im_cmd>
		85 <browse_im_cmd>
		90 <rotateV3D_im_cmd> 
		95 <>
                100 <refine_image>
		200 <refine_stack>
                300 <image_edge_enhance>
                400 <>
                500 {
                    Label <Zoom>
                    100 <magnifying_glass>
                    200 <>
                    300 <image_zoom_in>
                    400 <image_zoom_out>
                    500 <>
                    600 <image_zoom_to_fit>
                    700 <pixel_to_pixel>
                }
                600 {
                    Label <Crop>
                    100 <crop_image>
                    200 <toggle_crop>
                    300 <reset_crop>
                }
                700 {
                    Label <Window/Level>
                    100 <image_invert>
                    200 <>
                    300 <image_window>
                    400 <>
                    500 <local_window>
                    600 <>
                    700 <local_window_step>
                }
                800 {
                    Label <Orientation>
                    100 <image_flip_vertical>
                    200 <image_flip_horizontal>
                    300 <>
                    400 <image_rot_90>
                    500 <image_rot_180>
                    600 <image_rot_270>
                }
		900 {
                    Label <Tool controls>
                    100 <scroll_control>
                    200 <wl_control>
                    300 <zoom_control>
                }
                1000 <>
                1100 {
                    Label <Annotate>
                    100 <show_annotations_local>
                    200 <hide_annotations_local>
                    300 <>
                    400 <dicom_oly_white_lcl>
                    500 <dicom_oly_black_lcl>
                    600 <dicom_oly_none_lcl>
                }
                1200 {
                    Label <Measure>
                    400 <measure_distance>
                    500 <measure_angle>
                    600 <measure_area>
                    700 <measure_stat_circ>
                    800 <measure_stat_area>
                }
                1300 {
                    Label <Calibration>
                    100 <calibration>
                    200 <reset_calibration>
                }
                1400 {
                    Label <Key images>
		    100 <stack_prev_tag_cmd>
		    200 <stack_next_tag_cmd>
		    300 <stack_cine_prev_tag_cmd>
		    400 <stack_cine_next_tag_cmd>
                    500 <>
                    600 <previous_key_collection>
                    700 <next_key_collection>
                }
                1500 <>
                1600 <sync_cmd>
                1700 <release_cmd>
                2000 <>
                2100 {
                    Label <Stack tile>
                    100 <tile_1_1_cmd>
                    200 <tile_2_2_cmd>
                    300 <tile_3_3_cmd>
                    400 <tile_4_4_cmd>
                }
                2200 {
                    Label <Stack navigation>
                    100 <stack_first_im_cmd>
                    200 <stack_last_im_cmd>
                    300 <>
                    400 <stack_page_up_cmd>
                    500 <stack_page_down_cmd>
                    600 <stack_line_up_cmd>
                    700 <stack_line_down_cmd>
                }
                2300 {
                    Label <Scanogram>
                    100 <show_scout_cmd>
                    200 <hide_scout_cmd>
                }
                2400 <stack_cine_loop_cmd>
                2500 <stack_cine_bounce_cmd>
                2600 <stack_cine_stop_cmd>
                3000 <>
                3100 <previous_collection>
                3200 <next_collection>
                3300 <copy_image>
                3400 <>
                3500 <viewer_reset_to_pstate>
                3600 <image_reset>
            }
            Image_view_toolbox {
                100 <image_zoom_in>
                200 <image_zoom_out>
                300 <magnifying_glass>
                400 <crop_image>
                500 <image_flip_vertical>
                600 <image_flip_horizontal>
                700 <image_rot_90>
                800 <image_rot_270>
                900 <measure_distance>
                1000 <measure_angle>
                1100 <image_reset>
                1200 <show_popup_menu>
            }
            Stack_view_toolbox {
                100 <image_zoom_in>
                200 <image_zoom_out>
                300 <magnifying_glass>
                400 <crop_image>
                500 <image_flip_vertical>
                600 <image_flip_horizontal>
                700 <image_rot_90>
                800 <image_rot_270>
                900 <measure_distance>
                1000 <measure_angle>
                1100 <stack_cine_loop_cmd>
                1200 <stack_cine_stop_cmd>
                1300 <image_reset>
                1400 <show_popup_menu>
            }
        }
    }
}
