-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathsetypedisp.h
More file actions
143 lines (106 loc) · 3.38 KB
/
setypedisp.h
File metadata and controls
143 lines (106 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#ifndef setypedisp_h
#define setypedisp_h
/*
* NIST Data Probe Class Library
* clprobe-ui/setypedisp.h
* April 1997
* David Sauder
* Development of this software was funded by the United States Government,
* and is not subject to copyright.
*/
/* $Id: setypedisp.h,v 3.0.1.1 1997/11/05 23:01:11 sauderd DP3.1 $ */
#include <IV-2_6/InterViews/frame.h>
#include <mystrbrowser.h> // ivfasd/mystrbrowser.h
#include <streditor2.h>
#include <mybutton.h>
#include <IV-2_6/_enter.h>
#define TLD_FORWARD_SEARCH '\023'
#define TLD_BACKWARD_SEARCH '\022'
#define TLD_CONSIDER_CASE '\000'
#define TLD_IGNORE_CASE '\001'
#define TLD_CREATE_ACTION 1
#define TLD_INFO_ACTION 2
#define TLD_VSPACE (round(.15*inch))
#define TLD_HSPACE (round(.15*inch))
class seTypeListDisplay : public Frame {
public:
seTypeListDisplay();
// overrule scene's virtual function to do nothing
void Insert( Interactor * ) { };
void Update();
// operations on the list
void Browse();
virtual void Insert( const char *, int index );
virtual void Append( const char * );
virtual void Remove( int index );
virtual void ReplaceText( const char * s, int index );
void Bold( int index );
int Index( const char * );
char * String( int );
int Count();
void Clear();
void Select( int index );
void Unselect( int index );
void UnselectAll();
int Selection( int selindex = 0 );
int SelectionIndex( int index );
int Selections();
boolean Selected( int index );
private:
void CreateButtons();
private:
MyStringBrowser * entityTypeList;
ButtonState * entityTypeListButSt;
StringEditor2 * searchBuf;
ButtonState * searchBufButSt;
ButtonState * searchButtonsButSt;
MyRadioButton * forwardSearchBut;
MyRadioButton * backwardSearchBut;
ButtonState * caseButtonButSt;
MyCheckBox * caseSearchBut;
ButtonState * buttonsButSt;
MyPushButton * createBut;
MyPushButton * infoBut;
};
///////////////////////////////////////////////////////////////////////////////
inline void seTypeListDisplay::Browse() {
entityTypeList->Browse();
}
inline void seTypeListDisplay::Bold( int index ) {
entityTypeList->Bold( index );
}
inline int seTypeListDisplay::Index( const char * s ) {
return entityTypeList->Index( s );
}
inline char * seTypeListDisplay::String( int index ) {
return entityTypeList->String( index );
}
inline int seTypeListDisplay::Count() {
return entityTypeList->Count();
}
inline void seTypeListDisplay::Clear() {
entityTypeList->Clear();
}
inline void seTypeListDisplay::Select( int index ) {
entityTypeList->Select( index );
}
inline void seTypeListDisplay::Unselect( int index ) {
entityTypeList->Unselect( index );
}
inline void seTypeListDisplay::UnselectAll() {
entityTypeList->UnselectAll();
}
inline int seTypeListDisplay::Selection( int selindex ) {
return entityTypeList->Selection( selindex );
}
inline int seTypeListDisplay::SelectionIndex( int index ) {
return entityTypeList->SelectionIndex( index );
}
inline int seTypeListDisplay::Selections() {
return entityTypeList->Selections();
}
inline boolean seTypeListDisplay::Selected( int index ) {
return entityTypeList->Selected( index );
}
#include <IV-2_6/_leave.h>
#endif