00001 /* 00002 * HT Editor 00003 * htleimg.h 00004 * 00005 * Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de) 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License version 2 as 00009 * published by the Free Software Foundation. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef __HTLEIMG_H__ 00022 #define __HTLEIMG_H__ 00023 00024 #include "htanaly.h" 00025 #include "htle.h" 00026 #include "formats.h" 00027 00028 extern format_viewer_if htleimage_if; 00029 00030 /* 00031 * CLASS ht_le_aviewer 00032 */ 00033 00034 class ht_le_aviewer: public ht_aviewer { 00035 public: 00036 ht_le_shared_data *le_shared; 00037 ht_streamfile *file; 00038 00039 void init(bounds *b, char *desc, int caps, ht_streamfile *file, ht_format_group *format_group, Analyser *Analyser, ht_le_shared_data *le_shared); 00040 /* overwritten */ 00041 virtual char *func(UINT i, bool execute); 00042 virtual void setAnalyser(Analyser *a); 00043 virtual bool get_current_real_offset(FILEOFS *ofs); 00044 virtual bool offset_to_pos(FILEOFS ofs, viewer_pos *p); 00045 virtual bool pos_to_offset(viewer_pos p, FILEOFS *ofs); 00046 }; 00047 00048 #endif /* !__HTLEIMG_H__ */ 00049