NEURON
symchoos.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 /* hacked by Michael Hines from fchooser.h */
26 /*
27  * SymChooser -- select a Symbol
28  */
29 
30 #pragma once
31 
32 #include <InterViews/dialog.h>
33 #include <InterViews/resource.h>
34 
35 #include <InterViews/_enter.h>
36 
37 class SymChooser;
38 class SymChooserImpl;
39 class String;
40 class WidgetKit;
41 class SymDirectory;
42 
43 class SymChooserAction: public Resource {
44  protected:
46  virtual ~SymChooserAction();
47 
48  public:
49  virtual void execute(SymChooser*, bool accept);
50 };
51 
52 class SymChooser: public Dialog {
53  public:
55  virtual ~SymChooser();
56 
57  virtual const std::string& selected() const;
58  virtual double* selected_var();
59  virtual int selected_vector_count();
60  virtual void reread();
61  virtual void dismiss(bool);
62 
63  private:
64  SymChooserImpl* impl_;
65 };
66 
67 #include <InterViews/_leave.h>
#define Style
Definition: _defines.h:278
#define Dialog
Definition: _defines.h:92
#define WidgetKit
Definition: _defines.h:328
virtual void execute(SymChooser *, bool accept)
virtual ~SymChooserAction()
virtual void reread()
virtual void dismiss(bool)
virtual ~SymChooser()
virtual double * selected_var()
SymChooserImpl * impl_
Definition: symchoos.h:64
virtual const std::string & selected() const
virtual int selected_vector_count()
SymChooser(SymDirectory *, WidgetKit *, Style *, SymChooserAction *=NULL, int nbrowser=3)
#define NULL
Definition: spdefs.h:105