OSDN Git Service

d1f5f7239493d10dd72e5e226c08b2e83af43e47
[pf3gnuchains/pf3gnuchains4x.git] / gdb / gdbtk / library / mempref.ith
1 # Memory display preferences window class definition for GDBtk.
2 # Copyright (C) 1998, 1999 Cygnus Solutions
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License (GPL) as published by
6 # the Free Software Foundation; either version 2 of the License, or (at
7 # your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14
15 itcl::class MemPref {
16   inherit ModalDialog ManagedWin
17
18   public {
19     variable win
20     variable size
21     variable format
22     variable numbytes
23     variable bpr
24     variable ascii
25     variable ascii_char
26     variable color
27
28     method constructor {args}
29     method destructor {}
30     method busy {}
31     method idle {}
32     method cancel {}
33     method set_bytes_per_row {w value}
34     method check_numbytes {var index mode}
35     method toggle_size_control {}
36     method apply {}
37     method enable_format {}
38     method disable_format {}
39     method pick {lab}
40     method reconfig {}
41   }
42   
43   private {
44     # The next seven variables are all used in the radio-buttons
45     # and checkbuttons of the display.
46     variable gsize   
47     variable gformat 
48     variable gnumbytes 
49     variable gbpr 
50     variable gbprlist
51     variable gascii  
52     variable gascii_char 
53     variable gvar
54
55     variable Widgets
56     variable WidgetState
57     variable format_disabled 0
58     variable old_numbytes
59     variable normal_background
60     method build_win {}
61     method ok {}
62   }
63
64   protected {
65     common float_size ""
66     common double_size ""
67     common default_numbytes 128
68   }
69
70 }