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 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
|
/*
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific.
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove this copyright notice.
F* -------------------------------------------------------------------
G* Please see the accompanying LICENSE file for further information.
H* -------------------------------------------------------------------
I* Additional authors of this source file include:
-*
-*
-*
Z* -------------------------------------------------------------------
*/
#ifndef _H_ButMode
#define _H_ButMode
#include"Ortho.h"
#include"Word.h"
#define cButModeNothing -1
#define cButModeRotXYZ 0
#define cButModeTransXY 1
#define cButModeTransZ 2
#define cButModeClipNF 3
#define cButModeRotZ 4
#define cButModeClipN 5
#define cButModeClipF 6
#define cButModeLB 7
#define cButModeMB 8
#define cButModeRB 9
#define cButModeAddToLB 10
#define cButModeAddToMB 11
#define cButModeAddToRB 12
#define cButModePickAtom 13
#define cButModePickBond 14
#define cButModeRotFrag 15
#define cButModeTorFrag 16
#define cButModeMovFrag 17
#define cButModeOrigAt 18
#define cButModeRectAdd 19
#define cButModeRectSub 20
#define cButModeRect 21
#define cButModeNone 22
#define cButModeCent 23
#define cButModePkTorBnd 24
#define cButModeScaleSlab 25
#define cButModeMoveSlab 26
#define cButModePickAtom1 27
#define cButModeMoveAtom 28
#define cButModeMenu 29
#define cButModeSeleSet 30
#define cButModeSeleToggle 31
#define cButModeSeleAddBox 32
#define cButModeSeleSubBox 33
#define cButModeMoveSlabAndZoom 34
/* simple click action for JyMOL -- no selections involved */
#define cButModeSimpleClick 35
/* new drag actions */
#define cButModeRotDrag 36
#define cButModeMovDrag 37
#define cButModeMovDragZ 38
#define cButModeRotObj 39
#define cButModeMovObj 40
#define cButModeMovObjZ 41
#define cButModeMovFragZ 42
#define cButModeMoveAtomZ 43
#define cButModeDragMol 44
#define cButModeRotView 45
#define cButModeMovView 46
#define cButModeMovViewZ 47
#define cButModePotentialClick 48
#define cButModeDragObj 49
#define cButModeInvMoveSlabAndZoom 50
#define cButModeInvTransZ 51
#define cButModeSeleSetBox 52
#define cButModeInvRotZ 53
/* light editing */
#define cButModeRotL 54
#define cButModeMovL 55
#define cButModeMvzL 56
#define cButModeCount 57
/* remainder only used in scene... */
#define cButModeScaleSlabShrink 101
#define cButModeScaleSlabExpand 102
#define cButModeMoveSlabForward 103
#define cButModeMoveSlabBackward 104
#define cButModeMoveSlabAndZoomForward 105
#define cButModeMoveSlabAndZoomBackward 106
#define cButModeZoomForward 107
#define cButModeZoomBackward 108
/* conversion */
#define cButModeLeftNone 0
#define cButModeMiddleNone 1
#define cButModeRightNone 2
#define cButModeLeftShft 3
#define cButModeMiddleShft 4
#define cButModeRightShft 5
#define cButModeLeftCtrl 6
#define cButModeMiddleCtrl 7
#define cButModeRightCtrl 8
#define cButModeLeftCtSh 9
#define cButModeMiddleCtSh 10
#define cButModeRightCtSh 11
#define cButModeWheelNone 12
#define cButModeWheelShft 13
#define cButModeWheelCtrl 14
#define cButModeWheelCtSh 15
#define cButModeLeftDouble 16
#define cButModeMiddleDouble 17
#define cButModeRightDouble 18
#define cButModeLeftSingle 19
#define cButModeMiddleSingle 20
#define cButModeRightSingle 21
#define cButModeLeftShftDouble 22
#define cButModeMiddleShftDouble 23
#define cButModeRightShftDouble 24
#define cButModeLeftShftSingle 25
#define cButModeMiddleShftSingle 26
#define cButModeRightShftSingle 27
#define cButModeLeftCtrlDouble 28
#define cButModeMiddleCtrlDouble 29
#define cButModeRightCtrlDouble 30
#define cButModeLeftCtrlSingle 31
#define cButModeMiddleCtrlSingle 32
#define cButModeRightCtrlSingle 33
#define cButModeLeftCtShDouble 34
#define cButModeMiddleCtShDouble 35
#define cButModeRightCtShDouble 36
#define cButModeLeftCtShSingle 37
#define cButModeMiddleCtShSingle 38
#define cButModeRightCtShSingle 39
#define cButModeLeftAltDouble 40
#define cButModeMiddleAltDouble 41
#define cButModeRightAltDouble 42
#define cButModeLeftAltSingle 43
#define cButModeMiddleAltSingle 44
#define cButModeRightAltSingle 45
#define cButModeLeftAltShftDouble 46
#define cButModeMiddleAltShftDouble 47
#define cButModeRightAltShftDouble 48
#define cButModeLeftAltShftSingle 49
#define cButModeMiddleAltShftSingle 50
#define cButModeRightAltShftSingle 51
#define cButModeLeftCtrlAltDouble 52
#define cButModeMiddleCtrlAltDouble 53
#define cButModeRightCtrlAltDouble 54
#define cButModeLeftCtrlAltSingle 55
#define cButModeMiddleCtrlAltSingle 56
#define cButModeRightCtrlAltSingle 57
#define cButModeLeftCtrlAltShftDouble 58
#define cButModeMiddleCtrlAltShftDouble 59
#define cButModeRightCtrlAltShftDouble 60
#define cButModeLeftCtrlAltShftSingle 61
#define cButModeMiddleCtrlAltShftSingle 62
#define cButModeRightCtrlAltShftSingle 63
#define cButModeWheelAlt 64
#define cButModeWheelAltShft 65
#define cButModeWheelCtrlAlt 66
#define cButModeWheelCtrlAltShft 67
#define cButModeLeftAlt 68
#define cButModeMiddleAlt 69
#define cButModeRightAlt 70
#define cButModeLeftAltShft 71
#define cButModeMiddleAltShft 72
#define cButModeRightAltShft 73
#define cButModeLeftCtrlAlt 74
#define cButModeMiddleCtrlAlt 75
#define cButModeRightCtrlAlt 76
#define cButModeLeftCtrlAltShft 77
#define cButModeMiddleCtrlAltShft 78
#define cButModeRightCtrlAltShft 79
#define cButModeInputCount 80
typedef char CodeType[10];
int ButModeInit(PyMOLGlobals * G);
void ButModeFree(PyMOLGlobals * G);
Block *ButModeGetBlock(PyMOLGlobals * G);
void ButModeSetRate(PyMOLGlobals * G, float renderTime);
void ButModeResetRate(PyMOLGlobals * G);
int ButModeGet(PyMOLGlobals * G, int button);
void ButModeSet(PyMOLGlobals * G, int button, int action);
int ButModeTranslate(PyMOLGlobals * G, int button, int mod);
int ButModeCheckPossibleSingleClick(PyMOLGlobals * G, int button, int mod);
int ButModeGetHeight(PyMOLGlobals * G);
#endif
|