~ubuntu-branches/debian/experimental/ncbi-tools6/experimental

« back to all changes in this revision

Viewing changes to vibrant/vibprocs.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2008-07-14 19:43:15 UTC
  • mfrom: (2.1.12 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080714194315-ed44u9ek7txva2rz
Tags: 6.1.20080302-3
tools/readdb.c: enable madvise()-based code on all glibc (hence all
Debian) systems, not just Linux.  (Closes: #490437.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   7/1/91
31
31
*
32
 
* $Revision: 6.31 $
 
32
* $Revision: 6.33 $
33
33
*
34
34
* File Description: 
35
35
*       Vibrant procedure definitions
36
36
*
37
37
* Modifications:  
38
38
* --------------------------------------------------------------------------
39
 
* $Log: vibprocs.h,v $
40
 
* Revision 6.31  2006/09/27 18:30:00  kans
41
 
* support for Int4 scroll bars for switching between text and doc views in Sequin (CB)
42
 
*
43
 
* Revision 6.30  2005/09/23 20:30:10  kans
44
 
* added NLM_BACK for backspace key, which is separate from delete, even though the label may be the same on a keyboard
45
 
*
46
 
* Revision 6.29  2005/01/24 15:01:25  kans
47
 
* prototype UsePrimaryMonitor
48
 
*
49
 
* Revision 6.28  2004/04/01 13:43:09  lavr
50
 
* Spell "occurred", "occurrence", and "occurring"
51
 
*
52
 
* Revision 6.27  2004/02/23 16:36:51  sinyakov
53
 
* Use Int4 instead of Int2 for cursor position and text selection in text boxes
54
 
*
55
 
* Revision 6.26  2004/02/12 20:05:26  bazhin
56
 
* Added callback function "Nlm_SetKeepCrNlTextFieldCallback(Nlm_TexT t)",
57
 
* which allows to copy-paste texts from multiple columns to single string.
58
 
*
59
 
* Revision 6.25  2004/02/05 16:25:06  kans
60
 
* revert to Nlm_GetTextVScrollBar and Nlm_GetTextHScrollBar being static, implement setOffset and getOffset for scroll text, since Windows scroll text has its own scroll bar
61
 
*
62
 
* Revision 6.24  2004/02/04 15:21:02  kans
63
 
* make GetTextVScrollBar and GetTextHScrollBar extern, to add search function to general text viewer
64
 
*
65
 
* Revision 6.23  2004/01/05 17:08:09  kans
66
 
* added functions to control use of dual screens
67
 
*
68
 
* Revision 6.22  2003/10/29 19:19:34  kans
69
 
* added prototype for Nlm_SetTextColor
70
 
*
71
 
* Revision 6.21  2002/04/30 18:25:12  bazhin
72
 
* Added function "Nlm_SetWindowConfigureCallback(WindoW w)", which
73
 
* allows to catch events, when window just moved without resizing.
74
 
* Fixed some "gcc -Wall -ansi" warnings.
75
 
*
76
 
* Revision 6.20  2002/01/09 15:23:54  kans
77
 
* added HasAquaMenuLayout
78
 
*
79
 
* Revision 6.19  2001/09/10 17:34:33  bazhin
80
 
* Added function Nlm_SetTextCursorBlinkRate(Nlm_TexT t, Nlm_Int2 msec).
81
 
*
82
 
* Revision 6.18  2000/08/01 15:57:32  kans
83
 
* separate lines for Nlm_HANDLE on all platforms, even if two are currently the same, and no space between # and define in case some compilers complain
84
 
*
85
 
* Revision 6.17  2000/08/01 15:23:29  vakatov
86
 
* Addition to R6.13:   error if neither of "WIN_***" is #defined
87
 
*
88
 
* Revision 6.16  2000/07/31 13:28:46  lewisg
89
 
* Nlm_GetExecPath
90
 
*
91
 
* Revision 6.15  2000/07/28 21:25:11  lewisg
92
 
* *** empty log message ***
93
 
*
94
 
* Revision 6.14  2000/07/28 21:05:54  lewisg
95
 
* more c++ fixes
96
 
*
97
 
* Revision 6.13  2000/07/28 15:36:34  kans
98
 
* for OS_UNIX, give error message if WIN_MOTIF not defined
99
 
*
100
 
* Revision 6.12  2000/07/25 21:19:00  lewisg
101
 
* eliminate redundant windows pathname code
102
 
*
103
 
* Revision 6.11  2000/07/25 19:18:36  lewisg
104
 
* get pathname for executable on windows
105
 
*
106
 
* Revision 6.10  2000/07/14 20:30:40  kans
107
 
* added Nlm_MSWin_OpenApplication (for launching Cn3D with a data file)
108
 
*
109
 
* Revision 6.9  1999/04/06 14:23:26  lewisg
110
 
* add opengl replacement for viewer3d
111
 
*
112
 
* Revision 6.8  1999/02/19 20:48:36  vakatov
113
 
* [WIN_MSWIN]  Added Nlm_MSWin_OpenDocument(also can be used to
114
 
* auto-launch IE or Netscape if passed an URL)
115
 
*
116
 
* Revision 6.7  1999/01/07 22:32:36  kans
117
 
* added Mac-specific Nlm_SendURLAppleEvent
118
 
*
119
 
* Revision 6.6  1998/07/07 23:03:34  vakatov
120
 
* Added Nlm_Execv() to spawn applications with cmd-line parameters;
121
 
* now implemented for [OS_MSWIN, OS_UNIX].
122
 
*
123
 
* Revision 6.5  1998/03/22 03:00:59  kans
124
 
* changed names to RegisterServiceProc and RegisterResultProc
125
 
*
126
 
* Revision 6.4  1998/03/22 02:33:17  kans
127
 
* added request proc, result proc, message handlers to support, and send open doc event, launch app now work with file names or signatures
128
 
*
129
 
* Revision 6.3  1998/03/17 21:07:59  kans
130
 
* added Nlm_SendOpenDocAppleEventEx, and private Nlm_LaunchAppEx
131
 
*
132
 
* Revision 6.2  1997/11/12 20:56:09  kans
133
 
* added SetMouseMoveCallback and SetMouseMoveRegion, implemented first on Mac
134
 
*
135
 
* Revision 6.1  1997/10/18 23:30:21  kans
136
 
* implemented Nlm_GetTextCursorPos (DV)
137
 
*
138
 
* Revision 6.0  1997/08/25 18:57:29  madden
139
 
* Revision changed to 6.0
140
 
*
141
 
* Revision 5.18  1997/08/04 14:15:11  vakatov
142
 
* Added Nlm_SetTextCursorPos() function
143
 
*
144
 
* Revision 5.17  1997/08/01 16:47:28  vakatov
145
 
* [WIN_MOTIF,WIN_MSWIN]  Added IconifyWindow() and IconicWindow()
146
 
*
147
 
* Revision 5.16  1997/07/21 21:52:37  vakatov
148
 
* [WIN_MOTIF] Added Nlm_[Un]RegisterIO() functions to wait for I/O
149
 
* events and call(via X) user-defined callback(s)
150
 
*
151
 
* Revision 5.15  1997/07/18 17:01:13  vakatov
152
 
* [WIN_MOTIF]  Removed "arg[cv]";  use "Nlm_GetArg[cv]()" instead
153
 
*
154
 
* Revision 5.14  1997/07/16 19:47:00  vakatov
155
 
* +Nlm_StrngPrintable() proto
156
 
*
157
 
* Revision 5.13  1997/06/23 21:18:46  vakatov
158
 
* Added Nlm_SetTextEditable() function to allow/prohibit text editing
159
 
*
160
 
* Revision 5.12  1997/05/27 21:50:55  vakatov
161
 
* Added Nlm_PopupParentWindow() to popup window w/o switching input focus
162
 
*
163
 
* Revision 5.11  1997/04/28 21:42:46  vakatov
164
 
* Added AUTO_FOCUS, FOCUS_NAVIG and DEFAULT_SLATE_POLICY defs & comments
165
 
*
166
 
 * Revision 5.10  1997/04/25  16:08:45  vakatov
167
 
 * Changed old and added new navigation and special key names.
168
 
 * Added Nlm_SetSlatePolicy() and definitions for now available slate
169
 
 * navigation key handling policies.
170
 
 * Added Nlm_Scroll() -- for one-line/one-page scrolling of scrollbars.
171
 
 *
172
 
 * Revision 5.9  1997/03/19  15:57:07  vakatov
173
 
 * Added:  Nlm_Boolean Nlm_QuittingProgram PROTO((void));
174
 
 *
175
 
 * Revision 5.8  1996/12/12  23:11:10  kans
176
 
 * added Nlm_ClipPrintingRect (DV)
177
 
 *
178
 
 * Revision 5.7  1996/09/26  00:29:23  kans
179
 
 * added SetWindowTimer
180
 
 *
181
 
 * Revision 5.6  1996/09/09  00:15:01  kans
182
 
 * AutonomousPanel4 uses ScrollBar4 to have > 32K positions
183
 
 *
184
 
 * Revision 5.5  1996/08/27  20:56:26  vakatov
185
 
 * Added prototypes of function for creating and handling Int2- and
186
 
 * Int4-range scrollbars homogeneously
187
 
 *
188
 
 * Revision 5.4  1996/07/25  18:49:02  vakatov
189
 
 * Added prototype of Nlm_GetBarMax()
190
 
 *
191
 
 * Revision 5.3  1996/06/19  20:30:42  vakatov
192
 
 * Added prototype for function Nlm_GetListItem()
193
 
 *
194
 
 * Revision 5.2  1996/06/14  14:26:46  vakatov
195
 
 * Nlm_SetColorCell() -- to immediately change the color appearence
196
 
 * [WIN_MOTIF]  Nlm_RestrictMotifColorsTo() -- to avoid Motif/3D-Viewer
197
 
 * color overlapping
198
 
 *
199
 
 * Revision 5.1  1996/05/31  20:11:14  vakatov
200
 
 * Added Nlm_ExtendedList() function to set the list selection policy
201
 
 * to EXTENDED_SELECTION -- as it was for Nlm_MultiList() since Revision 4.4.
202
 
 *
203
 
 * Revision 4.5  1996/04/24  21:25:17  vakatov
204
 
 *  Nlm_WaitForCondition(cond) modified; now it waits until the next X-event
205
 
 * rather than sleeping 100, 200, ..., 900 msec.
206
 
 *  Nlm_WaitForXEvent() function added for this reason.
207
 
 *
208
 
 * Revision 4.4  1996/03/27  23:09:15  vakatov
209
 
 * Function Nlm_SetCursorShape() added to let programmer
210
 
 * easily store/restore current cursor shape
211
 
 *
212
 
 * Revision 4.3  1996/03/11  20:39:19  epstein
213
 
 * add support for Drag & Drop
214
 
 *
215
 
 * Revision 4.2  1995/11/08  23:30:31  kans
216
 
 * removed edit block fields, which belong in the application
217
 
 *
218
 
 * Revision 4.1  1995/10/06  16:44:39  epstein
219
 
 * add Nlm_WaitForCondition macro
220
 
 *
221
 
 * Revision 2.56  1995/05/31  18:00:58  kans
222
 
 * added SetColorMap
223
39
*
224
40
* ==========================================================================
225
41
*/
994
810
 
995
811
/***  OBJECT ALIGNMENT PROCEDURE FOR USE WITHOUT GROUP REPOSITIONING  ***/
996
812
 
997
 
#if defined(WIN_MAC)
 
813
#if defined(WIN_MAC)  ||  defined(WIN_MAC_QUARTZ)
998
814
#define Nlm_HANDLE Nlm_Handle
999
815
#elif defined(WIN_MOTIF)
1000
816
#define Nlm_HANDLE Nlm_Handle
1234
1050
extern void Nlm_SendOpenDocAppleEvent PROTO((Nlm_CharPtr datafile, Nlm_CharPtr sig));
1235
1051
extern void Nlm_SendOpenDocAppleEventEx PROTO((Nlm_CharPtr datafile, Nlm_CharPtr sig, Nlm_CharPtr prog, Nlm_Boolean wantReply));
1236
1052
extern void Nlm_SendURLAppleEvent (Nlm_CharPtr urlString, Nlm_CharPtr sig, Nlm_CharPtr prog);
 
1053
extern void Nlm_SendAppleScriptString (Nlm_CharPtr script);
1237
1054
#endif
1238
1055
 
1239
1056
#ifdef WIN_MSWIN