Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/guisupport/brt.h @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 /* | |
2 * AnaGram, A System for Syntax Directed Programming | |
3 * Copyright 1993-2002 Parsifal Software. All Rights Reserved. | |
4 * See the file COPYING for license and usage terms. | |
5 * | |
6 * brt.h | |
7 */ | |
8 | |
9 #ifndef BRT_H | |
10 #define BRT_H | |
11 | |
12 #include "agarray.h" | |
13 #include "dc.h" | |
14 | |
15 | |
16 class help_dc : public dc { | |
17 private: | |
18 AgString msg; | |
19 AgArray<int> lines; | |
20 AgArray<int> xref; | |
21 int width; | |
22 | |
23 public: | |
24 unsigned msg_number; | |
25 help_dc(unsigned, const AgString); | |
26 help_dc(help_dc &x) | |
27 : dc(x), msg(x.msg), lines(x.lines), | |
28 xref(x.xref), width(x.width), msg_number(x.msg_number) {} | |
29 | |
30 //AgString expand_help_block(short *pairs, const AgArray<char>); | |
31 //void load_help(help_screen_map *m); | |
32 //void find_xref(void); | |
33 | |
34 virtual void getLine(unsigned) const; | |
35 }; | |
36 | |
37 class help_index_dc : public dc { | |
38 public: | |
39 help_index_dc(void); | |
40 help_index_dc(help_index_dc &x) : dc(x) {} | |
41 | |
42 virtual void getLine(unsigned)const; | |
43 virtual AgString findHelpTopic(); | |
44 }; | |
45 | |
46 class param_table_dc : public dc { | |
47 public: | |
48 param_table_dc(void); | |
49 param_table_dc(param_table_dc &x) : dc(x) {} | |
50 | |
51 virtual void getLine(unsigned) const; | |
52 virtual AgString findHelpTopic(); | |
53 }; | |
54 | |
55 class text_window_dc : public dc { | |
56 protected: | |
57 AgString text; | |
58 | |
59 public: | |
60 text_window_dc(void) {text = NULL;} | |
61 text_window_dc(AgString title, AgString data); | |
62 text_window_dc(text_window_dc &x) : dc(x), text(x.text) {} | |
63 | |
64 virtual void getLine(unsigned) const; | |
65 }; | |
66 | |
67 | |
68 #endif /* BRT_H */ |