source: vendor/emx/current/src/pmgdb/display.h

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.2 KB
Line 
1/* display.h -*- C++ -*-
2 Copyright (c) 1996 Eberhard Mattes
3
4This file is part of pmgdb.
5
6pmgdb is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11pmgdb is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with pmgdb; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20
21
22class command_window;
23class gdbio;
24
25class display_window : public pmtxt
26{
27public:
28
29 typedef pmtxt parent;
30
31 display_window (command_window *cmd, gdbio *gdb, unsigned id,
32 const SWP *pswp, const char *fontnamesize);
33 ~display_window ();
34
35 void delete_all_displays (bool init);
36 void update (int number, const char *expr, const char *format,
37 const char *value, bool enable = true);
38 void enable (int number);
39 void disable (int number);
40 void remove (int number);
41 bool add (HWND hwnd);
42
43private:
44 class display;
45
46 // Override member functions of pmframe
47 MRESULT wm_activate (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
48 MRESULT wm_close (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
49 MRESULT wm_command (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
50 bool wm_user (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
51 void button_event (int line, int column, int tab, int button, int clicks);
52 display *find_by_number (int number);
53 display *find_by_line (int line);
54 void update (display *p);
55 void select_line (int line, bool toggle = false);
56 void modify (const display *p, const char *new_format, const char *new_expr,
57 bool new_enable, bool add);
58 void modify (display *p);
59 void change_representation (char fmtchr);
60 void dereference (display *p, bool add);
61
62 command_window *cmd;
63 gdbio *gdb;
64 display *head;
65 int sel_line, sel_count;
66 pmtxt_attr sel_attr;
67
68 // Expected new display
69 int exp_number;
70 bool exp_enable;
71 int exp_line;
72};
Note: See TracBrowser for help on using the repository browser.