~ubuntu-branches/ubuntu/trusty/rasmol/trusty

« back to all changes in this revision

Viewing changes to src/command.h

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-11-24 16:48:04 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091124164804-liuvywcs6l45ibl3
Tags: 2.7.5-1
* New upstream release
* Imakefile: Use Debian versions of library dependencies
* control:
  - Add build-deps to libcvector2-dev, libcqrlib2-dev, libneartree3-dev
  - Update to standards-version 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *                             RasMol 2.7.4.2                              *
 
2
 *                              RasMol 2.7.5                               *
3
3
 *                                                                         *
4
4
 *                                 RasMol                                  *
5
5
 *                 Molecular Graphics Visualisation Tool                   *
6
 
 *                            19 November 2007                             *
7
 
 *                          (rev. 21 March 2008)                           *
 
6
 *                              13 June 2009                               *
8
7
 *                                                                         *
9
8
 *                   Based on RasMol 2.6 by Roger Sayle                    *
10
9
 * Biomolecular Structures Group, Glaxo Wellcome Research & Development,   *
31
30
 *                   RasMol 2.7.4   Nov 07                                 *
32
31
 *                   RasMol 2.7.4.1 Jan 08                                 *
33
32
 *                   RasMol 2.7.4.2 Mar 08                                 *
34
 
 *                                                                         *
35
 
 * RasMol 2.7.3 incorporates changes by Clarice Chigbo, Ricky Chachra,     *
36
 
 * and Mamoru Yamanishi.  Work on RasMol 2.7.3 supported in part by        *
37
 
 * grants DBI-0203064, DBI-0315281 and EF-0312612 from the U.S. National   *
38
 
 * Science Foundation and grant DE-FG02-03ER63601 from the U.S. Department *
39
 
 * of Energy.  RasMol 2.7.4 incorporates changes by G. Todorov, Nan Jia,   *
40
 
 * N. Darakev, P. Kamburov, G. McQuillan, J. Jemilawon.  Work on RasMol    *
41
 
 * 2.7.4 supported in part by grant 1R15GM078077-01 from the National      *
42
 
 * Institute of General Medical Sciences (NIGMS). The content is solely    *
43
 
 * the responsibility of the authors and does not necessarily represent    * 
44
 
 * the official views of the funding organizations.                        *
45
 
 *                                                                         *
46
 
 * The code for use of RasMol under GTK in RasMol 2.7.4.2 was written by   *
47
 
 * Teemu  Ikonen.                                                          *
 
33
 *                   RasMol 2.7.5   May 09                                 *
 
34
 *                                                                         *
 
35
 * RasMol 2.7.5 incorporates changes by T. Ikonen, G. McQuillan, N. Darakev*
 
36
 * and L. Andrews (via the neartree package).  Work on RasMol 2.7.5        *
 
37
 * supported in part by grant 1R15GM078077-01 from the National Institute  *
 
38
 * of General Medical Sciences (NIGMS), U.S. National Institutes of Health *
 
39
 * and by grant ER63601-1021466-0009501 from the Office of Biological &    *
 
40
 * Environmental Research (BER), Office of Science, U. S. Department of    *
 
41
 * Energy.  RasMol 2.7.4 incorporated  changes by G. Todorov, Nan Jia,     *
 
42
 * N. Darakev, P. Kamburov, G. McQuillan, and J. Jemilawon. Work on RasMol *
 
43
 * 2.7.4 supported in part by grant 1R15GM078077-01 from the NIGMS/NIH and *
 
44
 * grant ER63601-1021466-0009501 from BER/DOE.  RasMol 2.7.3 incorporates  *
 
45
 * changes by Clarice Chigbo, Ricky Chachra, and Mamoru Yamanishi.  Work   *
 
46
 * on RasMol 2.7.3 supported in part by grants DBI-0203064, DBI-0315281    *
 
47
 * and EF-0312612 from the U.S. National Science Foundation and grant      *
 
48
 * DE-FG02-03ER63601 from BER/DOE. The content is solely the responsibility*
 
49
 * of the authors and does not necessarily represent the official views of *
 
50
 * the funding organizations.                                              *
 
51
 *                                                                         *
 
52
 * The code for use of RasMol under GTK in RasMol 2.7.4.2 and 2.7.5 was    *
 
53
 * written by Teemu Ikonen.                                                *
48
54
 *                                                                         *
49
55
 *                    and Incorporating Translations by                    *
50
56
 *  Author                               Item                     Language *
70
76
 *package and for license terms (GPL or RASLIC).                           *
71
77
 ***************************************************************************/
