Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/vaclgui/statwin.hpp @ 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 1997-2002 Parsifal Software. All Rights Reserved. | |
4 * See the file COPYING for license and usage terms. | |
5 * | |
6 * statwin.hpp | |
7 */ | |
8 | |
9 #ifndef STATWIN_HPP | |
10 #define STATWIN_HPP | |
11 | |
12 #include <imcelcv.hpp> | |
13 //#include <ipainevt.hpp> | |
14 #include <ipainhdr.hpp> | |
15 //#include <isetcv.hpp> | |
16 class IStaticText; //#include <istattxt.hpp> | |
17 | |
18 #include "action.h" | |
19 #include "agnotify.h" | |
20 #include "frame.hpp" | |
21 | |
22 | |
23 class StatisticsWindow | |
24 : public AgFrame | |
25 , public IPaintHandler | |
26 { | |
27 protected: | |
28 enum { nLines = 8 }; | |
29 IMultiCellCanvas clientArea; | |
30 struct Parameter { | |
31 char *name; | |
32 int *value; | |
33 }; | |
34 struct Line { | |
35 IStaticText *name; | |
36 IStaticText *value; | |
37 }; | |
38 static Parameter parameter[nLines]; | |
39 Line line[nLines]; | |
40 IStaticText *statisticsField(IWindow *owner); | |
41 void resize(); | |
42 AgNotificationAction<StatisticsWindow> dataColorChange; | |
43 AgNotificationAction<StatisticsWindow> fontChange; | |
44 void onColorChange(); | |
45 void onFontChange(); | |
46 | |
47 HelpDemon helpDemon; | |
48 HelpDemon *nameDemon[nLines]; | |
49 HelpDemon *valueDemon[nLines]; | |
50 | |
51 public: | |
52 StatisticsWindow::StatisticsWindow(); | |
53 ~StatisticsWindow(); | |
54 Boolean paintWindow(IPaintEvent &event); | |
55 | |
56 int updateDisplay(); | |
57 }; | |
58 | |
59 #endif /* STATWIN_HPP */ |