17 #include "mwindow.inc"
18 #include "mwindowgui.inc"
19 #include "zoompanel.h"
21 class ZoomBar
: public BC_SubWindow
24 ZoomBar(MWindow
*mwindow
, MWindowGUI
*gui
);
30 int resize_event(int w
, int h
);
31 void redraw_time_dependancies();
32 int update(); // redraw the current values
33 void update_autozoom();
35 int update_playback(int64_t new_position
); // update the playback position
36 int set_selection(int which_one
);
37 void update_formatting(BC_TextBox
*dst
);
41 SampleZoomPanel
*sample_zoom
;
42 AmpZoomPanel
*amp_zoom
;
43 TrackZoomPanel
*track_zoom
;
45 AutoTypeMenu
*auto_type
;
46 ZoomTextBox
*auto_zoom_text
;
48 BC_Title
*zoom_value
, *playback_value
;
49 LengthTextBox
*length_value
;
50 FromTextBox
*from_value
;
52 char string
[256], string2
[256];
56 class SampleZoomPanel
: public ZoomPanel
59 SampleZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
65 class AmpZoomPanel
: public ZoomPanel
68 AmpZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
74 class TrackZoomPanel
: public ZoomPanel
77 TrackZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
83 class AutoZoom
: public BC_Tumbler
86 AutoZoom(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
, int changemax
);
87 int handle_up_event();
88 int handle_down_event();
95 class AutoTypeMenu
: public BC_PopupMenu
98 AutoTypeMenu(MWindow
*mwindow
,
102 void create_objects();
103 static char* to_text(int shape
);
104 static int from_text(char *text
);
111 class ZoomTextBox
: public BC_TextBox
114 ZoomTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
, char *text
);
115 int button_press_event();
128 class FromTextBox
: public BC_TextBox
131 FromTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
133 int update_position(double new_position
);
134 char string
[256], string2
[256];
140 class LengthTextBox
: public BC_TextBox
143 LengthTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
145 int update_position(double new_position
);
146 char string
[256], string2
[256];
151 class ToTextBox
: public BC_TextBox
154 ToTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
156 int update_position(double new_position
);
157 char string
[256], string2
[256];