2 * Simulator of microcontrollers (win.cc)
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
36 cl_win::cl_win(class cl_box *ipos, char *ititle, class cl_app *iapp):
37 cl_group(ipos, 0, iapp)
39 title= strdup(ititle);
44 name= (char*)malloc(100);
45 sprintf(name, "win%p", this);
63 if ((frame= mk_frame(pos)))
65 class cl_box *b= new cl_box(pos->x,pos->y, pos->w,pos->h);
68 if ((intern= mk_intern(b)))
76 cl_win::mk_palette(void)
78 int *p= (int*)malloc(8*sizeof(int)), i;
79 for (i= 0; i < 8; i++)
85 cl_win::mk_frame(class cl_box *ipos)
89 sprintf(n, "frameof_\"%s\"", name);
90 class cl_frame *f= new cl_frame(ipos, this, n, app);
96 cl_win::mk_intern(class cl_box *ipos)
98 class cl_view *v= new cl_view(ipos, 0, app);
100 v->options&= ~OF_SELECTABLE;
105 cl_win::get_title(void)
111 /* End of gui.src/win.cc */