[go: up one dir, main page]

Menu

[r9]: / src / rasmol / cmndline.h  Maximize  Restore  History

Download this file

104 lines (88 with data), 3.3 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
/**************************************************************************
* *
* RasTop *
* *
* Molecular Graphics Visualisation Tool *
* *
* *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTA- *
* BILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public *
* License for more details (license.txt file ). *
* *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
* *
***************************************************************************/
/* Authors:
*
* Please consult the help manual for more information about copyright
* holders and version history of RasTop/RasMol source.
*
* Make sure to add your name to this list if you modify this file.
*
* Herbert J. Bernstein
* Christian Duqué
* Gary Grossman
* Marco Molinaro
* Arne Mueller
* Naoum Salamé
* Roger Sayle
* Philippe Valadon
*/
/* cmndline.h
*/
#define MAXBUFFLEN 256
#define MAXLINELEN 256
/* Button State Bits */
#define MMLft 0x01
#define MMMid 0x02
#define MMRgt 0x04
#define MMSft 0x08
#define MMCtl 0x10
#define MMRasMol 0x00
#define MMInsight 0x01
#define MMQuanta 0x02
#define MMSybyl 0x03
/* Cursor Mode */
#define CURRasmol 0x01
#define CURPicking 0x02
#define CURPickplus 0x03
#define CURPickminus 0x04
#ifdef CMNDLINE
char CurLine[MAXBUFFLEN];
char *Recycle;
int CurState,StateOption;
int CommandActive;
int MouseMode;
int HeldButton;
int CursorMode;
int CmdBkgColor;
int CmdTxtColor;
int GUItoCmdEcho;
#else
extern char CurLine[MAXBUFFLEN];
extern char *Recycle;
extern int CurState,StateOption;
extern int CommandActive;
extern int MouseMode;
extern int HeldButton;
extern int CursorMode;
extern int CmdBkgColor;
extern int CmdTxtColor;
extern int GUItoCmdEcho;
#endif
int ProcessCharacter( int );
void ResetCommandLine( int );
void InvalidateCmndLine( void );
void InitialiseCmndLine( void );
void SetMouseMode( int );
void ProcessMouseMove( int, int, int );
void ProcessMouseDown( int, int, int );
void ProcessMouseUp( int, int, int );
void ProcessWheelDial( double, int );