r708: Removed redundant qualification in member function declarations (by Tim Murphy).
[cinelerra_cv.git] / cinelerra / zoombar.h
blob10cc94bc3caac8e8eeadff41751084e57dbe481a
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;
12 class AutoZoom;
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 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 void update_autozoom();
33 int update_clocks();
34 int update_playback(int64_t new_position); // update the playback position
35 int set_selection(int which_one);
36 void update_formatting(BC_TextBox *dst);
38 MWindow *mwindow;
39 MWindowGUI *gui;
40 SampleZoomPanel *sample_zoom;
41 AmpZoomPanel *amp_zoom;
42 TrackZoomPanel *track_zoom;
43 AutoZoom *auto_zoom;
44 BC_Title *auto_zoom_text;
46 BC_Title *zoom_value, *playback_value;
47 LengthTextBox *length_value;
48 FromTextBox *from_value;
49 ToTextBox *to_value;
50 char string[256], string2[256];
51 int64_t old_position;
54 class SampleZoomPanel : public ZoomPanel
56 public:
57 SampleZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
58 int handle_event();
59 MWindow *mwindow;
60 ZoomBar *zoombar;
63 class AmpZoomPanel : public ZoomPanel
65 public:
66 AmpZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
67 int handle_event();
68 MWindow *mwindow;
69 ZoomBar *zoombar;
72 class TrackZoomPanel : public ZoomPanel
74 public:
75 TrackZoomPanel(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
76 int handle_event();
77 MWindow *mwindow;
78 ZoomBar *zoombar;
81 class AutoZoom : public BC_Tumbler
83 public:
84 AutoZoom(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
85 int handle_up_event();
86 int handle_down_event();
87 MWindow *mwindow;
88 ZoomBar *zoombar;
99 class FromTextBox : public BC_TextBox
101 public:
102 FromTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
103 int handle_event();
104 int update_position(double new_position);
105 char string[256], string2[256];
106 MWindow *mwindow;
107 ZoomBar *zoombar;
111 class LengthTextBox : public BC_TextBox
113 public:
114 LengthTextBox(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;
122 class ToTextBox : public BC_TextBox
124 public:
125 ToTextBox(MWindow *mwindow, ZoomBar *zoombar, int x, int y);
126 int handle_event();
127 int update_position(double new_position);
128 char string[256], string2[256];
129 MWindow *mwindow;
130 ZoomBar *zoombar;
136 #endif