Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / gui.src / obsolete / groupcl.h
1 /*
2  * Simulator of microcontrollers (groupcl.h)
3  *
4  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
5  * 
6  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7  *
8  */
9
10 /* This file is part of microcontroller simulator: ucsim.
11
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.
16
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.
21
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
25 02111-1307, USA. */
26 /*@1@*/
27
28 #ifndef GROUPCL_HEADER
29 #define GROUPCL_HEADER
30
31 #include "viewcl.h"
32
33 class cl_group: public cl_view
34 {
35 public:
36   class cl_view *current;
37
38 public:
39   cl_group(class cl_box *ipos, char *iname, class cl_app *iapp);
40   cl_group(char *iname, class cl_app *iapp);
41   ~cl_group(void);
42   virtual int init(void);
43   virtual int mk_views(class cl_group *ins_to);
44   virtual int is_group(void) {return(1);}
45
46   virtual int draw(void);
47   //virtual int update(void);
48
49   virtual int handle_event(struct t_event *event);
50
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);
65 };
66
67
68 #endif
69
70 /* End of gui.src/groupcl.h */