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
);
35 void update_formatting(BC_TextBox
*dst
);
39 SampleZoomPanel
*sample_zoom
;
40 AmpZoomPanel
*amp_zoom
;
41 TrackZoomPanel
*track_zoom
;
43 BC_Title
*zoom_value
, *playback_value
;
44 LengthTextBox
*length_value
;
45 FromTextBox
*from_value
;
47 char string
[256], string2
[256];
51 class SampleZoomPanel
: public ZoomPanel
54 SampleZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
61 class AmpZoomPanel
: public ZoomPanel
64 AmpZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
71 class TrackZoomPanel
: public ZoomPanel
74 TrackZoomPanel(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
89 class FromTextBox
: public BC_TextBox
92 FromTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
94 int update_position(double new_position
);
95 char string
[256], string2
[256];
101 class LengthTextBox
: public BC_TextBox
104 LengthTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
106 int update_position(double new_position
);
107 char string
[256], string2
[256];
112 class ToTextBox
: public BC_TextBox
115 ToTextBox(MWindow
*mwindow
, ZoomBar
*zoombar
, int x
, int y
);
117 int update_position(double new_position
);
118 char string
[256], string2
[256];