1 | /* display.h -*- C++ -*-
|
---|
2 | Copyright (c) 1996 Eberhard Mattes
|
---|
3 |
|
---|
4 | This file is part of pmgdb.
|
---|
5 |
|
---|
6 | pmgdb is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | pmgdb is distributed in the hope that it will be useful,
|
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | GNU General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with pmgdb; see the file COPYING. If not, write to
|
---|
18 | the Free Software Foundation, 59 Temple Place - Suite 330,
|
---|
19 | Boston, MA 02111-1307, USA. */
|
---|
20 |
|
---|
21 |
|
---|
22 | class command_window;
|
---|
23 | class gdbio;
|
---|
24 |
|
---|
25 | class display_window : public pmtxt
|
---|
26 | {
|
---|
27 | public:
|
---|
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 |
|
---|
43 | private:
|
---|
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 | };
|
---|