comparison anagram/vaclgui/dpanel.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 * dpanel.hpp
7 */
8
9 #ifndef DPANEL_HPP
10 #define DPANEL_HPP
11
12 //#include <iframe.hpp>
13 //#include <isysmenu.hpp>
14
15 #include "dview.hpp"
16 #include "frame.hpp"
17
18
19 class AgDataPanel
20 : public AgFrame
21 {
22 public:
23 AgDataPanel(WindowData *);
24 AgDataPanel();
25 ~AgDataPanel();
26
27 void init();
28 int getCursorLine();
29 AgDataPanel &close();
30 void disconnect();
31 virtual unsigned getLineNumber();
32 virtual void setLineNumber(unsigned);
33 virtual Boolean findNext(AgString);
34 virtual Boolean findPrev(AgString);
35
36
37 protected:
38 HelpDemon helpDemon;
39
40 public:
41
42 // Child Windows
43 AgDataView *dataView;
44
45 AgDataPanel &copyTo(IClipboard &c) {
46 dataView->copyTo(c);
47 return *this;
48 }
49 AgString copyTitle() { return dataView->copyTitle; }
50
51 // Window parameters
52
53 AgDataPanel &setFocus() {
54 dataView->setFocus();
55 return *this;
56 }
57
58 };
59
60 inline int AgDataPanel::getCursorLine() { return dataView->getCursorLine(); }
61
62
63 #endif /* DPANEL_HPP */