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
:
45
SymChooserAction
();
46
virtual
~SymChooserAction
();
47
48
public
:
49
virtual
void
execute
(
SymChooser
*,
bool
accept);
50
};
51
52
class
SymChooser
:
public
Dialog
{
53
public
:
54
SymChooser
(
SymDirectory
*,
WidgetKit
*,
Style
*,
SymChooserAction
* =
NULL
,
int
nbrowser = 3);
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
>
_enter.h
_leave.h
Style
#define Style
Definition:
_defines.h:278
Dialog
#define Dialog
Definition:
_defines.h:92
WidgetKit
#define WidgetKit
Definition:
_defines.h:328
Resource
Definition:
resource.h:33
SymChooserAction
Definition:
symchoos.h:43
SymChooserAction::SymChooserAction
SymChooserAction()
SymChooserAction::execute
virtual void execute(SymChooser *, bool accept)
SymChooserAction::~SymChooserAction
virtual ~SymChooserAction()
SymChooser
Definition:
symchoos.h:52
SymChooser::reread
virtual void reread()
SymChooser::dismiss
virtual void dismiss(bool)
SymChooser::~SymChooser
virtual ~SymChooser()
SymChooser::selected_var
virtual double * selected_var()
SymChooser::impl_
SymChooserImpl * impl_
Definition:
symchoos.h:64
SymChooser::selected
virtual const std::string & selected() const
SymChooser::selected_vector_count
virtual int selected_vector_count()
SymChooser::SymChooser
SymChooser(SymDirectory *, WidgetKit *, Style *, SymChooserAction *=NULL, int nbrowser=3)
SymDirectory
Definition:
symdir.h:26
resource.h
NULL
#define NULL
Definition:
spdefs.h:105
src
ivoc
symchoos.h