2 * Simulator of microcontrollers (pmapp.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_pmapp::mk_views(class cl_group *ins_to)
42 b= new cl_box(0,0,0,0);
48 v= new cl_portw(b, 3, "Port #3", this);
53 v= new cl_portw(b, 2, "Port #2", this);
58 ins_to->insert(v= new cl_portw(b, 1, "Port #1", this));
62 ins_to->insert(v= new cl_portw(b, 0, "Port #0", this));
66 v= new cl_label(b, this,
67 "Next win: n,TAB\nPrev win: p\nCursor : u,d,l,r,\n arrows\nToggle : space,CR\nQuit : q");
73 w= new cl_win(b, "Help", this);
74 w->options&= ~OF_SELECTABLE;
86 cl_pmapp::mk_palette(void)
88 return(cl_app::mk_palette());
92 cl_pmapp::handle_event(struct t_event *event)
94 if (event->what == EV_KEY)
95 switch (event->event.key)
98 event->what= EV_COMMAND;
99 event->event.msg.cmd= CMD_QUIT;
109 return(cl_app::handle_event(event));
113 /* End of gui.src/portmon.src/pmapp.cc */