r136: This commit was manufactured by cvs2svn to create tag 'hv_1_1_8'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / zoombar.h
blob1f0290f530d1aa7c140697692508ec899b1ee179
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);
35 void update_formatting(BC_TextBox *dst);
37 MWindow *mwindow;
38 MWindowGUI *gui;
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;
46 ToTextBox *to_value;
47 char string[256], string2[256];
48 int64_t old_position;
51 class SampleZoomPanel : public ZoomPanel
53 public:
54 SampleZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
55 ~SampleZoomPanel();
56 int handle_event();
57 MWindow *mwindow;
58 ZoomBar *zoombar;
61 class AmpZoomPanel : public ZoomPanel
63 public:
64 AmpZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
65 ~AmpZoomPanel();
66 int handle_event();
67 MWindow *mwindow;
68 ZoomBar *zoombar;
71 class TrackZoomPanel : public ZoomPanel
73 public:
74 TrackZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
75 ~TrackZoomPanel();
76 int handle_event();
77 MWindow *mwindow;
78 ZoomBar *zoombar;
89 class FromTextBox : public BC_TextBox
91 public:
92 FromTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
93 int handle_event();
94 int update_position(double new_position);
95 char string[256], string2[256];
96 MWindow *mwindow;
97 ZoomBar *zoombar;
101 class LengthTextBox : public BC_TextBox
103 public:
104 LengthTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
105 int handle_event();
106 int update_position(double new_position);
107 char string[256], string2[256];
108 MWindow *mwindow;
109 ZoomBar *zoombar;
112 class ToTextBox : public BC_TextBox
114 public:
115 ToTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
116 int handle_event();
117 int update_position(double new_position);
118 char string[256], string2[256];
119 MWindow *mwindow;
120 ZoomBar *zoombar;
126 #endif