/**************************************************************************
* *
* 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 );