00001 #ifndef RECORDTRANSPORT_H
00002 #define RECORDTRANSPORT_H
00003
00004 #include "guicast.h"
00005 #include "record.inc"
00006
00007 class RecordGUIEnd;
00008 class RecordGUIBack;
00009 class RecordGUIFwd;
00010 class RecordGUIPlay;
00011 class RecordGUIRec;
00012 class RecordGUIStop;
00013 class RecordGUIRewind;
00014 class RecordGUIRecFrame;
00015
00016 class RecordTransport
00017 {
00018 public:
00019 RecordTransport(MWindow *mwindow,
00020 Record *record,
00021 BC_WindowBase *window,
00022 int x,
00023 int y);
00024 ~RecordTransport();
00025
00026 int create_objects();
00027 void reposition_window(int x, int y);
00028 int keypress_event();
00029 int get_h();
00030 int get_w();
00031
00032 MWindow *mwindow;
00033 BC_WindowBase *window;
00034 Record *record;
00035 int x, y;
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 RecordGUIEnd *end_button;
00048 RecordGUIFwd *fwd_button;
00049 RecordGUIBack *back_button;
00050 RecordGUIRewind *rewind_button;
00051 RecordGUIStop *stop_button;
00052 RecordGUIPlay *play_button;
00053 RecordGUIRec *record_button;
00054 RecordGUIRecFrame *record_frame;
00055 int x_end;
00056 };
00057
00058
00059
00060 class RecordGUIRec : public BC_Button
00061 {
00062 public:
00063 RecordGUIRec(MWindow *mwindow, Record *record, int x, int y);
00064 ~RecordGUIRec();
00065
00066 int handle_event();
00067 int keypress_event();
00068 MWindow *mwindow;
00069 Record *record;
00070 };
00071
00072 class RecordGUIRecFrame : public BC_Button
00073 {
00074 public:
00075 RecordGUIRecFrame(MWindow *mwindow, Record *record, int x, int y);
00076 ~RecordGUIRecFrame();
00077
00078 int handle_event();
00079 int keypress_event();
00080 Record *record;
00081 };
00082
00083 class RecordGUIPlay : public BC_Button
00084 {
00085 public:
00086 RecordGUIPlay(MWindow *mwindow, int x, int y);
00087 ~RecordGUIPlay();
00088
00089 int handle_event();
00090 int keypress_event();
00091 RecordEngine *engine;
00092 };
00093
00094 class RecordGUIStop : public BC_Button
00095 {
00096 public:
00097 RecordGUIStop(MWindow *mwindow, Record *record, int x, int y);
00098 ~RecordGUIStop();
00099
00100 int handle_event();
00101 int keypress_event();
00102 Record *record;
00103 };
00104
00105 class RecordGUIRewind : public BC_Button
00106 {
00107 public:
00108 RecordGUIRewind(MWindow *mwindow, Record *record, int x, int y);
00109 ~RecordGUIRewind();
00110
00111 int handle_event();
00112 int keypress_event();
00113 RecordEngine *engine;
00114 Record *record;
00115 };
00116
00117 class RecordGUIBack : public BC_Button
00118 {
00119 public:
00120 RecordGUIBack(MWindow *mwindow, Record *record, int x, int y);
00121 ~RecordGUIBack();
00122
00123 int handle_event();
00124 int button_press();
00125 int button_release();
00126 int repeat_event();
00127 int keypress_event();
00128 long count;
00129 long repeat_id;
00130
00131 RecordEngine *engine;
00132 Record *record;
00133 };
00134
00135 class RecordGUIFwd : public BC_Button
00136 {
00137 public:
00138 RecordGUIFwd(MWindow *mwindow, Record *record, int x, int y);
00139 ~RecordGUIFwd();
00140
00141 int handle_event();
00142 int button_press();
00143 int button_release();
00144 int repeat_event();
00145 int keypress_event();
00146
00147 long count;
00148 long repeat_id;
00149 RecordEngine *engine;
00150 Record *record;
00151 };
00152
00153 class RecordGUIEnd : public BC_Button
00154 {
00155 public:
00156 RecordGUIEnd(MWindow *mwindow, Record *record, int x, int y);
00157 ~RecordGUIEnd();
00158
00159 int handle_event();
00160 int keypress_event();
00161 RecordEngine *engine;
00162 Record *record;
00163 };
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177 #endif