NEURON
dbrowser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1991 Stanford University
3  * Copyright (c) 1991 Silicon Graphics, Inc.
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and
6  * its documentation for any purpose is hereby granted without fee, provided
7  * that (i) the above copyright notices and this permission notice appear in
8  * all copies of the software and related documentation, and (ii) the names of
9  * Stanford and Silicon Graphics may not be used in any advertising or
10  * publicity relating to the software without the specific, prior written
11  * permission of Stanford and Silicon Graphics.
12  *
13  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * IN NO EVENT SHALL STANFORD OR SILICON GRAPHICS BE LIABLE FOR
18  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22  * OF THIS SOFTWARE.
23  */
24 
25 /*
26  * DocBrowser -- browse a directory
27  */
28 
29 #ifndef dbrowser_h
30 #define dbrowser_h
31 
32 #include <IV-look/browser.h>
33 
34 class Adjustable;
35 class DocBrowserImpl;
36 class WidgetKit;
37 class Word;
38 
39 class DocBrowser : public Browser {
40 public:
42  virtual ~DocBrowser();
43 
44  virtual void press(const Event&);
45  virtual void drag(const Event&);
46  virtual void release(const Event&);
47  virtual void keystroke(const Event&);
48  virtual InputHandler* focus_in();
49  virtual void focus_out();
50 
51  virtual void select(GlyphIndex);
52 
53  virtual Adjustable* adjustable() const;
54  virtual void refresh();
55  virtual void select_word_action(Action*);
56  virtual Word* select_word();
57 private:
58  DocBrowserImpl* impl_;
59 };
60 
61 #endif
#define WidgetKit
Definition: _defines.h:331
DocBrowserImpl * impl_
Definition: dbrowser.h:58
DocBrowser(TBScrollBox *, WidgetKit *)
#define InputHandler
Definition: _defines.h:151
virtual Word * select_word()
#define Browser
Definition: _defines.h:57
virtual void keystroke(const Event &)
virtual void focus_out()
virtual void select_word_action(Action *)
virtual void press(const Event &)
virtual ~DocBrowser()
virtual InputHandler * focus_in()
virtual void drag(const Event &)
#define GlyphIndex
Definition: _defines.h:23
#define TBScrollBox
Definition: _defines.h:287
#define Event
Definition: _defines.h:107
virtual Adjustable * adjustable() const
#define Adjustable
Definition: _defines.h:29
#define Action
Definition: _defines.h:27
virtual void refresh()
virtual void release(const Event &)
virtual void select(GlyphIndex)