72
78
/* command.h
73
 
 $Log: command.h,v $
74
 
 Revision 1.5  2008/03/22 17:06:47  yaya
75
 
 Post release cleanup with credits to Ikonen in file headers. -- HJB
76
 
 
77
 
 Revision 1.4  2008/03/21 19:13:47  yaya
78
 
 Update documentation and comments -- HJB
 
79
 $Log$
 
80
 Revision 1.12  2008/04/10 13:42:54  yaya
 
81
 Fix handling of load pdb and add Bulgarian to rasmol_run.sh -- HJB
 
82
 
 
83
 Revision 1.11  2008/04/01 17:31:19  hk0i
 
84
 updated new color mode feature for dots
 
85
 
 
86
 Revision 1.10  2008/03/22 18:42:51  yaya
 
87
 Post release cleanup and credit to Ikonen in file headers. -- HJB
79
88
 
80
89
 Revision 1.9  2008/03/17 03:01:31  yaya
81
90
 Update to agree with 2.7.4.2 release and T. Ikonen GTK mods -- HJB
92
101
 Update CVS to RasMol_2.7.4.1 -- HJB
93
102
 
94
103
 Revision 1.7  2007/12/06 18:47:09  hk0i
95
 
 added NoToggle and ColourMode commands + messages (translations needed), README for lang files, script to generate all langsel files (uses previous scripts).
 
104
 added NoToggle and ColourMode commands + messages (translations needed), 
 
105
 README for lang files, script to generate all langsel files (uses previous scripts).
96
106
 
97
107
 Revision 1.6  2007/11/25 04:11:58  yaya
98
108
 Updates to map mask logic and inverse transforms -- HJB
150
160
 
151
161
 */
152
162
 
 
163
#ifndef COMMAND_H
 
164
#define COMMAND_H
 
165
 
 
166
 
153
167
/* Format values are related to Tokens */
154
168
#define Tok2Format(x) ((x)-PDBTok+1)
155
169
#define Format2Tok(x) ((x)+PDBTok-1)
183
197
#define IPC_Exit    2
184
198
#define IPC_Quit    3
185
199
 
 
200
#define SymbolPool  256
 
201
 
 
202
 
 
203
/* structs needed for defer and execute */
 
204
 
 
205
typedef struct _Symbol{
 
206
  struct _Symbol __far * Symbol_Next;
 
207
  const char __far *   string;
 
208
  const char __far *   definition;
 
209
  size_t         definition_size;
 
210
  size_t         definition_capacity;
 
211
} Symbol;
 
212
 
 
213
 
186
214
#ifdef COMMAND
 
215
Symbol __far *Defer_Symbols[256];
 
216
Symbol __far *FreeSymbol;
187
217
int DataFileFormat;
188
218
char DataFileName[1024];
 
219
char RecordTemplate[1024];
 
220
char PlayTemplate[1024];
 
221
double RecordCurrent, RecordFrom, RecordUntil, PlayCurrent, PlayFrom, PlayUntil;
 
222
double RecordMaxMS, PlayMaxMS;
 
223
int RecordOption, RecordSubOption, RecordPause;
 
224
int PlayOption, PlaySubOption, PlayPause;
189
225
Long SelectCount;
190
226
int Interactive;
191
227
int FileDepth;
201
237
int NoToggle          = 0;
202
238
 
203
239
#else
 
240
extern Symbol __far  *DeferSymbols[256];
 
241
extern Symbol __far  *FreeSymbol;
204
242
extern int DataFileFormat;
205
243
extern char DataFileName[1024];
 
244
extern char RecordTemplate[1024];
 
245
extern char PlayTemplate[1024];
 
246
extern double RecordCurrent, RecordFrom, RecordUntil, PlayCurrent, PlayFrom, PlayUntil;
 
247
extern double RecordMaxMS, PlayMaxMS;
 
248
extern int RecordOption, RecordSubOption, RecordPause;
 
249
extern int PlayOption, PlaySubOption, PlayPause;
206
250
extern Long SelectCount;
207
251
extern int Interactive;
208
252
extern int FileDepth;
214
258
extern int AllowWrite;
215
259
 
216
260
extern int DefaultBackground;
 
261
 
 
262
extern int UseOldColorCode;
 
263
extern int NoToggle;
217
264
#endif
218
265
 
219
266
int ProcessCharacter( int );
232
279
void InterruptPauseCommand( void );
233
280
void ApplyMapColour( void );
234
281
void ApplyMapShow( void );
 
282
void WriteMovieFrame( void );
 
283
 
 
284
#endif
 
285