Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htpefimp.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      htpefimp.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 __HTPEFIMP_H__
00022 #define __HTPEFIMP_H__
00023 
00024 #include "htdialog.h"
00025 #include "formats.h"
00026 
00027 extern format_viewer_if htpefimports_if;
00028 
00029 /*
00030  *      class ht_pef_import_library
00031  */
00032 
00033 class ht_pef_import_library: public Object {
00034 public:
00035         char *name;
00036 
00037         ht_pef_import_library(char *name);
00038         ~ht_pef_import_library();
00039 };
00040 
00041 /*
00042  *      class ht_pef_import_function
00043  */
00044 
00045 class ht_pef_import_function: public Object {
00046 public:
00047         UINT libidx;
00048         int num;
00049         char *name;
00050         UINT sym_class;
00051 
00052         ht_pef_import_function(UINT libidx, int num, const char *name, UINT sym_class);
00053         ~ht_pef_import_function();
00054 };
00055 
00056 struct ht_pef_import {
00057         ht_clist *funcs;
00058         ht_clist *libs;
00059 };
00060 
00061 /*
00062  *      CLASS ht_pef_import_viewer
00063  */
00064 
00065 class ht_pef_import_viewer: public ht_itext_listbox {
00066 protected:
00067         ht_format_group *format_group;
00068         bool grouplib;
00069         UINT sortby;
00070         /* new */
00071     
00072                 void    dosort();
00073 public:
00074                 void    init(bounds *b, char *desc, ht_format_group *fg);
00075         virtual void    done();
00076         /* overwritten */
00077         virtual void    handlemsg(htmsg *msg);
00078         virtual bool    select_entry(void *entry);
00079         /* new */
00080                 char *  func(UINT i, bool execute);
00081 };
00082 
00083 #endif /* !__HTPEFIMP_H__ */

Generated on Fri May 7 21:15:36 2004 by doxygen 1.3.5