r602: Fix baver's code... don't insert timecode when show_tc is not set
[cinelerra_cv/mob.git] / cinelerra / mbuttons.h
blob399832a9977c0c5ff8fa1a5f55742a5d9df50260
1 #ifndef MBUTTONS_H
2 #define MBUTTONS_H
4 class KeyFrameButton;
5 class ExpandX;
6 class ZoomX;
7 class ExpandY;
8 class ZoomY;
9 class ExpandTrack;
10 class ZoomTrack;
11 class ExpandVideo;
12 class MainEditing;
13 class ZoomVideo;
14 class LabelButton;
15 class Cut;
16 class Copy;
17 class Paste;
19 #include "editpanel.h"
20 #include "guicast.h"
21 #include "labelnavigate.inc"
22 #include "mbuttons.inc"
23 #include "mwindow.inc"
24 #include "mwindowgui.inc"
25 #include "playtransport.h"
26 #include "record.inc"
31 class MButtons : public BC_SubWindow
33 public:
34 MButtons(MWindow *mwindow, MWindowGUI *gui);
35 ~MButtons();
37 int create_objects();
38 int resize_event();
39 int keypress_event();
40 int start_playback(BC_Button *button, int reverse, float speed);
41 int resume_playback();
42 int pause_transport(); // After frame advance
43 void update();
45 MWindowGUI *gui;
46 MWindow *mwindow;
47 PlayTransport *transport;
48 LabelNavigate *labelnavigate;
49 MainEditing *edit_panel;
52 ExpandX *expand_x_button;
53 ZoomX *zoom_x_button;
55 BC_Title *y_title;
56 ExpandY *expand_y_button;
57 ZoomY *zoom_y_button;
59 BC_Title *t_title;
60 ExpandTrack *expand_t_button;
61 ZoomTrack *zoom_t_button;
63 BC_Title *v_title;
64 ExpandVideo *expand_v_button;
65 ZoomVideo *zoom_v_button;
67 LabelButton *label_button;
68 Cut *cut_button;
69 Copy *copy_button;
70 Paste *paste_button;
73 class MainTransport : public PlayTransport
75 public:
76 MainTransport(MWindow *mwindow, MButtons *mbuttons, int x, int y);
77 void goto_start();
78 void goto_end();
81 class MainEditing : public EditPanel
83 public:
84 MainEditing(MWindow *mwindow, MButtons *mbuttons, int x, int y);
87 MWindow *mwindow;
88 MButtons *mbuttons;
91 class RecButton : public BC_Button
93 public:
94 RecButton(int x, int y, MWindow *mwindow);
95 int handle_event();
96 int keypress_event();
97 MWindow *mwindow;
100 class ExpandX : public BC_Button
102 public:
103 ExpandX(int x, int y, MWindow *mwindow);
104 int handle_event();
105 int keypress_event();
106 MWindow *mwindow;
109 class ZoomX : public BC_Button
111 public:
112 ZoomX(int x, int y, MWindow *mwindow);
113 int handle_event();
114 int keypress_event();
115 MWindow *mwindow;
118 class ExpandY : public BC_Button
120 public:
121 ExpandY(int x, int y, MWindow *mwindow);
122 int handle_event();
123 int keypress_event();
124 MWindow *mwindow;
127 class ZoomY : public BC_Button
129 public:
130 ZoomY(int x, int y, MWindow *mwindow);
131 int handle_event();
132 int keypress_event();
133 MWindow *mwindow;
136 class ExpandTrack : public BC_Button
138 public:
139 ExpandTrack(int x, int y, MWindow *mwindow);
140 int handle_event();
141 int keypress_event();
142 MWindow *mwindow;
145 class ZoomTrack : public BC_Button
147 public:
148 ZoomTrack(int x, int y, MWindow *mwindow);
149 int handle_event();
150 int keypress_event();
151 MWindow *mwindow;
154 class ExpandVideo : public BC_Button
156 public:
157 ExpandVideo(int x, int y, MWindow *mwindow);
158 int handle_event();
159 MWindow *mwindow;
162 class ZoomVideo : public BC_Button
164 public:
165 ZoomVideo(int x, int y, MWindow *mwindow);
166 int handle_event();
167 MWindow *mwindow;
170 class LabelButton : public BC_Button
172 public:
173 LabelButton(int x, int y, MWindow *mwindow);
174 int handle_event();
175 int keypress_event();
176 MWindow *mwindow;
179 #endif