|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/ddv/ddvclick.h |
source navigation diff markup identifier search freetext search file search |
1 /* $Id: ddvclick.h,v 1.10 2000/07/12 15:38:08 hurwitz Exp $
2 * ===========================================================================
3 *
4 * PUBLIC DOMAIN NOTICE
5 * National Center for Biotechnology Information (NCBI)
6 *
7 * This software/database is a "United States Government Work" under the
8 * terms of the United States Copyright Act. It was written as part of
9 * the author's official duties as a United States Government employee and
10 * thus cannot be copyrighted. This software/database is freely available
11 * to the public for use. The National Library of Medicine and the U.S.
12 * Government do not place any restriction on its use or reproduction.
13 * We would, however, appreciate having the NCBI and the author cited in
14 * any work or product based on this material
15 *
16 * Although all reasonable efforts have been taken to ensure the accuracy
17 * and reliability of the software and data, the NLM and the U.S.
18 * Government do not and cannot warrant the performance or results that
19 * may be obtained by using this software or data. The NLM and the U.S.
20 * Government disclaim all warranties, express or implied, including
21 * warranties of performance, merchantability or fitness for any particular
22 * purpose.
23 *
24 * ===========================================================================
25 *
26 * File Name: ddvclick.h
27 *
28 * Author: Patrick Durand
29 *
30 * Version Creation Date: 09/20/99
31 *
32 * $Revision: 1.10 $
33 *
34 * File Description:
35 *
36 * Modifications:
37 * --------------------------------------------------------------------------
38 * $Log: ddvclick.h,v $
39 * Revision 1.10 2000/07/12 15:38:08 hurwitz
40 * made rectangle select much faster. it's almost working.
41 *
42 * Revision 1.9 2000/07/08 20:43:58 vakatov
43 * Get all "#include" out of the 'extern "C" { }' scope; other cleanup...
44 *
45 * Revision 1.8 2000/07/05 19:23:13 lewisg
46 * add two panes to ddv, update msvc project files
47 *
48 * Revision 1.7 2000/07/05 18:42:16 hurwitz
49 * added split block function to DDV
50 *
51 * Revision 1.6 2000/05/05 20:24:13 hurwitz
52 * some bug fixes, also redraw proper block in DDE after a save operation that causes a merge of 2 blocks
53 *
54 * Revision 1.5 2000/05/04 22:43:38 hurwitz
55 * don't launch DDE on top of DDV, change some wording, redraw DDE after save to AlnMgr
56 *
57 * Revision 1.4 2000/04/05 20:52:35 hurwitz
58 * added GUI control for shifting left and right alignment boundaries
59 *
60 * Revision 1.3 1999/12/07 21:40:14 durand
61 * add mouse modes menu and caret facility for the editor
62 *
63 * Revision 1.2 1999/10/29 14:15:39 durand
64 * add simple mouse selection functions
65 *
66 * Revision 1.1 1999/09/30 14:10:25 durand
67 * add ddv to toolkit
68 *
69 * Revision 1.2 1999/09/22 20:41:18 durand
70 * add mouse-click and drag functions
71 *
72 * Revision 1.1 1999/09/21 14:20:00 durand
73 * add basic mouse management functions
74 *
75 *
76 *
77 *
78 * ==========================================================================
79 */
80
81 #ifndef _DDVCLICK_
82 #define _DDVCLICK_
83
84 #include <ddvmain.h>
85
86 #undef NLM_EXTERN
87 #ifdef NLM_IMPORT
88 #define NLM_EXTERN NLM_IMPORT
89 #else
90 #define NLM_EXTERN extern
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 /******************************************************************************
98
99 structures
100
101 ******************************************************************************/
102
103 /******************************************************************************
104
105 defines
106
107 ******************************************************************************/
108 /*identifiers of the regions within a ParaG*/
109 #define PGP_REGION_NOWHERE ((Uint1)1)
110 #define PGP_REGION_SEQ ((Uint1)2)
111 #define PGP_REGION_FEAT ((Uint1)3)
112
113 /******************************************************************************
114
115 Exported functions
116
117 ******************************************************************************/
118 NLM_EXTERN void DDV_DispPositionInStatus(PrompT InfoPanel,Int4 bsp_pos,
119 Int4 line_num,CharPtr szSeqName);
120 NLM_EXTERN void DDV_GetSeqNameGivenRow(ValNodePtr * ParaG_List, Int4 row_num,
121 CharPtr szSeqName);
122 NLM_EXTERN void DDV_ClickProcUpper(PaneL p, PoinT pt);
123 NLM_EXTERN void DDV_ClickProcLower(PaneL p, PoinT pt);
124 NLM_EXTERN void DDV_ClickProc(PaneL p, PoinT pt);
125 NLM_EXTERN void DDV_DragProc(PaneL p, PoinT pt);
126 NLM_EXTERN void DDV_HoldProc(PaneL p, PoinT pt);
127 NLM_EXTERN void DDV_ReleaseProc(PaneL p, PoinT pt);
128 NLM_EXTERN void DDV_KeyboardProc (SlatE s, Char ch);
129 NLM_EXTERN Int4 DDV_GetHPixelPosGivenColNumber(DdvMainPtr dmp, RecT rc, Int4 Col);
130 NLM_EXTERN Int4 DDV_GetHPixelPosGivenColNumberAndScroll(DdvMainPtr dmp, RecT rc,
131 Int4 Col, Int4 ScrollPos);
132 NLM_EXTERN Int4 DDV_GetVPixelPosGivenRowNumber(DdvMainPtr dmp, RecT rc, Int4 Row);
133 NLM_EXTERN Int4 DDV_GetVPixelPosGivenRowNumberAndScroll(DdvMainPtr dmp, RecT rc,
134 Int4 Row, Int4 ScrollPos);
135 NLM_EXTERN void DDV_GetVPixelPosOfEmptySpace(DdvMainPtr dmp, RecT rc, Int4* pTop, Int4* pBot);
136 NLM_EXTERN Int4 DDV_GetColNumberGivenMousePos(DdvMainPtr dmp, RecT rc, PoinT pt);
137 NLM_EXTERN void DDV_ReDraw(DdvMainPtr dmp);
138 NLM_EXTERN void DDV_ReDrawAtCol(DdvMainPtr dmp, Int4 Col, Boolean DDE);
139
140 #ifdef __cplusplus
141 }
142 #endif
143
144 #undef NLM_EXTERN
145 #ifdef NLM_EXPORT
146 #define NLM_EXTERN NLM_EXPORT
147 #else
148 #define NLM_EXTERN
149 #endif
150
151 #endif /* ndef _DDVCLICK_ */
152
153 |
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |