2 * Simulator of microcontrollers (groupcl.h)
4 * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
6 * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
10 /* This file is part of microcontroller simulator: ucsim.
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING. If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
28 #ifndef GROUPCL_HEADER
29 #define GROUPCL_HEADER
33 class cl_group: public cl_view
36 class cl_view *current;
39 cl_group(class cl_box *ipos, char *iname, class cl_app *iapp);
40 cl_group(char *iname, class cl_app *iapp);
42 virtual int init(void);
43 virtual int mk_views(class cl_group *ins_to);
44 virtual int is_group(void) {return(1);}
46 virtual int draw(void);
47 //virtual int update(void);
49 virtual int handle_event(struct t_event *event);
51 virtual /*class cl_view **/void insert(class cl_view *view);
52 virtual void insert_before(class cl_view *view, class cl_view *target);
53 virtual void insert_view(class cl_view *view, class cl_view *target);
54 virtual class cl_view *first(void);
55 virtual void for_each(void (*func)(class cl_view *view));
56 //virtual class cl_view *get_by_state(unsigned int what, int enabled);
57 //virtual int select(void);
58 //virtual int unselect(void);
59 virtual int select_next();
60 virtual int select_prev();
61 virtual class cl_view *current_sub_view(void);
62 virtual void set_current(class cl_view *view);
63 //virtual int terminal_view(void);
64 virtual void change_state(unsigned int what, int enable);
70 /* End of gui.src/groupcl.h */