00001 #ifndef RESOURCEPIXMAP_H
00002 #define RESOURCEPIXMAP_H
00003
00004 #include "bctimer.inc"
00005 #include "edit.inc"
00006 #include "guicast.h"
00007 #include "mwindow.inc"
00008 #include "trackcanvas.inc"
00009
00010
00011
00012
00013 class ResourcePixmap : public BC_Pixmap
00014 {
00015 public:
00016 ResourcePixmap(MWindow *mwindow,
00017 TrackCanvas *canvas,
00018 Edit *edit,
00019 int w,
00020 int h);
00021 ~ResourcePixmap();
00022
00023 void resize(int w, int h);
00024 void draw_data(Edit *edit,
00025 int64_t edit_x,
00026 int64_t edit_w,
00027 int64_t pixmap_x,
00028 int64_t pixmap_w,
00029 int64_t pixmap_h,
00030 int mode,
00031 int indexes_only);
00032 void draw_audio_resource(Edit *edit,
00033 int x,
00034 int w);
00035 void draw_video_resource(Edit *edit,
00036 int64_t edit_x,
00037 int64_t edit_w,
00038 int64_t pixmap_x,
00039 int64_t pixmap_w,
00040 int refresh_x,
00041 int refresh_w,
00042 int mode);
00043 void draw_audio_source(Edit *edit, int x, int w);
00044
00045 void draw_wave(int x, double high, double low);
00046 void draw_title(Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w);
00047 void reset();
00048
00049 void test_timer();
00050
00051 void dump();
00052
00053 MWindow *mwindow;
00054 TrackCanvas *canvas;
00055
00056 int visible;
00057
00058 int64_t edit_id;
00059 int64_t edit_x, pixmap_x, pixmap_w, pixmap_h;
00060 int64_t zoom_sample, zoom_track, zoom_y;
00061 int64_t startsource;
00062 double source_framerate, project_framerate;
00063 int64_t source_samplerate, project_samplerate;
00064 int data_type;
00065
00066 Timer *timer;
00067 };
00068
00069 #endif