| 6005 | } |
| 6006 | |
| 6007 | image_display:: |
| 6008 | image_display( |
| 6009 | drawable_window& w |
| 6010 | ): |
| 6011 | scrollable_region(w,KEYBOARD_EVENTS), |
| 6012 | zoom_in_scale(1), |
| 6013 | zoom_out_scale(1), |
| 6014 | drawing_rect(true), |
| 6015 | rect_is_selected(false), |
| 6016 | selected_rect(0), |
| 6017 | default_rect_color(255,0,0,255), |
| 6018 | parts_menu(w), |
| 6019 | part_width(100), // "parts" circles are drawn 1.0/part_width size on the screen relative to the size of the bounding rectangle. |
| 6020 | overlay_editing_enabled(true), |
| 6021 | highlight_timer(*this, &image_display::timer_event_unhighlight_rect), |
| 6022 | highlighted_rect(std::numeric_limits<unsigned long>::max()), |
| 6023 | holding_shift_key(false) |
| 6024 | { |
| 6025 | enable_mouse_drag(); |
| 6026 | |
| 6027 | highlight_timer.set_delay_time(250); |
| 6028 | set_horizontal_scroll_increment(1); |
| 6029 | set_vertical_scroll_increment(1); |
| 6030 | set_horizontal_mouse_wheel_scroll_increment(30); |
| 6031 | set_vertical_mouse_wheel_scroll_increment(30); |
| 6032 | |
| 6033 | parts_menu.disable(); |
| 6034 | |
| 6035 | |
| 6036 | enable_events(); |
| 6037 | } |
| 6038 | |
| 6039 | // ---------------------------------------------------------------------------------------- |
| 6040 | |