diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/anagram/vaclgui/dpanel.hpp	Sat Dec 22 17:52:45 2007 -0500
@@ -0,0 +1,63 @@
+/*
+ * AnaGram, A System for Syntax Directed Programming
+ * Copyright 1997-2002 Parsifal Software. All Rights Reserved.
+ * See the file COPYING for license and usage terms.
+ *
+ * dpanel.hpp
+ */
+
+#ifndef DPANEL_HPP
+#define DPANEL_HPP
+
+//#include <iframe.hpp>
+//#include <isysmenu.hpp>
+
+#include "dview.hpp"
+#include "frame.hpp"
+
+
+class AgDataPanel
+  : public AgFrame
+{
+public:
+  AgDataPanel(WindowData *);
+  AgDataPanel();
+  ~AgDataPanel();
+
+  void init();
+  int getCursorLine();
+  AgDataPanel &close();
+  void disconnect();
+  virtual unsigned getLineNumber();
+  virtual void     setLineNumber(unsigned);
+  virtual Boolean  findNext(AgString);
+  virtual Boolean  findPrev(AgString);
+
+
+protected:
+  HelpDemon helpDemon;
+
+public:
+
+  // Child Windows
+  AgDataView      *dataView;
+
+  AgDataPanel &copyTo(IClipboard &c) {
+    dataView->copyTo(c);
+    return *this;
+  }
+  AgString copyTitle() { return dataView->copyTitle; }
+
+  // Window parameters
+
+  AgDataPanel &setFocus() {
+    dataView->setFocus();
+    return *this;
+  }
+
+};
+
+inline int AgDataPanel::getCursorLine() { return dataView->getCursorLine(); }
+
+
+#endif /* DPANEL_HPP */