11 #define ZOOM_PERCENTAGE 0
19 ZoomHash(double value
, char *text
);
29 ZoomPanel(MWindow
*mwindow
,
30 BC_WindowBase
*subwindow
,
37 int zoom_type
= ZOOM_PERCENTAGE
);
38 ZoomPanel(MWindow
*mwindow
,
39 BC_WindowBase
*subwindow
,
46 int zoom_type
= ZOOM_PERCENTAGE
);
49 virtual int handle_event() { return 1; };
51 void calculate_menu();
56 void set_text(char *text
);
57 char* value_to_text(double value
, int use_table
= 1);
58 double text_to_zoom(char *text
, int use_table
= 1);
59 void update(double value
);
60 void update(char *value
);
61 void reposition_window(int x
, int y
);
62 // Set images to be used
63 void set_menu_images(VFrame
**data
);
64 void set_tumbler_images(VFrame
**data
);
67 BC_WindowBase
*subwindow
;
74 ZoomTumbler
*zoom_tumbler
;
75 char string
[BCTEXTLEN
];
80 ArrayList
<ZoomHash
*> zoom_table
;
82 VFrame
**tumbler_images
;
85 class ZoomPopup
: public BC_PopupMenu
88 ZoomPopup(MWindow
*mwindow
, ZoomPanel
*panel
, int x
, int y
);
97 class ZoomTumbler
: public BC_Tumbler
100 ZoomTumbler(MWindow
*mwindow
, ZoomPanel
*panel
, int x
, int y
);
103 int handle_up_event();
104 int handle_down_event();