00001 /* 00002 * HT Editor 00003 * htfinfo.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 __HTFINFO_H__ 00022 #define __HTFINFO_H__ 00023 00024 #include "formats.h" 00025 #include "htdialog.h" 00026 00027 #define FINFO_DESC "file info" 00028 00029 extern format_viewer_if htfinfo_if; 00030 00031 /* 00032 * ht_finfo_text 00033 */ 00034 00035 class ht_finfo_text: public ht_statictext { 00036 protected: 00037 ht_streamfile *file; 00038 char finfotext[1024]; 00039 char *olddesc; 00040 00041 public: 00042 void init(bounds *b, ht_streamfile *file); 00043 virtual void done(); 00044 /* overwritten */ 00045 virtual char *gettext(); 00046 }; 00047 00048 #endif /* __HTFINFO_H__ */ 00049