Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/vaclgui/dvplug.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 * dvplug.hpp | |
7 */ | |
8 | |
9 #ifndef DVPLUG_HPP | |
10 #define DVPLUG_HPP | |
11 | |
12 #include "agarray.h" | |
13 #include "dc.h" | |
14 #include "dview.hpp" | |
15 #include "wdata.h" | |
16 | |
17 | |
18 class AgDataViewPlug | |
19 : public WindowData | |
20 , public WindowConnector | |
21 { | |
22 private: | |
23 dc_ref displayControl; | |
24 AgDataView *dataView; | |
25 | |
26 public: | |
27 AgDataViewPlug(dc_ref control) | |
28 : displayControl(control) | |
29 , dataView(0) | |
30 {} | |
31 | |
32 virtual ~AgDataViewPlug(); | |
33 | |
34 void disconnect(); | |
35 void setFocus(); | |
36 int getCursorLine(); | |
37 AgDataViewPlug *windowData() { return this; } | |
38 virtual void synchCursor(unsigned); | |
39 | |
40 static IColor color[10]; | |
41 | |
42 void connect(AgDataView *dataView_) { | |
43 //LOGSECTION("AgDataViewPlug::connect"); | |
44 dataView = dataView_; | |
45 } | |
46 AgArray<AgMenuItem> auxMenu(); | |
47 virtual void show(); | |
48 | |
49 AgString getLine(unsigned k); | |
50 AgString findHelpTopic(); | |
51 unsigned nColumns(); | |
52 unsigned nLines(); | |
53 int nextChildId(); | |
54 | |
55 AgString fileName(); | |
56 AgString headTitle(); | |
57 AgString columnHeadTitle(); | |
58 AgString footTitle(); | |
59 | |
60 int syntaxDependent(); | |
61 }; | |
62 | |
63 #endif /* DVPLUG_HPP */ |