1 /*   saled.h
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:  saled.h
27 *
28 * Author:  Colombe Chappey
29 *
30 * Version Creation Date:   1/27/96
31 *
32 * $Revision: 6.6 $
33 *
34 * File Description:
35 *
36 * Modifications:
37 * --------------------------------------------------------------------------
38 * Date     Name        Description of modification
39 * -------  ----------  -----------------------------------------------------
40 *
41 *
42 * ==========================================================================
43 */
44 
45 #ifndef _SALED_
46 #define _SALED_
47 
48 #include <vibrant.h>
49 #include <salsa.h>
50 
51 extern Uint2 OBJ_ (Uint2 feattype);
52 extern SelStructPtr locate_region (SelStructPtr ssp, Int4 from, Int4 to, SeqIdPtr sip, Uint1 strand, Boolean is_fuzz);
53 extern SelStructPtr replace_region (SelStructPtr ssp, Uint2 ssp_ed, Uint2 ssp_id, Uint2 ssp_it, Int4 from, Int4 to, SeqIdPtr sip, Uint1 strand, Boolean is_fuzz);
54 
55 extern void GoToButton (ButtoN b);
56 extern void LookAtButton (ButtoN b);
57 
58 extern Boolean do_cut (PaneL pnl, EditAlignDataPtr adp, SelStructPtr ssp, Boolean cut);
59 extern Boolean do_paste (PaneL pnl, EditAlignDataPtr adp, SeqIdPtr targetid);
60 extern void do_copy (IteM i);
61 
62 extern void to_update_prompt (PaneL pnl, SelStructPtr ssp, SeqAlignPtr salp, ValNodePtr sqlocs, Boolean sel, Uint1 choice);
63 extern void update_edititem (PaneL pnl);
64 extern void update_translateitem (PaneL pnl, ValNodePtr seqfeathead, ValNodePtr feathead);
65 extern void update_codonstartbt (PaneL pnl, ValNodePtr seqfeathead, ValNodePtr feathead);
66 
67 extern Uint1 locate_point (PoinT pt, RecT rp, Uint4 *item_id, Uint2 *the_entity_id, Uint2 *item_type, Uint2 *item_subtype, Int4 *position, Int2 *line, EditAlignDataPtr adp);
68 extern void on_click (PaneL pnl, PoinT pt);
69 extern void on_drag (PaneL pnl, PoinT pt);
70 extern void on_hold (PaneL pnl, PoinT pt);
71 extern void on_release (PaneL pnl, PoinT pt);
72 extern void on_time (WindoW w);
73 extern void on_key (SlatE s, Char ch);
74 
75 #endif
76 
77 
78