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 class ResourcePixmap : public BC_Pixmap
00011 {
00012 public:
00013 ResourcePixmap(MWindow *mwindow,
00014 TrackCanvas *canvas,
00015 Edit *edit,
00016 int w,
00017 int h);
00018 ~ResourcePixmap();
00019
00020 void resize(int w, int h);
00021 void draw_data(Edit *edit,
00022 int64_t edit_x,
00023 int64_t edit_w,
00024 int64_t pixmap_x,
00025 int64_t pixmap_w,
00026 int64_t pixmap_h,
00027 int force,
00028 int indexes_only);
00029 void draw_audio_resource(Edit *edit,
00030 int x,
00031 int w);
00032 void draw_video_resource(Edit *edit,
00033 int64_t edit_x,
00034 int64_t edit_w,
00035 int64_t pixmap_x,
00036 int64_t pixmap_w,
00037 int refresh_x,
00038 int refresh_w);
00039 void draw_audio_source(Edit *edit, int x, int w);
00040 void draw_title(Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w);
00041 void reset();
00042
00043 void test_timer();
00044
00045 void dump();
00046
00047 MWindow *mwindow;
00048 TrackCanvas *canvas;
00049
00050 int visible;
00051
00052 int64_t edit_id;
00053 int64_t edit_x, pixmap_x, pixmap_w, pixmap_h;
00054 int64_t zoom_sample, zoom_track, zoom_y;
00055 int64_t startsource;
00056 double source_framerate, project_framerate;
00057 int64_t source_samplerate, project_samplerate;
00058 int data_type;
00059
00060 Timer *timer;
00061 };
00062
00063 #endif