16 #include "mwindow.inc"
17 #include "mwindowgui.inc"
18 #include "zoompanel.h"
20 class ZoomBar
: public BC_SubWindow
23 ZoomBar(MWindow
*mwindow
, MWindowGUI
*gui
);
29 int resize_event(int w
, int h
);
30 void redraw_time_dependancies();
31 int update(); // redraw the current values
32 void update_autozoom();
34 int update_playback(int64_t new_position
); // update the playback position
35 int set_selection(int which_one
);
36 void update_formatting(BC_TextBox
*dst
);
40 SampleZoomPanel
*sample_zoom
;
41 AmpZoomPanel
*amp_zoom
;
42 TrackZoomPanel
*track_zoom
;
44 BC_Title
*auto_zoom_text
;
46 BC_Title
*zoom_value
, *playback_value
;
47 LengthTextBox
*length_value
;
48 FromTextBox
*from_value
;
50 char string
[256], string2
[256];
54 class SampleZoomPanel
: public ZoomPanel
57 SampleZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
63 class AmpZoomPanel
: public ZoomPanel
66 AmpZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
72 class TrackZoomPanel
: public ZoomPanel
75 TrackZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
81 class AutoZoom
: public BC_Tumbler
84 AutoZoom(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
85 int handle_up_event();
86 int handle_down_event();
99 class FromTextBox
: public BC_TextBox
102 FromTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
104 int update_position(double new_position
);
105 char string
[256], string2
[256];
111 class LengthTextBox
: public BC_TextBox
114 LengthTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
116 int update_position(double new_position
);
117 char string
[256], string2
[256];
122 class ToTextBox
: public BC_TextBox
125 ToTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
127 int update_position(double new_position
);
128 char string
[256], string2
[256];