11 class SampleZoomPanel
;
18 #include "mwindow.inc"
19 #include "mwindowgui.inc"
20 #include "zoompanel.h"
22 class ZoomBar
: public BC_SubWindow
25 ZoomBar(MWindow
*mwindow
, MWindowGUI
*gui
);
31 int resize_event(int w
, int h
);
32 void redraw_time_dependancies();
33 int update(); // redraw the current values
34 void update_autozoom();
36 int update_playback(int64_t new_position
); // update the playback position
37 int set_selection(int which_one
);
38 void update_formatting(BC_TextBox
*dst
);
42 SampleZoomPanel
*sample_zoom
;
43 AmpZoomPanel
*amp_zoom
;
44 TrackZoomPanel
*track_zoom
;
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
);
87 int handle_up_event();
88 int handle_down_event();
98 class ZoomTextBox
: public BC_TextBox
101 ZoomTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
, char *text
);
109 class FromTextBox
: public BC_TextBox
112 FromTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
114 int update_position(double new_position
);
115 char string
[256], string2
[256];
121 class LengthTextBox
: public BC_TextBox
124 LengthTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
126 int update_position(double new_position
);
127 char string
[256], string2
[256];
132 class ToTextBox
: public BC_TextBox
135 ToTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
137 int update_position(double new_position
);
138 char string
[256], string2
[256];