r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / zoombar.h
blob7ae639b905d033dd4b4f7983cb4ee908cd1ab176
1 #ifndef ZOOMBAR_H
2 #define ZOOMBAR_H
4 class FromTextBox;
5 class LengthTextBox;
6 class ToTextBox;
9 class SampleZoomPanel;
10 class AmpZoomPanel;
11 class TrackZoomPanel;
15 #include "guicast.h"
16 #include "mwindow.inc"
17 #include "mwindowgui.inc"
18 #include "zoompanel.h"
20 class ZoomBar : public BC_SubWindow
22 public:
23 ZoomBar(MWindow *mwindow, MWindowGUI *gui);
24 ~ZoomBar();
26 int create_objects();
27 void ZoomBar::resize_event();
28 int draw();
29 int resize_event(int w, int h);
30 void redraw_time_dependancies();
31 int update(); // redraw the current values
32 int update_clocks();
33 int update_playback(int64_t new_position); // update the playback position
34 int set_selection(int which_one);
36 MWindow *mwindow;
37 MWindowGUI *gui;
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;
45 ToTextBox *to_value;
46 char string[256], string2[256];
47 int64_t old_position;
50 class SampleZoomPanel : public ZoomPanel
52 public:
53 SampleZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
54 ~SampleZoomPanel();
55 int handle_event();
56 MWindow *mwindow;
57 ZoomBar *zoombar;
60 class AmpZoomPanel : public ZoomPanel
62 public:
63 AmpZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
64 ~AmpZoomPanel();
65 int handle_event();
66 MWindow *mwindow;
67 ZoomBar *zoombar;
70 class TrackZoomPanel : public ZoomPanel
72 public:
73 TrackZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
74 ~TrackZoomPanel();
75 int handle_event();
76 MWindow *mwindow;
77 ZoomBar *zoombar;
88 class FromTextBox : public BC_TextBox
90 public:
91 FromTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
92 int handle_event();
93 int update_position(double new_position);
94 char string[256], string2[256];
95 MWindow *mwindow;
96 ZoomBar *zoombar;
100 class LengthTextBox : public BC_TextBox
102 public:
103 LengthTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
104 int handle_event();
105 int update_position(double new_position);
106 char string[256], string2[256];
107 MWindow *mwindow;
108 ZoomBar *zoombar;
111 class ToTextBox : public BC_TextBox
113 public:
114 ToTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
115 int handle_event();
116 int update_position(double new_position);
117 char string[256], string2[256];
118 MWindow *mwindow;
119 ZoomBar *zoombar;
125 #endif