~ubuntu-branches/ubuntu/raring/ncbi-tools6/raring

« back to all changes in this revision

Viewing changes to desktop/seqpanel.c

  • Committer: Package Import Robot
  • Author(s): Aaron M. Ucko
  • Date: 2011-09-05 18:55:02 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: package-import@ubuntu.com-20110905185502-iuvmoe65ytljhckn
Tags: 6.1.20110713-1
* New upstream release.
* debian/*.symbols: update accordingly.
* make/makeshlb.unx: link libcn3dOGL.so against -lm for sqrt.
* doc/man/*.1: update for new release.
* debian/rules:
  - (VIB): add asnmacro, as upstream takes care to publish binaries thereof.
  - Retire obsolete multiarch-unaware checks for libpthread.
  - Fully modernize Debhelper usage; in particular, transition to overrides.
* debian/compat: advance to 9 per rules modernization.
* debian/ncbi-tools-bin.install: add asnmacro.
* make/makenet.unx: link asnmacro only against libraries it directly needs.
* doc/man/asnmacro.1: give asnmacro a man page.
* doc/man/Psequin.1: list it in SEE ALSO.
* network/id1arch/idfetch.c: revert redundant change (from #295110).
* Convert to multiarch.
  - debian/rules: Install libraries (and ncbithr.o) to multiarch directories.
  - debian/lib*.install: match multiarch library paths.
  - debian/control:
    + Build-Depends: debhelper (>= 8.1.3~), implying a recent dpkg-dev.
    + Set Multi-Arch: as appropriate across the board, and specify
      Pre-Depends: ${misc:Pre-Depends} for runtime libraries.
* debian/*.lintian-overrides: drop leading slashes for Lintian 2.5.x.
* debian/control: Standards-Version: 3.9.2 (already compliant).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: seqpanel.c,v 6.228 2010/08/02 17:43:05 bollin Exp $
 
1
/* $Id: seqpanel.c,v 6.229 2010/12/06 17:16:46 bollin Exp $
2
2
* ===========================================================================
3
3
*
4
4
*                            PUBLIC DOMAIN NOTICE
4225
4225
  ValNodePtr    chapter_vnp;
4226
4226
  SeqPanParaPtr sppp;
4227
4227
  Int4          first_paragraph_number, last_paragraph_number, p_n, l_n;
4228
 
  Int4          ctr, i, k;
 
4228
  Int4          ctr, k;
4229
4229
  Uint1Ptr      buf;
4230
4230
  SeqPortPtr    spp;
4231
4231
  BioseqViewPtr bvp;
5883
5883
    entityID = ObjMgrGetEntityIDForPointer (sefp->bfp->bvd.bsp);
5884
5884
    ObjMgrSetDirtyFlag (entityID, TRUE);
5885
5885
    ObjMgrSendMsg (OM_MSG_UPDATE, entityID, 0, 0);
 
5886
    ObjMgrFreeUserData (sefp->input_entityID, sefp->procid, sefp->proctype, sefp->userkey);
5886
5887
    Remove (sefp->form); 
5887
5888
    Update (); 
5888
5889
  } 
9615
9616
  sefp->userkey = OMGetNextUserKey ();
9616
9617
  sefp->procid = 0;
9617
9618
  sefp->proctype = OMPROC_EDIT;
 
9619
  sefp->input_itemtype = OBJ_SEQANNOT;
 
9620
  sefp->input_itemID = sefp->annot->idx.itemID;
9618
9621
  omudp = ObjMgrAddUserData (sefp->input_entityID, sefp->procid, sefp->proctype, sefp->userkey);
9619
9622
  if (omudp != NULL) {
9620
9623
    omudp->userdata.ptrvalue = (Pointer) sefp;
10118
10121
  
10119
10122
  return (CharPtr) alnbuf;
10120
10123
}
 
10124
 
 
10125
 
 
10126
NLM_EXTERN Boolean CloseAlignmentEditor(Uint2 entityID, Uint4 itemID)
 
10127
 
 
10128
{
 
10129
  BaseFormPtr    bfp;
 
10130
  Uint4          j;
 
10131
  Uint4          num;
 
10132
  ObjMgrPtr      omp;
 
10133
  ObjMgrDataPtr  PNTR omdpp;
 
10134
  OMUserDataPtr  omudp;
 
10135
  ObjMgrDataPtr  tmp;
 
10136
  Boolean        any = FALSE;
 
10137
  ValNodePtr     list = NULL, vnp;
 
10138
 
 
10139
  omp = ObjMgrGet ();
 
10140
  if (omp == NULL) return FALSE;
 
10141
  num = omp->currobj;
 
10142
  for (j = 0, omdpp = omp->datalist; j < num && omdpp != NULL; j++, omdpp++) {
 
10143
    tmp = *omdpp;
 
10144
    if (tmp->parentptr == NULL && (tmp->EntityID == entityID || entityID == 0)) {
 
10145
      for (omudp = tmp->userdata; omudp != NULL; omudp = omudp->next) {
 
10146
        if (omudp->proctype == OMPROC_EDIT) {
 
10147
          bfp = (BaseFormPtr) omudp->userdata.ptrvalue;
 
10148
          if (bfp != NULL) {
 
10149
            if ((bfp->input_itemID == itemID || itemID == 0) && bfp->input_itemtype == OBJ_SEQANNOT) {
 
10150
              ValNodeAddPointer (&list, 0, bfp);
 
10151
              any = TRUE;
 
10152
            }
 
10153
          }
 
10154
        }
 
10155
      }
 
10156
    }
 
10157
  }
 
10158
  for (vnp = list; vnp != NULL; vnp = vnp->next) {
 
10159
    SeqEdCancel ((SeqEdFormPtr) vnp->data.ptrvalue);
 
10160
  }
 
10161
  list = ValNodeFree (list);
 
10162
 
 
10163
  return any;
 
10164
}