16 #include "mwindow.inc"
17 #include "mwindowgui.inc"
18 #include "zoompanel.h"
20 class ZoomBar
: public BC_SubWindow
23 ZoomBar(MWindow
*mwindow
, MWindowGUI
*gui
);
27 void ZoomBar::resize_event();
29 int resize_event(int w
, int h
);
30 void redraw_time_dependancies();
31 int update(); // redraw the current values
33 int update_playback(int64_t new_position
); // update the playback position
34 int set_selection(int which_one
);
38 SampleZoomPanel
*sample_zoom
;
39 AmpZoomPanel
*amp_zoom
;
40 TrackZoomPanel
*track_zoom
;
42 BC_Title
*zoom_value
, *playback_value
;
43 LengthTextBox
*length_value
;
44 FromTextBox
*from_value
;
46 char string
[256], string2
[256];
50 class SampleZoomPanel
: public ZoomPanel
53 SampleZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
60 class AmpZoomPanel
: public ZoomPanel
63 AmpZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
70 class TrackZoomPanel
: public ZoomPanel
73 TrackZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
88 class FromTextBox
: public BC_TextBox
91 FromTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
93 int update_position(double new_position
);
94 char string
[256], string2
[256];
100 class LengthTextBox
: public BC_TextBox
103 LengthTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
105 int update_position(double new_position
);
106 char string
[256], string2
[256];
111 class ToTextBox
: public BC_TextBox
114 ToTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
116 int update_position(double new_position
);
117 char string
[256], string2
[256];