1 /* import.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: import.h 27 * 28 * Author: Jonathan Kans 29 * 30 * Version Creation Date: 6/18/95 31 * 32 * $Revision: 6.10 $ 33 * 34 * File Description: 35 * 36 * Modifications: 37 * -------------------------------------------------------------------------- 38 * Date Name Description of modification 39 * ------- ---------- ----------------------------------------------------- 40 * 41 * 42 * ========================================================================== 43 */ 44 45 #ifndef _IMPORT_ 46 #define _IMPORT_ 47 48 #include <dlogutil.h> 49 50 51 #ifdef __cplusplus 52 extern "C" { 53 #endif 54 55 #define REGISTER_IMPORT_EDIT(PROCNAME,PROCLABEL,SUBTYPE) ObjMgrProcLoad(OMPROC_EDIT,PROCNAME,PROCLABEL,OBJ_SEQFEAT,SUBTYPE,OBJ_SEQFEAT,SUBTYPE,NULL,ImportGenFunc,PROC_PRIORITY_DEFAULT) 56 57 extern ForM CreateImportForm (Int2 left, Int2 top, CharPtr title, 58 SeqFeatPtr sfp, SeqEntryPtr sep, 59 FormActnFunc actproc); 60 61 extern Int2 LIBCALLBACK ImportGenFunc (Pointer data); 62 extern EnumFieldAssocPtr import_featdef_alist (Boolean notJustImpFeats, Boolean allowPeptideFeats, Boolean allowRnaImpFeats); 63 64 65 #define REGISTER_BOND_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Bond","Bond",OBJ_SEQFEAT,FEATDEF_BOND,OBJ_SEQFEAT,FEATDEF_BOND,NULL,EnumGenFunc,PROC_PRIORITY_DEFAULT) 66 #define REGISTER_SITE_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Site","Site",OBJ_SEQFEAT,FEATDEF_SITE,OBJ_SEQFEAT,FEATDEF_SITE,NULL,EnumGenFunc,PROC_PRIORITY_DEFAULT) 67 #define REGISTER_PSEC_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit SecStruc","Secondary Structure",OBJ_SEQFEAT,FEATDEF_PSEC_STR,OBJ_SEQFEAT,FEATDEF_PSEC_STR,NULL,EnumGenFunc,PROC_PRIORITY_DEFAULT) 68 69 extern ForM CreateEnumForm (Int2 left, Int2 top, CharPtr title, 70 SeqFeatPtr sfp, SeqEntryPtr sep, 71 Uint2 subtype, FormActnFunc actproc); 72 73 extern Int2 LIBCALLBACK EnumGenFunc (Pointer data); 74 75 76 #define REGISTER_RGNFEAT_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit RgnFeat","Region",OBJ_SEQFEAT,FEATDEF_REGION,OBJ_SEQFEAT,FEATDEF_REGION,NULL,RegionOrCommentGenFunc,PROC_PRIORITY_DEFAULT) 77 #define REGISTER_CMNTFEAT_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit CmntFeat","Comment",OBJ_SEQFEAT,FEATDEF_COMMENT,OBJ_SEQFEAT,FEATDEF_COMMENT,NULL,RegionOrCommentGenFunc,PROC_PRIORITY_DEFAULT) 78 79 extern ForM CreateRegionOrCommentForm (Int2 left, Int2 top, CharPtr title, 80 SeqFeatPtr sfp, SeqEntryPtr sep, 81 Uint2 subtype, FormActnFunc actproc); 82 83 extern Int2 LIBCALLBACK RegionOrCommentGenFunc (Pointer data); 84 85 86 #define REGISTER_MOLINFO_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit MolInfo","Molecule Description",OBJ_SEQDESC,Seq_descr_molinfo,OBJ_SEQDESC,Seq_descr_molinfo,NULL,MolInfoGenFunc,PROC_PRIORITY_DEFAULT) 87 88 extern DialoG CreateMolInfoDialog (GrouP h, CharPtr title, Uint1 biomol, Uint1 tech, 89 Boolean showComplete, Boolean nucsOK, Boolean protsOK, 90 Boolean separateGenomicDNAandRNA); 91 92 extern ForM CreateMolInfoForm (Int2 left, Int2 top, Int2 width, Int2 height, 93 CharPtr title, Uint1 biomol, Uint1 tech, 94 Boolean nucsOK, Boolean protsOK, FormActnFunc actproc); 95 96 extern Int2 LIBCALLBACK MolInfoGenFunc (Pointer data); 97 98 99 #define REGISTER_GENBANK_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit GenBank","GenBank Block",OBJ_SEQDESC,Seq_descr_genbank,OBJ_SEQDESC,Seq_descr_genbank,NULL,GenBankGenFunc,PROC_PRIORITY_DEFAULT) 100 101 extern ForM CreateGenBankForm (Int2 left, Int2 top, CharPtr title, 102 ValNodePtr sdp, SeqEntryPtr sep, 103 FormActnFunc actproc); 104 105 extern Int2 LIBCALLBACK GenBankGenFunc (Pointer data); 106 107 108 #define REGISTER_TITLE_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Title","Title",OBJ_SEQDESC,Seq_descr_title,OBJ_SEQDESC,Seq_descr_title,NULL,VisStrGenFunc,PROC_PRIORITY_DEFAULT) 109 #define REGISTER_COMMENT_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Comment","Comment",OBJ_SEQDESC,Seq_descr_comment,OBJ_SEQDESC,Seq_descr_comment,NULL,VisStrGenFunc,PROC_PRIORITY_DEFAULT) 110 #define REGISTER_REGION_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Region","Region",OBJ_SEQDESC,Seq_descr_region,OBJ_SEQDESC,Seq_descr_region,NULL,VisStrGenFunc,PROC_PRIORITY_DEFAULT) 111 #define REGISTER_NAME_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Name","Name",OBJ_SEQDESC,Seq_descr_name,OBJ_SEQDESC,Seq_descr_name,NULL,VisStrGenFunc,PROC_PRIORITY_DEFAULT) 112 113 extern ForM CreateVisStrForm (Int2 left, Int2 top, CharPtr title, 114 Uint2 subtype, FormActnFunc actproc, SeqDescrPtr sdp); 115 116 extern Int2 LIBCALLBACK VisStrGenFunc (Pointer data); 117 118 119 #define REGISTER_CREATE_DATE_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Create Date","Create Date",OBJ_SEQDESC,Seq_descr_create_date,OBJ_SEQDESC,Seq_descr_create_date,NULL,DateGenFunc,PROC_PRIORITY_DEFAULT) 120 #define REGISTER_UPDATE_DATE_EDIT ObjMgrProcLoad(OMPROC_EDIT,"Edit Update Date","Update Date",OBJ_SEQDESC,Seq_descr_update_date,OBJ_SEQDESC,Seq_descr_update_date,NULL,DateGenFunc,PROC_PRIORITY_DEFAULT) 121 122 extern ForM CreateDateForm (Int2 left, Int2 top, CharPtr title, 123 FormActnFunc actproc); 124 125 extern Int2 LIBCALLBACK DateGenFunc (Pointer data); 126 127 extern CharPtr GetMoleculeTypeName (Uint1 mol_val); 128 extern CharPtr GetMoleculeClassName (Uint1 mol_val); 129 extern CharPtr GetMoleculeTopologyName (Uint1 mol_val); 130 131 extern const CharPtr kDoNotEditTitle; 132 133 #ifdef __cplusplus 134 } 135 #endif 136 137 #endif /* ndef _IMPORT_ */ 138 139