File: Seeker.h

package info (click to toggle)
pymol 3.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 74,084 kB
  • sloc: cpp: 482,660; python: 89,328; ansic: 29,512; javascript: 6,792; sh: 84; makefile: 25
file content (59 lines) | stat: -rw-r--r-- 1,697 bytes parent folder | download | duplicates (2)
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

/* 
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_Seeker
#define _H_Seeker

#include <vector>
#include"Ortho.h"
#include"ObjectMolecule.h"
#include "Seq.h"

#define cTempSeekerSele "_seeker"
#define cTempCenterSele "_seeker_center"
#define cTempSeekerSele2 "_seeker2"


int SeekerInit(PyMOLGlobals * G);
void SeekerFree(PyMOLGlobals * G);
void SeekerUpdate(PyMOLGlobals * G);
char SeekerGetAbbr(PyMOLGlobals * G, const char *abbr, char water, char unknown);

namespace GapMode{
enum {
    NONE      = 0,
    ALL       = 1,
    SINGLE    = 2
};
}//namespace GapMode

struct SeekerDragInfo {
  int start_col;
  int last_col;
  int row;
  int dir;
  int start_toggle;
  int setting;
  int button;
};

void SeekerSetDragInfo(PyMOLGlobals* G, const SeekerDragInfo& dragInfo);
SeekerDragInfo SeekerGetDragInfo(PyMOLGlobals* G);
void SeekerSelectionCenter(PyMOLGlobals * G, int action);
void SeekerSelectionUpdateCenter(PyMOLGlobals * G, std::vector<CSeqRow>& rowVLA, int row_num,
                                 int col_num, int start_over);

#endif