r1005: Increase the number of displayed digits for resample audio dialog box
[cinelerra_cv/mob.git] / cinelerra / avc1394transport.h
blob692079508946790c3e4357826ad9f91404b98a7b
1 #ifndef AVC1394TRANSPORT_H
2 #define AVC1394TRANSPORT_H
4 #include "avc1394control.h"
5 #include "mwindow.h"
6 #include "theme.h"
8 class AVC1394TransportThread;
9 class AVC1394Transport;
10 class AVC1394GUIRewind;
11 class AVC1394GUIReverse;
12 class AVC1394GUIStop;
13 class AVC1394GUIPause;
14 class AVC1394GUIPlay;
15 class AVC1394GUIFForward;
16 class AVC1394GUISeekStart;
17 class AVC1394GUISeekEnd;
20 class AVC1394TransportThread : public Thread
22 public:
23 AVC1394TransportThread(BC_Title *label, AVC1394Control *avc);
24 ~AVC1394TransportThread();
26 void run();
28 BC_Title *label;
29 AVC1394Control *avc;
31 int tid;
32 int done;
35 class AVC1394Transport
37 public:
38 AVC1394Transport(MWindow *mwindow, AVC1394Control *avc, BC_WindowBase *window, int x, int y);
39 ~AVC1394Transport();
41 int create_objects();
42 void reposition_window(int x, int y);
43 int keypress_event(int keypress);
45 MWindow *mwindow;
46 AVC1394Control *avc;
47 BC_WindowBase *window;
48 int x;
49 int y;
50 int x_end;
52 // Buttons
53 AVC1394GUIRewind *rewind_button;
54 AVC1394GUIReverse *reverse_button;
55 AVC1394GUIStop *stop_button;
56 AVC1394GUIPause *pause_button;
57 AVC1394GUIPlay *play_button;
58 AVC1394GUIFForward *fforward_button;
59 AVC1394GUISeekStart *start_button;
60 AVC1394GUISeekEnd *end_button;
63 class AVC1394GUISeekStart : public BC_Button
65 public:
66 AVC1394GUISeekStart(MWindow *mwindow, AVC1394Control *avc, int x, int y);
67 ~AVC1394GUISeekStart();
69 int handle_event();
70 int keypress_event();
71 MWindow *mwindow;
72 AVC1394Control *avc;
75 class AVC1394GUIRewind : public BC_Button
77 public:
78 AVC1394GUIRewind(MWindow *mwindow, AVC1394Control *avc, int x, int y);
79 ~AVC1394GUIRewind();
81 int handle_event();
82 int keypress_event();
83 MWindow *mwindow;
84 AVC1394Control *avc;
87 class AVC1394GUIReverse : public BC_Button
89 public:
90 AVC1394GUIReverse(MWindow *mwindow, AVC1394Control *avc, int x, int y);
91 ~AVC1394GUIReverse();
93 int handle_event();
94 int keypress_event();
95 MWindow *mwindow;
96 AVC1394Control *avc;
99 class AVC1394GUIStop : public BC_Button
101 public:
102 AVC1394GUIStop(MWindow *mwindow, AVC1394Control *avc, int x, int y);
103 ~AVC1394GUIStop();
105 int handle_event();
106 int keypress_event();
107 MWindow *mwindow;
108 AVC1394Control *avc;
111 class AVC1394GUIPause : public BC_Button
113 public:
114 AVC1394GUIPause(MWindow *mwindow, AVC1394Control *avc, int x, int y);
115 ~AVC1394GUIPause();
117 int handle_event();
118 int keypress_event();
119 MWindow *mwindow;
120 AVC1394Control *avc;
123 class AVC1394GUIPlay : public BC_Button
125 public:
126 AVC1394GUIPlay(MWindow *mwindow, AVC1394Control *avc, int x, int y);
127 ~AVC1394GUIPlay();
129 int handle_event();
130 int keypress_event();
131 MWindow *mwindow;
132 AVC1394Control *avc;
133 int mode;
136 class AVC1394GUIFForward : public BC_Button
138 public:
139 AVC1394GUIFForward(MWindow *mwindow, AVC1394Control *avc, int x, int y);
140 ~AVC1394GUIFForward();
142 int handle_event();
143 int keypress_event();
144 MWindow *mwindow;
145 AVC1394Control *avc;
148 class AVC1394GUISeekEnd : public BC_Button
150 public:
151 AVC1394GUISeekEnd(MWindow *mwindow, AVC1394Control *avc, int x, int y);
152 ~AVC1394GUISeekEnd();
154 int handle_event();
155 int keypress_event();
156 MWindow *mwindow;
157 AVC1394Control *avc;
160 #endif